vmunix: kthread: table is full (332 Views)
Reply
Occasional Advisor
wangzhida
Posts: 10
Registered: ‎02-27-2006
Message 1 of 10 (332 Views)
Accepted Solution

vmunix: kthread: table is full

dear sir/madam:
after i login the system, it always returns "fork failed" whatever i typed in. so I had to restart the system.
I found some messages in OLDsyslog.log that I pasted below:
----------------------------------------------
Mar 20 23:28:56 cs_svr03 vmunix: kthread: table is full
Mar 20 23:29:40 cs_svr03 inetd[915]: ftp/tcp: accept: Bad file number
Mar 20 23:31:22 cs_svr03 vmunix: kthread: ta...
Mar 20 10:37:02 cs_svr03 ACEAGENT: Failed to create Thread.
-----------------------------------------------
I guess the reason may be related to system resource limits. but I don't know which parameter should I tune? could you give me a hand?

sincerely yours

Andy.
Honored Contributor
Muthukumar_5
Posts: 4,030
Registered: ‎06-09-2004
Message 2 of 10 (332 Views)

Re: vmunix: kthread: table is full

It is related with nkthread kernel parameter.

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=63788

--
Muthu
Easy to suggest when don't know about the problem!
Honored Contributor
Arunvijai_4
Posts: 4,194
Registered: ‎04-07-2005
Message 3 of 10 (332 Views)

Re: vmunix: kthread: table is full

Hi Andy,

Can you post the output of this ?

# kmtune -l -q nkthread

# kmtune -l -q nproc

In my system, it is

#kmtune -l -q nkthread
Parameter: nkthread
Current: 499
Planned: (((NPROC*7)/4)+16)
Default: (((NPROC*7)/4)+16)
Minimum: -
Module: -
Version: -
Dynamic: No

#kmtune -l -q nproc
Parameter: nproc
Current: 276
Planned: (20+8*MAXUSERS)
Default: (20+8*MAXUSERS)
Minimum: -
Module: -
Version: -
Dynamic: No


-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Honored Contributor
RAC_1
Posts: 5,920
Registered: ‎03-21-2002
Message 4 of 10 (332 Views)

Re: vmunix: kthread: table is full

You might be hitting,nkthread or max_thread_proc parameter. check both.
There is no substitute to HARDWORK
Occasional Advisor
wangzhida
Posts: 10
Registered: ‎02-27-2006
Message 5 of 10 (332 Views)

Re: vmunix: kthread: table is full

Sorry. I forgot some informations might be helpful for solving the problem. some parameters' value are here.
maxusers = 512
max_thread_proc = 4096
Occasional Advisor
wangzhida
Posts: 10
Registered: ‎02-27-2006
Message 6 of 10 (332 Views)

Re: vmunix: kthread: table is full

hi, Arun
I've seen the problem. nkthread's value is 9458. it's even less than default value 17971 (((NPROC*7)/4)+16). the nproc is 10260.

Now I plan to reconfigure the kernel. Would you please have a look at the steps I wanna follow and correct it?
step 1: cd /stand; cp system system.prev
step 2: select "Process New Kernel" from the SAM action menu.
step 3: select "Move kernel into place"
step 4: select "Shutdown/Reboot System Now"

thanks!
Honored Contributor
Yogeeraj_1
Posts: 4,613
Registered: ‎11-25-2001
Message 7 of 10 (332 Views)

Re: vmunix: kthread: table is full

hi andy,

The steps are ok except:

step 1: cd /stand; cp system system.prev

i would also copy vmunix
e.g. cp vmunix vmunix.prev


just to be cautious...

kind regards
yogeeraj

No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Honored Contributor
Arunvijai_4
Posts: 4,194
Registered: ‎04-07-2005
Message 8 of 10 (332 Views)

Re: vmunix: kthread: table is full

Hi Andy,

To Reconfigure kernel, you can follow these steps,

1) Copy /stand/system & /stand/vmunix

2) /stand/dlkm

3) Use SAM to reconfigure and build kernel

4) Reboot using new kernel.


-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
Honored Contributor
Muthukumar_5
Posts: 4,030
Registered: ‎06-09-2004
Message 9 of 10 (332 Views)

Re: vmunix: kthread: table is full

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=63788

Refer mike tully's reply. It is telling all about kernel rebuild after parameter change.

--
Muthu
Easy to suggest when don't know about the problem!
Honored Contributor
Arunvijai_4
Posts: 4,194
Registered: ‎04-07-2005
Message 10 of 10 (332 Views)

Re: vmunix: kthread: table is full

Hi Andy,

There are several threads discussed about how to reconfigure kernel, you do a search in ITRC,

http://www2.itrc.hp.com/service/james/search.do?searchtext=rebuild+kernel&submit.x=0&submit.y=0&hpl=...

-Arun
"A ship in the harbor is safe, but that is not what ships are built for"
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.