Skip to content
This repository was archived by the owner on Feb 21, 2020. It is now read-only.
This repository was archived by the owner on Feb 21, 2020. It is now read-only.

No bytes being read or written #10

@00h-i-r-a00

Description

@00h-i-r-a00

For Shadow 1.10.2, I ran the first example that runs tgen with 10 clients. It doesn't seem to be creating a shadow.data directory, even though the logging seems to be coming out fine. It exits cleanly with the following last few lines:

00:00:23.998121 [thread-0] 00:19:59.000000001 [tgen-message] [server111.0.0.11] [_tgendriver_onHeartbeat] [driver-heartbeat] transfers-completed=0 bytes-read=0 bytes-write=0 transfers-error=0
00:00:23.998136 [thread-0] 00:19:59.000000001 [tgen-message] [server2
11.0.0.12] [_tgendriver_onHeartbeat] [driver-heartbeat] transfers-completed=0 bytes-read=0 bytes-write=0 transfers-error=0
00:00:23.998192 [thread-0] 00:19:59.000000001 [tgen-message] [server311.0.0.13] [_tgendriver_onHeartbeat] [driver-heartbeat] transfers-completed=0 bytes-read=0 bytes-write=0 transfers-error=0
00:00:23.998214 [thread-0] 00:19:59.000000001 [tgen-message] [server4
11.0.0.14] [_tgendriver_onHeartbeat] [driver-heartbeat] transfers-completed=0 bytes-read=0 bytes-write=0 transfers-error=0
00:00:23.998230 [thread-0] 00:19:59.000000001 [tgen-message] [server5~11.0.0.15] [_tgendriver_onHeartbeat] [driver-heartbeat] transfers-completed=0 bytes-read=0 bytes-write=0 transfers-error=0
00:00:23.999269 [thread-0] n/a [shadow-message] [n/a] [_topology_clearCache] path cache cleared, spent 0.000000 seconds computing 0 shortest paths
00:00:00.000000 [thread-0] n/a [shadow-message] [n/a] [master_free] Shadow v1.10.2 (built 2017-03-08) shut down cleanly at 2017-03-08 22:11:37

Running the basic example with bitcoin plugin installed gives me this:

fieldsofgold@fieldsofgold-VirtualBox:/shadow-plugin-bitcoin/run$ ../src/bitcoind/shadow-bitcoind -y -i ../resource/shadow.config.xml -r -t | grep -e "received: getaddr" -e "received: verack"
copying /home/fieldsofgold/shadow-plugin-bitcoin/run/data/bcdnode1
copying /home/fieldsofgold/shadow-plugin-bitcoin/run/data/bcdnode2
[2017-03-09 00:31:08.029713] bitcoind: Data directory reset in output path
[2017-03-09 00:31:08.058293] bitcoind: set environmental variables for libevent: EVENT_NOSELECT, EVENT_NOPOLL, EVENT_NOKQUEUE, EVENT_NODEVPOLL, EVENT_NOEVPORT, EVENT_NOWIN32
[2017-03-09 00:31:08.058512] bitcoind: calling '/home/fieldsofgold/.shadow/bin/shadow --preload=/home/fieldsofgold/.shadow/lib/libshadow-preload-bitcoind.so /home/fieldsofgold/shadow-plugin-bitcoin/resource/shadow.config.xml', output directed to '/home/fieldsofgold/shadow-plugin-bitcoin/run/data/shadow.log'
write skipping worker
gmodule init bitcoind
read skipping worker
check_init done
read skipping worker
gmodule init bitcoind
check_init done
pthread_key_create:0x7ffa3e0da3a0
pthread_create:0
pthread_key_create:0x7ffa3e0da3d0
pthread_create:1
pthread_key_create:0x1877288
pthread_create:2
passing to pth_pthread_create
returning from pth_pthread_create
pthread_key_create:0x7ffa3e0da63c
pthread_create:3
pthread_mutex_lock: initializing
pthread_key_create:0x7ffa3e0da5d0
pthread_create:4
passing to pth_pthread_create
returning from pth_pthread_create
passing to pth_pthread_create
returning from pth_pthread_create
passing to pth_pthread_create
returning from pth_pthread_create
passing to pth_pthread_create
returning from pth_pthread_create
passing to pth_pthread_create
returning from pth_pthread_create
passing to pth_pthread_create
returning from pth_pthread_create
passing to pth_pthread_create
returning from pth_pthread_create
pthread_key_create:0x7ffa3e0da3a0
pthread_create:0
pthread_key_create:0x7ffa3e0da3d0
pthread_create:1
pthread_key_create:0x1a05b88
pthread_create:2
passing to pth_pthread_create
returning from pth_pthread_create
pthread_key_create:0x7ffa3e0da63c
pthread_create:3
pthread_mutex_lock: initializing
pthread_key_create:0x7ffa3e0da5d0
pthread_create:4
passing to pth_pthread_create
returning from pth_pthread_create
passing to pth_pthread_create
returning from pth_pthread_create
passing to pth_pthread_create
returning from pth_pthread_create
passing to pth_pthread_create
returning from pth_pthread_create
passing to pth_pthread_create
returning from pth_pthread_create
passing to pth_pthread_create
returning from pth_pthread_create
passing to pth_pthread_create
returning from pth_pthread_create
write: going to pth fd:22
pthread_mutex_lock: initializing
00:00:00.526166 [thread-0] 00:00:13.603000000 [bitcoind-message] [bcdnode2
11.0.0.1] [CLogPrintStr] received: verack (0 bytes)
00:00:00.527154 [thread-0] 00:00:13.603000000 [bitcoind-message] [bcdnode111.0.0.2] [CLogPrintStr] received: verack (0 bytes)
00:00:00.537597 [thread-0] 00:00:13.804000000 [bitcoind-message] [bcdnode2
11.0.0.1] [CLogPrintStr] received: verack (0 bytes)
00:00:00.537742 [thread-0] 00:00:13.804000000 [bitcoind-message] [bcdnode211.0.0.1] [CLogPrintStr] received: getaddr (0 bytes)
00:00:00.538197 [thread-0] 00:00:13.804000000 [bitcoind-message] [bcdnode1
11.0.0.2] [CLogPrintStr] received: verack (0 bytes)
00:00:00.538338 [thread-0] 00:00:13.804000000 [bitcoind-message] [bcdnode1~11.0.0.2] [CLogPrintStr] received: getaddr (0 bytes)
[2017-03-09 00:31:09.958384] bitcoind: Shadow returned 0 in 0:00:01.899714 seconds

The common thing between running the vanilla shadow and its bitcoin version is that in both cases 0 bytes are being read and written, is that expected behavior?

Also, there are some errors in the shadow.log file. One of them is:

ERROR: Read : Failed to open file /home/fieldsofgold/shadow-plugin-bitcoin/run/data/bcdnode2/peers.dat

The entire log file is here. Could anyone please help me with this. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions