OT - network speed problem

2012-10-20 Thread Shlomo Solomon
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)

Re: OT - network speed problem

2012-10-20 Thread Shlomo Solomon
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 shl...@the-solomons.net 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

Best practice for using CAS/atomic semantics in C/C++

2012-10-20 Thread Elazar Leibovich
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,

Re: OT - network speed problem

2012-10-20 Thread Shlomo Solomon
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