OT - network speed problem
This is OT, but I'm out of my depth here so I hope someone can help, or at least explain my problem. I have a D-Link DSL-2760U router provided by Bezeq. It has 2 USB ports so I decided to setup a sort of home-made NAS to provide disk space for my home network. I connected a WD USB disk (1 TB) and tried copying files to and from the disk. I didn't expect lightning speed, but was surprised by how slow everything is. Here are some numbers: I tested the disk connected to a USB port on my computer and was able to read or write a 1 GB file in about 40 seconds. After connecting the disk to the router, the speeds are: reading 1 GB - 9 minutes writing 1 GB - 18 minutes I can understand some loss of speed, but this doesn't seem logical. I should probably mention that the disk is formated NTFS because the router only supports NTFS and FAT32. The test were all done on my Mandriva 2011.0 system. What am I missing and/or doing wrong? -- Shlomo Solomon http://the-solomons.net Sent by Claws Mail 3.7.9 - KDE 4.6.5 - LINUX Mandriva 2011.0 ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: OT - network speed problem
I forgot to mention that the connection to the NAS disk is via SAMBA. On Sun, 21 Oct 2012 00:43:16 +0200 Shlomo Solomon wrote: > This is OT, but I'm out of my depth here so I hope someone can help, > or at least explain my problem. > > I have a D-Link DSL-2760U router provided by Bezeq. It has 2 USB ports > so I decided to setup a sort of home-made NAS to provide disk space > for my home network. > > I connected a WD USB disk (1 TB) and tried copying files to and from > the disk. I didn't expect lightning speed, but was surprised by how > slow everything is. > > Here are some numbers: > > I tested the disk connected to a USB port on my computer and was able > to read or write a 1 GB file in about 40 seconds. > > After connecting the disk to the router, the speeds are: > > reading 1 GB - 9 minutes > writing 1 GB - 18 minutes > > I can understand some loss of speed, but this doesn't seem logical. > > I should probably mention that the disk is formated NTFS because the > router only supports NTFS and FAT32. The test were all done on my > Mandriva 2011.0 system. > > What am I missing and/or doing wrong? > -- Shlomo Solomon http://the-solomons.net Sent by Claws Mail 3.7.9 - KDE 4.6.5 - LINUX Mandriva 2011.0 ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Best practice for using CAS/atomic semantics in C/C++
What's the best way to get atomic/CAS instructions in C/C++, while keeping your code as portable as possible? Unfortunately, the best looking solution so far looks like depending on GCC's intrinsics, (since it's so widespread), but it doesn't sound right. There's also a project from HP, http://www.hpl.hp.com/research/linux/atomic_ops/, but it seems too heavyweight. I can use C++11, but (1) not good for C (2) still not as widespread as C++ is. A way which is also compatible with windows, is a big plus. PS, The natural place for this looks like the pthread standard. Probably this sort of thing weren't that popular back then when the standard was written. ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il
Re: OT - network speed problem
Replying to my own post with a partial solution. I reformatted the disk from NTFS to FAT32 and both read and write speeds are now about 6 minutes for 1 GB - a big improvement, but still not great (3 times as fast as the NTFS write speed but still only about 1/10 the speed of connecting to a USB port on my computer). On Sun, 21 Oct 2012 00:49:22 +0200 Shlomo Solomon wrote: > I forgot to mention that the connection to the NAS disk is via SAMBA. > > On Sun, 21 Oct 2012 00:43:16 +0200 > Shlomo Solomon wrote: > > > This is OT, but I'm out of my depth here so I hope someone can help, > > or at least explain my problem. > > > > I have a D-Link DSL-2760U router provided by Bezeq. It has 2 USB > > ports so I decided to setup a sort of home-made NAS to provide disk > > space for my home network. > > > > I connected a WD USB disk (1 TB) and tried copying files to and from > > the disk. I didn't expect lightning speed, but was surprised by how > > slow everything is. > > > > Here are some numbers: > > > > I tested the disk connected to a USB port on my computer and was > > able to read or write a 1 GB file in about 40 seconds. > > > > After connecting the disk to the router, the speeds are: > > > > reading 1 GB - 9 minutes > > writing 1 GB - 18 minutes > > > > I can understand some loss of speed, but this doesn't seem logical. > > > > I should probably mention that the disk is formated NTFS because the > > router only supports NTFS and FAT32. The test were all done on my > > Mandriva 2011.0 system. > > > > What am I missing and/or doing wrong? > > > > > -- Shlomo Solomon http://the-solomons.net Sent by Claws Mail 3.7.9 - KDE 4.6.5 - LINUX Mandriva 2011.0 ___ Linux-il mailing list Linux-il@cs.huji.ac.il http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il