i'm not good to manage firewall and i have just a portion of the rack..
anyway i've done some tests with samba..
server: celeron 2.6 ghz with normal hd..
client: dual xeon 3.2
used php to write file from the xeon to the server(celeron)
for ($i=0;$i<$ciclo;$i++){
//$file = './../test/'.$i.'.dat';
$file = './smbtest/'.$i.'.dat';
$handle = fopen ($file, 'w'); // Let's open for read and write
fwrite ($handle, $test_string); // Don't forget to increment the counter
fclose ($handle); // Done
}
these are the results..
1 line output
DONE IN 753.31152 seconds writing 20000 different files ;
60%cpu, 5% io -> DONE IN 8.88320 seconds writing 2000 different files
DONE IN 4.08079 seconds writing 500 different files
DONE IN 0.27418 seconds writing 50 different files
DONE IN 0.05402 seconds writing 10 different files
1000 lines output
DONE IN 0.16756 seconds writing 10 different files with a string of 1000 lines
DONE IN 0.89410 seconds writing 50 different files with a string of 1000 lines
DONE IN 7.39047 seconds writing 500 different files with a string of 1000 lines
10k lines output
DONE IN 0.16756 seconds writing 10 different files with a string of 10000 lines (580 kb file)
15%cpu + 35%io ->DONE IN 49.42771 seconds writing 500 different files with a string of 10000 lines (580 kb file)
DONE IN 5.17738 seconds writing 50 different files with a string of 10000 lines
DONE IN 0.49385 seconds writing 5 different files with a string of 10000 lines
100k lines output
15%cpu + 20%io -> DONE IN 50.37175 seconds writing 50 different files with a string of 100000 lines (5.8 MB file)
DONE IN 0.16756 seconds writing 10 different files with a string of 100000 lines (5.8 MB file)
not too bad.. can write 50 files in 0.27418, and with an average write speed of 5.4mb/sec writing big files..
i've done some tests reading a file, from a random position, reading 1000 lines on a 2 gb logfile take 0.1 seconds, with an average cpu usage of 15% on the server.. 1%client, 0%io usage on both
reading 10.000 lines take 0.8 seconds... so not bad results
i'll try to adapt my app now to work with samba... we will see
Thanks!
Francesco