* many subdirectories, slow search.
@ 2007-08-07 14:10 Arkadiy Kulev
2007-08-08 1:34 ` David Chinner
0 siblings, 1 reply; 2+ messages in thread
From: Arkadiy Kulev @ 2007-08-07 14:10 UTC (permalink / raw)
To: xfs
Hello xfs,
I have a external SATA storage, that is connected to my server via
SCSI HBA. The server is a 32 bit core2duo with 1gb RAM.
The server is used for storing millions of images that are accessed
randomly (around 50-100 queries per second, total of 2-3 megabytes
per second).
I started noticing, that images are being accessed slowly (high
lag of 5-10 seconds). Even when I connect via ssh and do "ls /data1"
for instance (/data1 is my 2 terabyte xfs partition) it gives me a
result only after a few seconds, even though the root folder is not
big.
I suppose that I am storing images incorrectly - placing images from
the same group (album) to different folders:
albums/00/00/1130000-h200.jpg
....
albums/45/87/2334587-h200.jpg
albums/45/87/2334587-10x10.jpg
....
albums/99/99/5679999-h200.jpg
(album subtree depends on the last 4 digits of photo id)
I am asking for your advice as gurus. Is it better to place all
images that are accessed from the same webpage (ordered access in
other terms) in the same folder? Or it doesn't matter?
Maybe there is some way of better storing of images?
Switching to SCSI disks is not an option. Any ideas?
Maybe I tuned ocfs2 wrong?
meta-data=/dev/sdb1 isize=256 agcount=32, agsize=15258737 blks
= sectsz=512 attr=0
data = bsize=4096 blocks=488279584, imaxpct=25
= sunit=0 swidth=0 blks, unwritten=1
naming =version 2 bsize=4096
log =internal bsize=4096 blocks=32768, version=1
= sectsz=512 sunit=0 blks, lazy-count=0
realtime =none extsz=65536 blocks=0, rtextents=0
--
Best regards,
Arkadiy mailto:eth@ethaniel.com
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: many subdirectories, slow search.
2007-08-07 14:10 many subdirectories, slow search Arkadiy Kulev
@ 2007-08-08 1:34 ` David Chinner
0 siblings, 0 replies; 2+ messages in thread
From: David Chinner @ 2007-08-08 1:34 UTC (permalink / raw)
To: Arkadiy Kulev; +Cc: xfs
On Tue, Aug 07, 2007 at 06:10:22PM +0400, Arkadiy Kulev wrote:
> Hello xfs,
>
> I have a external SATA storage, that is connected to my server via
> SCSI HBA. The server is a 32 bit core2duo with 1gb RAM.
.....
> I started noticing, that images are being accessed slowly (high
> lag of 5-10 seconds). Even when I connect via ssh and do "ls /data1"
> for instance (/data1 is my 2 terabyte xfs partition) it gives me a
> result only after a few seconds, even though the root folder is not
> big.
Is it always slow, or does it slow down after some runtime?
Does that slow access correspond to running out of free memory on the
machine? i.e. Does it speed up again if you:
# echo 3 > /proc/sys/vm/drop_caches
Cheers,
Dave.
--
Dave Chinner
Principal Engineer
SGI Australian Software Group
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-08-08 1:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-07 14:10 many subdirectories, slow search Arkadiy Kulev
2007-08-08 1:34 ` David Chinner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox