public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* rewrite very slow
@ 2008-02-15 19:16 DS
  2008-02-16  0:36 ` Eric Sandeen
  0 siblings, 1 reply; 5+ messages in thread
From: DS @ 2008-02-15 19:16 UTC (permalink / raw)
  To: xfs

Hello,

I need some help to tunning my storage.

Very simple test at begin (perl script test.pl):

#!/usr/bin/perl

$time=time();
for ($i=1;$i<100;$i++)
{
open (SUBOR,">$i.txt");
print SUBOR "aaaaaaaaaaaaaaaaaaa\n";
close (SUBOR);
print "WRITE $i. FILE\n";
}
$time2=time();
$rozdiel_casov=$time2-$time;

print "TIME ".$rozdiel_casov." sekund\n";

First run:
file1:/mnt/hosting/test# ./test.pl
WRITE 1. FILE
WRITE 2. FILE
...
WRITE 98. FILE
WRITE 99. FILE
TIME 0 sekund


Every next run (rewrite existing files) is very very very slow:

file1:/mnt/hosting/test# ./test.pl
WRITE 1. FILE
WRITE 2. FILE
...

WRITE 98. FILE
WRITE 99. FILE
TIME 43 sekund


I try it on ext3. Every run is only 1-3seconds.

I tried tunning my storage.
My last mount specification: 

(rw,noatime,nodiratime,nobarrier,osyncisosync,logbsize=256k,logbufs=8,quota)
I tried all possible configuration (barrier, nobarrier, osyncisosync,
logbssize=XX,logbufs=2-8) nothing help me.

file1:/mnt/hosting/test# xfs_info /mnt/hosting/
meta-data=/dev/mapper/vghosting-hosting isize=256    agcount=32,
agsize=7626752 blks
         =                       sectsz=512   attr=2
data     =                       bsize=4096   blocks=244056064,
imaxpct=25
         =                       sunit=0      swidth=0 blks, unwritten=1
naming   =version 2              bsize=4096
log      =internal               bsize=4096   blocks=32768, version=2
         =                       sectsz=512   sunit=0 blks
realtime =none                   extsz=65536  blocks=0, rtextents=0

I test it on 4 other xfs storages and results was similar.


Any ideas?

Thanks.

Dusan

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-02-16  5:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-15 19:16 rewrite very slow DS
2008-02-16  0:36 ` Eric Sandeen
2008-02-16  2:46   ` David Chinner
2008-02-16  5:43     ` DS
2008-02-16  5:41   ` DS

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox