Welcome, Guest. Please login or register.

Author Topic: Filesystem super slow on directories with big/many files  (Read 3361 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline JoseTopic starter

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2871
    • Show only replies by Jose
Filesystem super slow on directories with big/many files
« on: January 23, 2009, 04:10:08 AM »
I seem to remember some problems related to this but I had never experienced them.
I'm using SFS, block size 512 and all that. I opened a drawer with may files in it and the system stoped responding to file operations. After a whole bunch of time, probably more than 1 minute it got back. I opened NotePad and it spit out an out of memory message!!! The menu bar shows 30MB free or more so I wonder what da heck is going on, is there a way to fix this ? Maybe the stack ? Will tinker more with it later but would like to hear your opinions.

:pint:
\\"We made Amiga, they {bleep}ed it up\\"
 

Offline ChaosLord

  • Hero Member
  • *****
  • Join Date: Nov 2003
  • Posts: 2608
    • Show only replies by ChaosLord
    • http://totalchaoseng.dbv.pl/news.php
Re: Filesystem super slow on directories with big/many files
« Reply #1 on: January 23, 2009, 04:20:38 AM »
Use FFS or PFS.
Wanna try a wonderfull strategy game with lots of handdrawn anims,
Magic Spells and Monsters, Incredible playability and lastability,
English speech, etc. Total Chaos AGA
 

Offline AmigaMance

  • Hero Member
  • *****
  • Join Date: Apr 2005
  • Posts: 1278
    • Show only replies by AmigaMance
Re: Filesystem super slow on directories with big/many files
« Reply #2 on: January 23, 2009, 04:59:18 AM »
@jose
 How many files do you have in that directory? More than 1000? In such case, the slow-down is inevitable. You need to distribute the files to more than 1 directory.
 How many buffers do you have assigned to the partition where this directory resides? I suspect that they are not enough. Increase them to 512 or even more.
 You can also increase the SFS read-ahead buffers by using the SFSCache command and see if things get better.
Also, you need to make sure that the the Mask value of this partition points to a location in the Fast-ram.
A1200 PPC user.
 

Offline JoseTopic starter

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2871
    • Show only replies by Jose
Re: Filesystem super slow on directories with big/many files
« Reply #3 on: January 25, 2009, 12:30:02 AM »
Well, one of the advertised features of SFS is "FAST reading of directories".

Buffers were set to 80, mask to oxffffffff, don't think these are too low values (for the buffers).. as 80 corresponds to 40Kb.

I've deleted the directory meanwhile and don't really know where I got it from, it was in an old HD I had lying around, just remember it had alot of small scanned images from a text book.
\\"We made Amiga, they {bleep}ed it up\\"
 

Offline stefcep2

  • Hero Member
  • *****
  • Join Date: Sep 2007
  • Posts: 1467
    • Show only replies by stefcep2
Re: Filesystem super slow on directories with big/many files
« Reply #4 on: January 25, 2009, 01:07:13 AM »
My experience with SFS is that its still unreliable.  I get odd errors, even in emulators so its not my Amiga hardware thats doing it, even when using pre-installed environments.  PF is probably the best balance between reliability and speed
 

Offline JoseTopic starter

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2871
    • Show only replies by Jose
Re: Filesystem super slow on directories with big/many files
« Reply #5 on: January 25, 2009, 01:22:35 AM »
Is PFS still for sale ? I found it using Google but would prefer to not use a pirated copy if it's still not abandonware...
\\"We made Amiga, they {bleep}ed it up\\"
 

Offline Damion

Re: Filesystem super slow on directories with big/many files
« Reply #6 on: January 25, 2009, 02:40:47 AM »
Quote

Jose wrote:
Is PFS still for sale ? I found it using Google but would prefer to not use a pirated copy if it's still not abandonware...


I would hunt down a copy of PFS3 - it's simply awesome. Super fast, very reliable in my experience. Even things like Mac filedisks are blazing fast in comparison to hosting them on an FFS partition. (Not like Shapeshifter is much use these days, but still... ;-))

I've heard mixed things about SFS. I'm about to try it on my A2K, and I certainly hope it's better than FFS... though I'm doubtful it will match the speed of PFS3.

 

Offline DamageX

  • Sr. Member
  • ****
  • Join Date: Jun 2005
  • Posts: 339
    • Show only replies by DamageX
    • http://www.hyakushiki.net/
Re: Filesystem super slow on directories with big/many files
« Reply #7 on: January 25, 2009, 05:59:38 AM »
The problem is probably workbench and not the filesystem (although I'd go with more buffers and larger block size, myself). When opening a drawer with a lot of files it has to create a ridiculously huge window in RAM and draw all the icons (or fill in all the text if it is a list). When browsing my PC's harddrive from my A2000 I would often run out of chipmem (even with 2MB).
 

Offline JoseTopic starter

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2871
    • Show only replies by Jose
Re: Filesystem super slow on directories with big/many files
« Reply #8 on: January 25, 2009, 02:38:56 PM »
@Damage

The SFS docs say the optimal block size is 512.
As for the huge window in RAM is that really necessary or it's just the way it works ?
Yeah, now that you mention it I've had that problem browsing my PC's files too a couple of years ago when the nr of files is huge.
\\"We made Amiga, they {bleep}ed it up\\"
 

Offline Framiga

  • Hero Member
  • *****
  • Join Date: May 2003
  • Posts: 4096
    • Show only replies by Framiga
Re: Filesystem super slow on directories with big/many files
« Reply #9 on: January 25, 2009, 05:08:53 PM »
you have to use at least 400 dosbuffers with SFS and tweaking with the SFSConfig tool.
 

Offline JoseTopic starter

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2871
    • Show only replies by Jose
Re: Filesystem super slow on directories with big/many files
« Reply #10 on: January 25, 2009, 05:32:17 PM »
@Framiga

Will give that a try, thanks.
I was hopping it would have a sensible config out of the box...
\\"We made Amiga, they {bleep}ed it up\\"
 

Offline Mark

  • Jr. Member
  • **
  • Join Date: Apr 2002
  • Posts: 94
    • Show only replies by Mark
Re: Filesystem super slow on directories with big/many files
« Reply #11 on: January 26, 2009, 01:56:39 AM »
Quote
The problem is probably workbench and not the filesystem


I agree with you there.  Workbench takes a long time to render 1000 icons.  The problem is worse if using the "Show All Files" option when DefIcons is running since DefIcons will load the first block of every file to determine which icon to use.

Quote
(although I'd go with more buffers and larger block size, myself)


More buffers, certainly, but using a larger block size to speed performance may be a peculiarity specific to FFS.  In my experience, a block size larger than 512 makes SFS slow down, not speed up.