Changes

From Amahi Wiki
Jump to: navigation, search
152 bytes added ,  21:43, 26 August 2012
{{MessageBox|
backgroundcolor = red#faa|
image =Warning.png|
heading =WARNING|
Greyhole also uses Samba and it's logs to handle file operations.
After installing a wired gigabit network in my house, due to the WIFI being bogged down by 14 wireless clients, I tested the performance in the network. I got around 5500-600MBit/sec in read speeds and about 6600-700MBit/sec in write speeds. But when I tried against the Amahi server I found that I only got 56MBit/sec in read speeds.
After looking at the samba configuration file I saw that Async IO ('''AIO''') was not enabled by Amahi. What AIO does is that it let's Samba create multiple threads to handle several file operationsasynchronously. This can, at the expense of some CPU cycles, increase the performance quite a lot. I increased the read speed to 500-600MBit/sec by enabling AIO and saw Samba using around 1-4% CPU on a Intel E2200.
==Enable AIO==
aio read size = 16384
aio write size = 16384
aio write behind = true <--- NOTE!!!: Only use with extreme caution. Read explanation bellowbelow
}}
==Things to Note==
'''It can not be under stressed. Bad options can be very BAD. It can corrupt your data and make you very sad. Use extreme caution if elaborating experimenting with the options!'''
If you add a new share in Amahi or change the settings of an existing one, Amahi will overwrite the '''/etc/samba/smb.conf''' file with the new configuration and thus removing your changes. A place to enable '''AIO''' in the settings section of Amahi has been suggested athttp://bugs.amahi.org/issues/861
12,424

edits