Hi,
I am testing IBR-DTN features and I would like to transmit big amount of data between wireless nodes. The devices that I use are TP-LINK 3040 v:2.x , flushed with OpenWRT and IBR-DTN 0.13.0-335. Due to insufficient memory space, I have performed an extroot, using a USB storage(32GB).
root@OpenWrt:~# df Filesystem 1K-blocks Used Available Use% Mounted on rootfs 30642708 9891116 19188328 34% / /dev/root 2048 2048 0 100% /rom tmpfs 14452 528 13924 4% /tmp /dev/sda1 30642708 9891116 19188328 34% /overlay overlayfs:/overlay 30642708 9891116 19188328 34% / tmpfs 512 0 512 0% /dev
I have formatted my USB storage in ext3 format (mkfs.ext3 /dev/sda1) I have changed the configuration file in both sender and receiver, so the bundles and the blobs path to be under /overlay.
config daemon 'main'
option uri 'dtn://host12'
option logfile '/overlay/TMP/ibrdtn.log'
option errfile '/overlay/TMP/ibrdtn.err'
option fragmentation 'yes'
option scheduling 'yes'
option routing 'epidemic'
config daemon 'safemode'
option forwarding 'no'
option storage '64M'
option maxblock '16M'
config daemon 'storage'
option engine 'simple'
option blobs '/overlay/TMP/blobs'
option bundles '/overlay/TMP/bundles'
I am trying to send a 100MB file, between two nodes. I have synchronized the clocks of the two nodes and:
@Sender: 1) tar -cf file.tar file 2) dtnsend dtn://hostX/inboxReceiver file.tar
I can see the bundle of 100M created @ sender
@Receiver: 3)dtninbox -w /overlay/inboxFolder /overlay/Folder
I can see the entire bundle received correctly under /overlay/TMP/bundles, but when I run the above command, after some time a message "Killed" is appeared. As a result, part of the whole bundle is received (around 10-11 MB), while under /overlay/inboxFolder I can see a blob with the entire size of 100MB.
I would be grateful if you had any hint about this behavior and how I can fix it. Thanks in advance,
Theodoros
On Fri, May 30, 2014 at 5:10 PM, Theodoros Bourchas bourchast@gmail.com wrote:
@Receiver: 3)dtninbox -w /overlay/inboxFolder /overlay/Folder
The command that I used @Receiver is : dtninbox -w /overlay/inboxFolder inboxReceiver /overlay/Folder
Hello Theodoros,
thank you for this report. You have unveiled a memory leak in the recent version of dtninbox. By now you can not fix it using the releases, but I can suggest a work-around. The dtninbox mechanism is quite simple, you can replace it by using dtntrigger and a simple script.
Create a new file named inbox.sh with this content...
--- inbox.sh script --- #!/bin/sh #
tar xvf $2 --- end of script ---
Then start dtntrigger like this... $ dtntrigger -w /data/tmp inbox /bin/sh inbox.sh
The script will handle incoming bundles as dtninbox would do.
I made already a patch to solve the mem-leak issue of dtninbox and it is queued for the next release 0.12.2.
Kind regards, Johannes
Am 30.05.2014 17:10, schrieb Theodoros Bourchas:
I can see the entire bundle received correctly under /overlay/TMP/bundles, but when I run the above command, after some time a message "Killed" is appeared. As a result, part of the whole bundle is received (around 10-11 MB), while under /overlay/inboxFolder I can see a blob with the entire size of 100MB.
I would be grateful if you had any hint about this behavior and how I can fix it. Thanks in advance,
Thanks Johannes.
Before your answer, I had seen using "htop" command that during the execution of dtninbox the memory usage was increasing and when it reached the 28MB (RAM of TP-LINK 3040), the process of dtninbox was killed or even the device was rebooting. So, I made a swap partition to the device with 2GB additional space and after that dtninbox was working. Of course, you solution with dtntrigger is better and faster and it doesn't require any new partition.
Thanks again!
Best, Theodoros
On Tue, Jun 3, 2014 at 3:57 PM, Johannes Morgenroth < morgenroth@ibr.cs.tu-bs.de> wrote:
Hello Theodoros,
thank you for this report. You have unveiled a memory leak in the recent version of dtninbox. By now you can not fix it using the releases, but I can suggest a work-around. The dtninbox mechanism is quite simple, you can replace it by using dtntrigger and a simple script.
Create a new file named inbox.sh with this content...
--- inbox.sh script --- #!/bin/sh #
tar xvf $2 --- end of script ---
Then start dtntrigger like this... $ dtntrigger -w /data/tmp inbox /bin/sh inbox.sh
The script will handle incoming bundles as dtninbox would do.
I made already a patch to solve the mem-leak issue of dtninbox and it is queued for the next release 0.12.2.
Kind regards, Johannes
Am 30.05.2014 17:10, schrieb Theodoros Bourchas:
I can see the entire bundle received correctly under /overlay/TMP/bundles, but when I run the above command, after some time a message "Killed" is appeared. As a result, part of the whole bundle is received (around 10-11 MB), while under /overlay/inboxFolder I can see a blob with the entire size of 100MB.
I would be grateful if you had any hint about this behavior and how I can fix it. Thanks in advance,
-- !! This message is brought to you via the `ibr-dtn' mailing list. !! Please do not reply to this message to unsubscribe. To unsubscribe or adjust !! your settings, send a mail message to ibr-dtn-request@ibr.cs.tu-bs.de !! or look at https://mail.ibr.cs.tu-bs.de/listinfo/ibr-dtn.
participants (2)
-
Johannes Morgenroth
-
Theodoros Bourchas