Welcome, Guest. Please login or register.

Author Topic: Low stack space on SYS: ?  (Read 2136 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline T1ghaTopic starter

  • Newbie
  • *
  • Join Date: Nov 2003
  • Posts: 18
    • Show only replies by T1gha
Low stack space on SYS: ?
« 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 ?
There are 10 types of people in the world: those who understand binary, and those who don\\\'t.
 

Offline Chunder

  • Full Member
  • ***
  • Join Date: Dec 2002
  • Posts: 148
    • Show only replies by Chunder
Re: Low stack space on SYS: ?
« Reply #1 on: November 21, 2003, 10:00:14 AM »
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?
Pimp My Amiga  8-)
___________________________
\\"The following statement is true.\\"
\\"The previous statement is a lie.\\"
 

Offline Damion

Re: Low stack space on SYS: ?
« Reply #2 on: November 21, 2003, 10:22:01 AM »
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...

Quote

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?
 

Offline carls

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 1047
    • Show only replies by carls
Re: Low stack space on SYS: ?
« Reply #3 on: November 21, 2003, 12:18:15 PM »
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?
Amiga: Too weird to live, too rare to die.
 

Offline Framiga

  • Hero Member
  • *****
  • Join Date: May 2003
  • Posts: 4096
    • Show only replies by Framiga
Re: Low stack space on SYS: ?
« Reply #4 on: November 21, 2003, 12:29:17 PM »
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

 

Offline T1ghaTopic starter

  • Newbie
  • *
  • Join Date: Nov 2003
  • Posts: 18
    • Show only replies by T1gha
Re: Low stack space on SYS: ?
« Reply #5 on: November 21, 2003, 12:45:55 PM »
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.
There are 10 types of people in the world: those who understand binary, and those who don\\\'t.
 

Offline T1ghaTopic starter

  • Newbie
  • *
  • Join Date: Nov 2003
  • Posts: 18
    • Show only replies by T1gha
Re: Low stack space on SYS: ?
« Reply #6 on: November 21, 2003, 12:47:37 PM »
Thanks for the verification about the low stack space.

I guess I should look elsewhere.
There are 10 types of people in the world: those who understand binary, and those who don\\\'t.
 

Offline T1ghaTopic starter

  • Newbie
  • *
  • Join Date: Nov 2003
  • Posts: 18
    • Show only replies by T1gha
Re: Low stack space on SYS: ?
« Reply #7 on: November 21, 2003, 12:48:52 PM »
Quote

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 ?
There are 10 types of people in the world: those who understand binary, and those who don\\\'t.
 

Offline Thomas

Re: Low stack space on SYS: ?
« Reply #8 on: November 21, 2003, 03:49:18 PM »
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