Amiga.org
Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: T1gha on November 21, 2003, 09:36:03 AM
-
I been stuck with an strange issue I liek to get verified.
My boot sys: (FFS) partision only have 300 bytes of stack, while my other volumes (SFS) have 4k..
Is this normal, and could this explain unstability ?
How could I add more stack space ?
-
Stacks on a partition??
What exactly are you looking at?
The only thing I can think that you mean are the "buffers", and generally SFS/PFS need more buffers allocated than FFS.
You can change the number of buffers using HDToolbox - although I think that this is the only place in which you can even see the number of buffers... so I'm a little confused! :-)
Any more info available?
-
Simply use the "addbuffers" command:
addbuffers dh0:
(shows you the number of "buffers" on partition dh0:)
addbuffers dh0: 200
(adds 200 "buffers" to partition dh0:)
addbuffers dh0: -200
(removes 200 "buffers" from partition dh0:)
This command also works for floppies (df0/pc0/etc).
Of course these changes are only temporary
until next reboot, but you can use HDToolbox
or startup-sequence/user-startup to make
more permanent changes...
Stacks on a partition??
What exactly are you looking at?
The only thing I can think that you mean are the "buffers", and generally SFS/PFS need more buffers allocated than FFS.
You can change the number of buffers using HDToolbox - although I think that this is the only place in which you can even see the number of buffers... so I'm a little confused!
Any more info available?
-
IIRC, 300 bytes is the normal (default) buffer value for hard drives with FFS. What kind of instability are you experiencing? The buffer size shouldn't cause you any problems, perhaps the hard drive is faulty?
-
Hi T1gha
300 buffers for FFS, is too much AFAIK.
FFS (OS3.9 and newer) needs 80/100 buffers as well.
PFS and SFS if you have some RAM, works fine with 300/400 (max 600).
Ciao
-
Im using stackwatch tool from aminet to monitor stack usage.
I have debugged my libs: startup-sequence and such and disabled various hacks and done the usual debug approach to exclude they as "ustabilators"
I did wonder why my HD0: (FFS) had such low stack space..
But, if this is normal I keep looking into other possible reasons.
-
Thanks for the verification about the low stack space.
I guess I should look elsewhere.
-
Framiga wrote:
Hi T1gha
300 buffers for FFS, is too much AFAIK.
FFS (OS3.9 and newer) needs 80/100 buffers as well.
PFS and SFS if you have some RAM, works fine with 300/400 (max 600).
Ciao
Humz, I belive my SYS: is about 1 G.
I have tons of ram (Running Amithlon), so whats an good value here ?
-
Well, Amithlon scratches the HDD no matter how many buffers you set up. It's probably an issue of the underlying Linux.
The stack size for file system programs can be set in the RDB (just like in a mount list). But AFAIK HDToolbox does not offer the option to edit it. Try HDInsttools from Aminet, I've heared it can edit the stack size. Or write your own program to patch the RDB.
Bye,
Thomas