Giter Site home page Giter Site logo

niks3089 / csperf Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 2.0 4.42 MB

csperf: Client Server Performance measurement tool.

License: GNU Lesser General Public License v3.0

Makefile 6.43% C 77.23% Shell 13.35% Python 2.18% C++ 0.29% CMake 0.10% M4 0.43%

csperf's People

Contributors

niks3089 avatar sumana91 avatar utleshsingh avatar

Watchers

 avatar  avatar

Forkers

sumana91 ifzz

csperf's Issues

With open files as 1025, parallel connections face issues

[root@localhost csperf]# csperf -c 10.1.1.135 -C 2000 -P 200
Starting test. Please wait...
10% completed...
20% completed...
30% completed...
40% completed...
50% completed...
60% completed...
70% completed...
80% completed...
90% completed...
100% completed...
Test summary
-------------
Total connections attempted: 1736
Total connections connected: 875
Total connects failed: 1279
Total connection errors: 0
Total data sent: 881.836 MB
Total data received: 0 B
Total blocks sent: 875
Total blocks received: 0
Total commands sent: 875
Total commands received: 875
Total time taken: 1.989 s
[root@localhost csperf]# csperf -c 10.1.1.135 -C 2000 -P 600
Starting test. Please wait...
10% completed...
20% completed...
30% completed...
40% completed...
50% completed...
60% completed...
70% completed...
80% completed...
90% completed...
100% completed...
Test summary
-------------
Total connections attempted: 1807
Total connections connected: 64
Total connects failed: 2000
Total connection errors: 0
Total data sent: 64.500 MB
Total data received: 0 B
Total blocks sent: 64
Total blocks received: 0
Total commands sent: 64
Total commands received: 64
Total time taken: 406.000 ms

Detailed test summary can be found in csperf_client_out.txt file
Segmentation fault

csperf crashes when trying to display stats

Following is the test code which is causing the crash on some machines

#include <stdio.h>
#include <stdarg.h>
#include <stdint.h>
#include <sys/time.h>
#include <time.h>

typedef struct {
    uint64_t  total_bytes_sent;
    uint64_t  total_bytes_received;
    uint64_t  total_blocks_sent;
    uint64_t  total_blocks_received;
    uint64_t  total_commands_sent;
    uint64_t  total_commands_received;
    uint64_t  time_to_process_data;
    char      mark_sent_time[64];
    char      mark_received_time[64];
} csperf_stats_t;

void
csperf_stats_printf(const char *format, ...)
{
    /* Write to file */
    va_list args;

    /* Write to stdout */
    va_start(args, format);
    vfprintf(stdout, format, args);
    va_end(args);
}

void
ansperf_stats_display(csperf_stats_t *stats)
{
    if (!stats) {
        return;
    }

    stats->total_blocks_sent = 1000;
    stats->total_blocks_received = 2000;
    stats->time_to_process_data = 22;

    csperf_stats_printf("%3d   %15s    %10s    %10zu    %10zu    %10zu       %10s    "
            "%10s\n\n",
                0, "hi", "testing.",
            stats->total_blocks_sent, stats->total_blocks_received,
            stats->time_to_process_data,
            stats->mark_sent_time, "test");
}

/* Get time in millisecond */
uint64_t
csperf_network_get_time(char *buf)
{
    char            fmt[64];
    struct tm       *tm;
    struct timeval tv;
    uint64_t s;

    gettimeofday(&tv, NULL);

    if (buf) {
        if((tm = localtime(&tv.tv_sec)) != NULL) {
            strftime(fmt, sizeof(fmt), "%Y-%m-%d %H:%M:%S.%03u", tm);
            snprintf(buf, sizeof(fmt), fmt, tv.tv_usec);
        }
    }
    s = tv.tv_sec * 1000LL;
    return(s + tv.tv_usec / 1000LL);
}

int main()
{
    csperf_stats_t stats = { 0 };
    csperf_network_get_time(stats.mark_sent_time);
    csperf_network_get_time(stats.mark_received_time);
    printf("%s%s\n", stats.mark_sent_time, stats.mark_received_time);
    ansperf_stats_display(&stats);
}


1603          process_string_arg (((struct printf_spec *) NULL));
(gdb) bt
#0  0x002b535e in _IO_vfprintf_internal (s=Cannot access memory at address 0xffffffff
) at vfprintf.c:1603
#1  0x08051ddb in csperf_stats_printf (fd=0x9660888, format=0x8079a4c "%3d   %15s    %10s    %10zu    %10zu    %10zu       %10s    %10s\n\n")
    at /home/nikhil/csperf/src/csperf_stats.c:23
#2  0x08051f4a in ansperf_stats_display (stats=0x965fed4, fd=0x9660888) at /home/nikhil/csperf/src/csperf_stats.c:55
#3  0x08050ac7 in csperf_client_shutdown (client=0x965feb0) at /home/nikhil/csperf/src/csperf_client.c:67
#4  0x0805128a in csperf_client_process_command (client=0x965feb0, buf=0x9660d10) at /home/nikhil/csperf/src/csperf_client.c:306
#5  0x080513c9 in csperf_client_readcb (bev=0x9660c00, ptr=0x965feb0) at /home/nikhil/csperf/src/csperf_client.c:354
#6  0x0805eeb7 in _bufferevent_run_readcb (bufev=0x9660c00) at /home/nikhil/csperf/packages/libevent-2.0.21-stable/bufferevent.c:232
#7  0x0805f4c8 in bufferevent_readcb (fd=9, event=2, arg=0x9660c00) at /home/nikhil/csperf/packages/libevent-2.0.21-stable/bufferevent_sock.c:186
#8  0x08057563 in event_process_active_single_queue (base=0x9660118, flags=0) at /home/nikhil/csperf/packages/libevent-2.0.21-stable/event.c:1350
#9  event_process_active (base=0x9660118, flags=0) at /home/nikhil/csperf/packages/libevent-2.0.21-stable/event.c:1420
#10 event_base_loop (base=0x9660118, flags=0) at /home/nikhil/csperf/packages/libevent-2.0.21-stable/event.c:1621
#11 0x080580e9 in event_base_dispatch (event_base=0x9660118) at /home/nikhil/csperf/packages/libevent-2.0.21-stable/event.c:1450
#12 0x0805185f in csperf_client_run (config=0x962c008) at /home/nikhil/csperf/src/csperf_client.c:457
#13 0x0804f3ef in csperf_main_start_test (config=0x962c008) at /home/nikhil/csperf/src/csperf_main.c:14
#14 0x0804f4ff in main (argc=3, argv=0xbfd8baa4) at /home/nikhil/csperf/src/csperf_main.c:44

Number of connections exceeds the given connection number

[root@nikhil-server csperf]# csperf -c 192.168.50.121 -C 20000 -P 800 -n 10
Starting test. Please wait...
10% completed...
20% completed...
30% completed...
40% completed...
50% completed...
60% completed...
70% completed...
80% completed...
^@90% completed...
100% completed...
Test summary
-------------
Total connections attempted: 20006
Total connections connected: 20000
Total connects failed: 6
Total connection errors: 204
Total data sent: 196.838 GB
Total data received: 0 B
Total blocks sent: 200000
Total blocks received: 0
Total commands sent: 20000
Total commands received: 20000
Total time taken: 3.292 mins

Detailed test summary can be found in csperf_client_out.txt file

Concurrency feature is broken

Results in large stack calls due to repeated bind failures eventually bloating the memory

#0  0x00000039df442b22 in vfprintf () from /lib64/libc.so.6
#1  0x00000039df468c2a in vsnprintf () from /lib64/libc.so.6
#2  0x000000000042eeab in zlog_buf_vprintf (a_buf=0x4c64170, format=0x4315c0 "%s: Client(%u): Socket error: %s\n", args=0x4c60c58) at buf.c:220
#3  0x000000000042bda5 in zlog_spec_write_usrmsg (a_spec=<value optimized out>, a_thread=0x4c608c0, a_buf=0x4c64170) at spec.c:249
#4  0x00000000004271fd in zlog_format_gen_msg (a_format=0x4c37360, a_thread=0x4c608c0) at format.c:156
#5  0x000000000042b657 in zlog_rule_output_static_file_rotate (a_rule=0x4c5de50, a_thread=0x4315c0) at rule.c:166
#6  0x0000000000425045 in zlog_category_output (a_category=0x4c60210, a_thread=0x4c608c0) at category.c:229
#7  0x0000000000423b68 in zlog (category=0x4c60210, file=0x431208 "/root/csperf/src/csperf_client.c", filelen=32, func=0x431580 "csperf_client_eventcb", funclen=21, line=552, level=40, format=0x4315c0 "%s: Client(%u): Socket error: %s\n") at zlog.c:849
#8  0x000000000040c984 in csperf_client_eventcb (bev=0x7bf8f10, events=32, ctx=0x56c07f8) at /root/csperf/src/csperf_client.c:550
#9  0x000000000041a432 in bufferevent_socket_connect (bev=0x7bf8f10, sa=<value optimized out>, socklen=16) at /root/csperf/packages/libevent-2.0.21-stable/bufferevent_sock.c:428
#10 0x000000000041a4ef in bufferevent_connect_getaddrinfo_cb (result=0, ai=0x7bf9350, arg=<value optimized out>) at /root/csperf/packages/libevent-2.0.21-stable/bufferevent_sock.c:461
#11 0x00000000004203d9 in evutil_getaddrinfo_async (dns_base=<value optimized out>, nodename=<value optimized out>, servname=<value optimized out>, hints_in=<value optimized out>, cb=0x41a450 <bufferevent_connect_getaddrinfo_cb>, arg=0x7bf8f10)
    at /root/csperf/packages/libevent-2.0.21-stable/evutil.c:1421
#12 0x000000000041a27d in bufferevent_socket_connect_hostname (bev=0x7bf8f10, evdns_base=0x0, family=2, hostname=0x4c64bd0 "10.1.1.135", port=5001) at /root/csperf/packages/libevent-2.0.21-stable/bufferevent_sock.c:497
#13 0x000000000040cd1a in csperf_client_manager_setup_clients (cli_mgr=0x502e040, total_clients=1) at /root/csperf/src/csperf_client.c:630
#14 0x000000000040bc46 in csperf_client_shutdown (client=0x56c0640, ignore=0) at /root/csperf/src/csperf_client.c:177
#15 0x000000000040c9f3 in csperf_client_eventcb (bev=0x7bf8540, events=32, ctx=0x56c0640) at /root/csperf/src/csperf_client.c:563
#16 0x000000000041a432 in bufferevent_socket_connect (bev=0x7bf8540, sa=<value optimized out>, socklen=16) at /root/csperf/packages/libevent-2.0.21-stable/bufferevent_sock.c:428
#17 0x000000000041a4ef in bufferevent_connect_getaddrinfo_cb (result=0, ai=0x7bf8980, arg=<value optimized out>) at /root/csperf/packages/libevent-2.0.21-stable/bufferevent_sock.c:461
#18 0x00000000004203d9 in evutil_getaddrinfo_async (dns_base=<value optimized out>, nodename=<value optimized out>, servname=<value optimized out>, hints_in=<value optimized out>, cb=0x41a450 <bufferevent_connect_getaddrinfo_cb>, arg=0x7bf8540)
    at /root/csperf/packages/libevent-2.0.21-stable/evutil.c:1421
#19 0x000000000041a27d in bufferevent_socket_connect_hostname (bev=0x7bf8540, evdns_base=0x0, family=2, hostname=0x4c64bd0 "10.1.1.135", port=5001) at /root/csperf/packages/libevent-2.0.21-stable/bufferevent_sock.c:497
#20 0x000000000040cd1a in csperf_client_manager_setup_clients (cli_mgr=0x502e040, total_clients=1) at /root/csperf/src/csperf_client.c:630
#21 0x000000000040bc46 in csperf_client_shutdown (client=0x56c0488, ignore=0) at /root/csperf/src/csperf_client.c:177
#22 0x000000000040c9f3 in csperf_client_eventcb (bev=0x7bf7b70, events=32, ctx=0x56c0488) at /root/csperf/src/csperf_client.c:563
#23 0x000000000041a432 in bufferevent_socket_connect (bev=0x7bf7b70, sa=<value optimized out>, socklen=16) at /root/csperf/packages/libevent-2.0.21-stable/bufferevent_sock.c:428
#24 0x000000000041a4ef in bufferevent_connect_getaddrinfo_cb (result=0, ai=0x7bf7fb0, arg=<value optimized out>) at /root/csperf/packages/libevent-2.0.21-stable/bufferevent_sock.c:461
#25 0x00000000004203d9 in evutil_getaddrinfo_async (dns_base=<value optimized out>, nodename=<value optimized out>, servname=<value optimized out>, hints_in=<value optimized out>, cb=0x41a450 <bufferevent_connect_getaddrinfo_cb>, arg=0x7bf7b70)
    at /root/csperf/packages/libevent-2.0.21-stable/evutil.c:1421
#26 0x000000000041a27d in bufferevent_socket_connect_hostname (bev=0x7bf7b70, evdns_base=0x0, family=2, hostname=0x4c64bd0 "10.1.1.135", port=5001) at /root/csperf/packages/libevent-2.0.21-stable/bufferevent_sock.c:497
#27 0x000000000040cd1a in csperf_client_manager_setup_clients (cli_mgr=0x502e040, total_clients=1) at /root/csperf/src/csperf_client.c:630
#28 0x000000000040bc46 in csperf_client_shutdown (client=0x56c02d0, ignore=0) at /root/csperf/src/csperf_client.c:177
#29 0x000000000040c9f3 in csperf_client_eventcb (bev=0x7bf71a0, events=32, ctx=0x56c02d0) at /root/csperf/src/csperf_client.c:563
#30 0x000000000041a432 in bufferevent_socket_connect (bev=0x7bf71a0, sa=<value optimized out>, socklen=16) at /root/csperf/packages/libevent-2.0.21-stable/bufferevent_sock.c:428
#31 0x000000000041a4ef in bufferevent_connect_getaddrinfo_cb (result=0, ai=0x7bf75e0, arg=<value optimized out>) at /root/csperf/packages/libevent-2.0.21-stable/bufferevent_sock.c:461
#32 0x00000000004203d9 in evutil_getaddrinfo_async (dns_base=<value optimized out>, nodename=<value optimized out>, servname=<value optimized out>, hints_in=<value optimized out>, cb=0x41a450 <bufferevent_connect_getaddrinfo_cb>, arg=0x7bf71a0)
    at /root/csperf/packages/libevent-2.0.21-stable/evutil.c:1421
#33 0x000000000041a27d in bufferevent_socket_connect_hostname (bev=0x7bf71a0, evdns_base=0x0, family=2, hostname=0x4c64bd0 "10.1.1.135", port=5001) at /root/csperf/packages/libevent-2.0.21-stable/bufferevent_sock.c:497
#34 0x000000000040cd1a in csperf_client_manager_setup_clients (cli_mgr=0x502e040, total_clients=1) at /root/csperf/src/csperf_client.c:630
#35 0x000000000040bc46 in csperf_client_shutdown (client=0x56c0118, ignore=0) at /root/csperf/src/csperf_client.c:177
#36 0x000000000040c9f3 in csperf_client_eventcb (bev=0x7bf67d0, events=32, ctx=0x56c0118) at /root/csperf/src/csperf_client.c:563
#37 0x000000000041a432 in bufferevent_socket_connect (bev=0x7bf67d0, sa=<value optimized out>, socklen=16) at /root/csperf/packages/libevent-2.0.21-stable/bufferevent_sock.c:428
#38 0x000000000041a4ef in bufferevent_connect_getaddrinfo_cb (result=0, ai=0x7bf6c10, arg=<value optimized out>) at /root/csperf/packages/libevent-2.0.21-stable/bufferevent_sock.c:461
#39 0x00000000004203d9 in evutil_getaddrinfo_async (dns_base=<value optimized out>, nodename=<value optimized out>, servname=<value optimized out>, hints_in=<value optimized out>, cb=0x41a450 <bufferevent_connect_getaddrinfo_cb>, arg=0x7bf67d0)
    at /root/csperf/packages/libevent-2.0.21-stable/evutil.c:1421
#40 0x000000000041a27d in bufferevent_socket_connect_hostname (bev=0x7bf67d0, evdns_base=0x0, family=2, hostname=0x4c64bd0 "10.1.1.135", port=5001) at /root/csperf/packages/libevent-2.0.21-stable/bufferevent_sock.c:497
#41 0x000000000040cd1a in csperf_client_manager_setup_clients (cli_mgr=0x502e040, total_clients=1) at /root/csperf/src/csperf_client.c:630
#42 0x000000000040bc46 in csperf_client_shutdown (client=0x56bff60, ignore=0) at /root/csperf/src/csperf_client.c:177
#43 0x000000000040c9f3 in csperf_client_eventcb (bev=0x7bf5e00, events=32, ctx=0x56bff60) at /root/csperf/src/csperf_client.c:563
#44 0x000000000041a432 in bufferevent_socket_connect (bev=0x7bf5e00, sa=<value optimized out>, socklen=16) at /root/csperf/packages/libevent-2.0.21-stable/bufferevent_sock.c:428
#45 0x000000000041a4ef in bufferevent_connect_getaddrinfo_cb (result=0, ai=0x7bf6240, arg=<value optimized out>) at /root/csperf/packages/libevent-2.0.21-stable/bufferevent_sock.c:461
#46 0x00000000004203d9 in evutil_getaddrinfo_async (dns_base=<value optimized out>, nodename=<value optimized out>, servname=<value optimized out>, hints_in=<value optimized out>, cb=0x41a450 <bufferevent_connect_getaddrinfo_cb>, arg=0x7bf5e00)
    at /root/csperf/packages/libevent-2.0.21-stable/evutil.c:1421
#47 0x000000000041a27d in bufferevent_socket_connect_hostname (bev=0x7bf5e00, evdns_base=0x0, family=2, hostname=0x4c64bd0 "10.1.1.135", port=5001) at /root/csperf/packages/libevent-2.0.21-stable/bufferevent_sock.c:497
#48 0x000000000040cd1a in csperf_client_manager_setup_clients (cli_mgr=0x502e040, total_clients=1) at /root/csperf/src/csperf_client.c:630
#49 0x000000000040bc46 in csperf_client_shutdown (client=0x56bfda8, ignore=0) at /root/csperf/src/csperf_client.c:177
#50 0x000000000040c9f3 in csperf_client_eventcb (bev=0x7bf5430, events=32, ctx=0x56bfda8) at /root/csperf/src/csperf_client.c:563

Total connections exceeds the maximum allowed limit when running parallel connections

[root@nikhil-server csperf]# csperf -c 192.168.50.121 -C 999 -P 20
Test summary
-------------
Total connections attempted: 1018
Total connections connected: 1010
Total connects failed: 0
Total connection errors: 0
Total data sent: 1017.891 MB
Total data received: 0 B
Total blocks sent: 1010
Total blocks received: 0
Total commands sent: 1010
Total commands received: 1010

Time to process displays unusally large when transfer happens between machines which have clock skew

Server: Listening on 0.0.0.0:5001
Cycle    Bytes_sent    Bytes_Received    Blocks_sent    Blocks_received    Time_to_process(ms)    Mark_sent_time    Mark_received_time
------------------------------------------------------------------------------------------------------------------------------------
  1               0 B    1007.812 MB             0          1000    18446744073681968128       2016-08-21 22:57:41.143932    2016-08-21 22:57:41.127341

  2               0 B    1007.812 MB             0          1000    18446744073681968129       2016-08-21 22:57:41.145494    2016-08-21 22:57:41.127857

csperf crashes when invalid server ip is given

(no debugging symbols found)...done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
Core was generated by `csperf -c 172.19.32.1111'.
Program terminated with signal 11, Segmentation fault.
#0  0x000000000040ca8f in csperf_client_manager_setup_clients (cli_mgr=0x1db9ca0, total_clients=1) at /home/nikhil/csperf/src/csperf_client.c:635
635             zlog_info(log_get_cat(), "%s: Client(%u): Connecting to server: %s:%u"
Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.166.el6_7.3.x86_64
(gdb) bt
#0  0x000000000040ca8f in csperf_client_manager_setup_clients (cli_mgr=0x1db9ca0, total_clients=1) at /home/nikhil/csperf/src/csperf_client.c:635
#1  0x000000000040bbba in csperf_client_manager_timer_cb (fd=-1, kind=1, userp=0x1db9ca0) at /home/nikhil/csperf/src/csperf_client.c:277
#2  0x00000000004126f0 in event_process_active_single_queue (base=0x1dba0f0, flags=0) at /home/nikhil/csperf/packages/libevent-2.0.21-stable/event.c:1355
#3  event_process_active (base=0x1dba0f0, flags=0) at /home/nikhil/csperf/packages/libevent-2.0.21-stable/event.c:1420
#4  event_base_loop (base=0x1dba0f0, flags=0) at /home/nikhil/csperf/packages/libevent-2.0.21-stable/event.c:1621
#5  0x000000000040ccbf in csperf_client_run (config=0x1d85010) at /home/nikhil/csperf/src/csperf_client.c:674
#6  0x0000000000409c58 in csperf_main_start_test (config=0x1d85010) at /home/nikhil/csperf/src/csperf_main.c:31
#7  0x0000000000409d66 in main (argc=3, argv=0x7fff7f0ba018) at /home/nikhil/csperf/src/csperf_main.c:61
(gdb) q

Size of the data segment. showing Default 1KB instead of 1MB

[root@localhost csperf]# csperf -c 172.19.32.23
Starting test. Please wait...
Test summary
-------------
Total connections attempted: 1
Total connections connected: 1
Total connects failed: 0
Total connection errors: 0
Total data sent: 1.008 MB
Total data received: 0 B
Total blocks sent: 1
Total blocks received: 0
Total commands sent: 1
Total commands received: 1
Total time taken: 2.000 ms

Using -e option results in server running out of memory

Sep 23 13:51:20 nikhil kernel: DMA: 82*4kB 44*8kB 23*16kB 4*32kB 0*64kB 2*128kB 0*256kB 0*512kB 0*1024kB 1*2048kB 0*4096kB = 3480kB
Sep 23 13:51:20 nikhil kernel: Normal: 5*4kB 8*8kB 2*16kB 0*32kB 0*64kB 0*128kB 1*256kB 0*512kB 1*1024kB 0*2048kB 0*4096kB = 1396kB
Sep 23 13:51:20 nikhil kernel: HighMem: 104*4kB 45*8kB 16*16kB 6*32kB 4*64kB 3*128kB 1*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 2120kB
Sep 23 13:51:20 nikhil kernel: 26099 total pagecache pages
Sep 23 13:51:20 nikhil kernel: 23408 pages in swap cache
Sep 23 13:51:20 nikhil kernel: Swap cache stats: add 210434, delete 187026, find 200174/202836
Sep 23 13:51:20 nikhil kernel: Free swap  = 2373212kB
Sep 23 13:51:20 nikhil kernel: Total swap = 3112956kB
Sep 23 13:51:20 nikhil kernel: 393200 pages RAM
Sep 23 13:51:20 nikhil kernel: 166402 pages HighMem
Sep 23 13:51:20 nikhil kernel: 5592 pages reserved
Sep 23 13:51:20 nikhil kernel: 27266 pages shared
Sep 23 13:51:20 nikhil kernel: 375277 pages non-shared
Sep 23 13:53:33 nikhil kernel: __ratelimit: 1541 callbacks suppressed
Sep 23 13:53:33 nikhil kernel: csperf invoked oom-killer: gfp_mask=0xd0, order=0, oom_adj=0, oom_score_adj=0
Sep 23 13:53:33 nikhil kernel: csperf cpuset=/ mems_allowed=0
Sep 23 13:53:33 nikhil kernel: Pid: 12329, comm: csperf Not tainted 2.6.32-504.16.2.el6.i686 #1
Sep 23 13:53:33 nikhil kernel: Call Trace:
Sep 23 13:53:33 nikhil kernel: [<c04f0ef4>] ? dump_header+0x84/0x190
Sep 23 13:53:33 nikhil kernel: [<c085f766>] ? printk+0x17/0x21
Sep 23 13:53:33 nikhil kernel: [<c04f1298>] ? oom_kill_process+0x68/0x280
Sep 23 13:53:33 nikhil kernel: [<c04f11d2>] ? oom_badness+0x92/0xf0
Sep 23 13:53:33 nikhil kernel: [<c04f1818>] ? out_of_memory+0xc8/0x1e0
Sep 23 13:53:33 nikhil kernel: [<c04fbfbd>] ? __alloc_pages_nodemask+0x7fd/0x810
Sep 23 13:53:33 nikhil kernel: [<c07ede35>] ? tcp_sendmsg+0x635/0x970
Sep 23 13:53:33 nikhil kernel: [<c07a0a2e>] ? sock_aio_write+0x13e/0x190
Sep 23 13:53:33 nikhil kernel: [<c08604f6>] ? io_schedule+0x76/0xa0
Sep 23 13:53:33 nikhil kernel: [<c07a08f0>] ? sock_aio_write+0x0/0x190
Sep 23 13:53:33 nikhil kernel: [<c053b8de>] ? do_sync_readv_writev+0xce/0x110
Sep 23 13:53:33 nikhil kernel: [<c0480fe0>] ? autoremove_wake_function+0x0/0x40
Sep 23 13:53:33 nikhil kernel: [<c05bb34c>] ? security_file_permission+0xc/0x10
Sep 23 13:53:33 nikhil kernel: [<c053bbc6>] ? rw_verify_area+0x66/0xe0
Sep 23 13:53:33 nikhil kernel: [<c053c916>] ? do_readv_writev+0xa6/0x1b0
Sep 23 13:53:33 nikhil kernel: [<c07a08f0>] ? sock_aio_write+0x0/0x190
Sep 23 13:53:33 nikhil kernel: [<c053ca5e>] ? vfs_writev+0x3e/0x50
Sep 23 13:53:33 nikhil kernel: [<c053cb61>] ? sys_writev+0x41/0xa0
Sep 23 13:53:33 nikhil kernel: [<c0409abf>] ? sysenter_do_call+0x12/0x28
Sep 23 13:53:33 nikhil kernel: [<c086007b>] ? schedule+0x78b/0xb90

Logfile to write to. Default writes to csperf_xxx.txt xxx , but with the use of -l option, it is writing again to the default file instead of the log file mentioned

[root@localhost csperf]# csperf -c 172.19.32.23 -l test.txt
Starting test. Please wait...
Test summary
-------------
Total connections attempted: 1
Total connections connected: 1
Total connects failed: 0
Total connection errors: 0
Total data sent: 1.008 MB
Total data received: 0 B
Total blocks sent: 1
Total blocks received: 0
Total commands sent: 1
Total commands received: 1
Total time taken: 2.000 ms

Detailed test summary can be found in csperf_client_out.txt file 

Supposed to write the summary in test.txt and not to a default file

Fix the timestamp display issue

Last 2 fields, last decimal value shows incorrect value


 54       1007.812 MB           0 B          1000             0         23085       2016-08-22 03:50:43.001    2016-08-22 03:51:06.001

 55       1007.812 MB           0 B          1000             0         22688       2016-08-22 03:50:44.001    2016-08-22 03:51:06.001

 56       1007.812 MB           0 B          1000             0         22940       2016-08-22 03:50:43.001    2016-08-22 03:51:06.001

 57       1007.812 MB           0 B          1000             0         22172       2016-08-22 03:50:44.001    2016-08-22 03:51:06.001

 58       1007.812 MB           0 B          1000             0         22349       2016-08-22 03:50:44.001    2016-08-22 03:51:06.001

 59       1007.812 MB           0 B          1000             0         22950       2016-08-22 03:50:44.001    2016-08-22 03:51:07.001

 60       1007.812 MB           0 B          1000             0         22726       2016-08-22 03:50:44.001    2016-08-22 03:51:07.001

csperf crashes when open files are less than max connections

[root@localhost csperf]# csperf -c 10.1.1.135 -C 2000 -P 600
Starting test. Please wait...
10% completed...
20% completed...
30% completed...
40% completed...
50% completed...
60% completed...
70% completed...
80% completed...
90% completed...
100% completed...
Test summary
-------------
Total connections attempted: 1997
Total connections connected: 0
Total connects failed: 2000
Total connection errors: 0
Total data sent: 0 B
Total data received: 0 B
Total blocks sent: 0
Total blocks received: 0
Total commands sent: 0
Total commands received: 0
Total time taken: 409.000 ms

Detailed test summary can be found in csperf_client_out.txt file
Segmentation fault (core dumped)
#0  0x000000000040cb56 in csperf_client_manager_setup_clients (cli_mgr=0x2ac36c4df010, total_clients=1) at /root/csperf/src/csperf_client.c:632
#1  0x000000000040ba64 in csperf_client_shutdown (client=0x2ac36c5095e8, ignore=0) at /root/csperf/src/csperf_client.c:175
#2  0x000000000040c813 in csperf_client_eventcb (bev=0x11841f70, events=32, ctx=0x2ac36c5095e8) at /root/csperf/src/csperf_client.c:562
#3  0x000000000041a252 in bufferevent_socket_connect (bev=0x11841f70, sa=<value optimized out>, socklen=16) at /root/csperf/packages/libevent-2.0.21-stable/bufferevent_sock.c:428
#4  0x000000000041a30f in bufferevent_connect_getaddrinfo_cb (result=0, ai=0x118422e0, arg=<value optimized out>) at /root/csperf/packages/libevent-2.0.21-stable/bufferevent_sock.c:461
#5  0x00000000004201f9 in evutil_getaddrinfo_async (dns_base=<value optimized out>, nodename=<value optimized out>, servname=<value optimized out>, hints_in=<value optimized out>, cb=0x41a270 <bufferevent_connect_getaddrinfo_cb>, arg=0x11841f70)
    at /root/csperf/packages/libevent-2.0.21-stable/evutil.c:1421
#6  0x000000000041a09d in bufferevent_socket_connect_hostname (bev=0x11841f70, evdns_base=0x0, family=2, hostname=0x11755f60 "P\006u\021", port=5001) at /root/csperf/packages/libevent-2.0.21-stable/bufferevent_sock.c:497
#7  0x000000000040caf3 in csperf_client_manager_setup_clients (cli_mgr=0x2ac36c4df010, total_clients=1) at /root/csperf/src/csperf_client.c:624
#8  0x000000000040ba64 in csperf_client_shutdown (client=0x2ac36c509430, ignore=0) at /root/csperf/src/csperf_client.c:175
#9  0x000000000040c813 in csperf_client_eventcb (bev=0x11841bb0, events=32, ctx=0x2ac36c509430) at /root/csperf/src/csperf_client.c:562
#10 0x000000000041a252 in bufferevent_socket_connect (bev=0x11841bb0, sa=<value optimized out>, socklen=16) at /root/csperf/packages/libevent-2.0.21-stable/bufferevent_sock.c:428
#11 0x000000000041a30f in bufferevent_connect_getaddrinfo_cb (result=0, ai=0x11841f20, arg=<value optimized out>) at /root/csperf/packages/libevent-2.0.21-stable/bufferevent_sock.c:461
#12 0x00000000004201f9 in evutil_getaddrinfo_async (dns_base=<value optimized out>, nodename=<value optimized out>, servname=<value optimized out>, hints_in=<value optimized out>, cb=0x41a270 <bufferevent_connect_getaddrinfo_cb>, arg=0x11841bb0)

Incorrect time taken is shown in the server side

[nikhil@nikhil csperf]$ csperf -s -p 100
Failed to configure server: Permission denied
Test summary
-------------
Total connections attempted: 0
Total connections connected: 0
Total connects failed: 0
Total connection errors: 0
Total data sent: 0 B
Total data received: 0 B
Total blocks sent: 0
Total blocks received: 0
Total commands sent: 0
Total commands received: 0
Total time taken: 17044.262 days

Detailed test summary can be found in csperf_server_out.txt file

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.