1854664 Members
14065 Online
104102 Solutions
New Discussion

Re: NFS hang up

 

NFS hang up

Hi All,

I am using HP-UX 11i v2 on both server and client. I saved some files on NFS but when I m going to login through a user or accessing the file system hangs that session but when I put the same file on another folder, accessing very easily but little bit delay.

I am getting following errors;

etc/profile[31]: cannot fork: too many processes
/etc/profile[48]: cannot fork: too many processes
/etc/profile[31]: cannot fork: too many processes/etc/profile[83]: cannot fork: too many processes
${HOME:-.}/.profile[32]: cannot fork: too many processes
${HOME:-.}/.profile[33]: cannot fork: too many processes
${HOME:-.}/.profile[48]: cannot fork: too many processes
${HOME:-.}/.profile[170]: cannot fork: too many processes
${HOME:-.}/.profile[172]: cannot fork: too many processes
${HOME:-.}/.profile[173]: cannot fork: too many processes

after 30 minutes i got sheel.

I am stuck overhere please help me out in this.

Thanks
14 REPLIES 14
OldSchool
Honored Contributor

Re: NFS hang up

faulty logic here....I seriously doubt that this has anything to do with NFS...rather you have exceed the process limits of the current kernal settings.

Please review the following (in particular the last post in the first item)

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=519632


http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1225122016967+28353475&threadId=27115

Suraj K Sankari
Honored Contributor

Re: NFS hang up

Hi,

What is your nproc values in both the servers ?

Suraj
Kapil Jha
Honored Contributor

Re: NFS hang up

R u able to log in to server from other userid and and if yes please check how many processes are running on the system.
WHat I feel over here is maximum number of processes reached and that is why nothing is happening and I also thing if after 30mnts u got shell u wont be able to do anything in there.

Can you please check this and revert.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Kapil Jha
Honored Contributor

Re: NFS hang up

One more thing as OldSchool said it mpost probably has nothing to do with nfs.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Aneesh Mohan
Honored Contributor

Re: NFS hang up

Hi Sarfraz,

The problem could be with the lack of maxuprc.The default value is 60 ,but I feel your case you may need to increase the value to 100 or above

Check using
#kcusage |grep maxuprc

or

#kmtune |grep maxuprc


Thanks,
Aneesh

Re: NFS hang up

you r right I kill all the processes but now it halts the session.
Dennis Handly
Acclaimed Contributor

Re: NFS hang up

>I kill all the processes but now it halts the session.

Which processes did you kill?
You might want to use kcusage(1m) to get current and limit:
maxuprc 8 / 3277
nproc 168 / 4200

Re: NFS hang up

When I am running kcusage command it gives me an error:

sh: kcusage: not found

but I run ps -fea | wc -l

output is 161
Dennis Handly
Acclaimed Contributor

Re: NFS hang up

>sh: kcusage: not found

Oops, maybe you need to be on 11.31.
Dennis Handly
Acclaimed Contributor

Re: NFS hang up

kctune(1m) will give you the configured max for each kernel parm.
Dennis Handly
Acclaimed Contributor

Re: NFS hang up

>ME: maybe you need to be on 11.31.

No, kcusage(1m) is on 11.23 too. If you aren't root, you need the full path: /usr/sbin/kcusage

Re: NFS hang up

I run the command and get below attached output.

$ /usr/sbin/kcusage
Tunable Usage / Setting
=============================================
dbc_max_pct 37 / 50
maxdsiz 37568512 / 2063835136
maxdsiz_64bit 61239296 / 4294967296
maxfiles_lim 107 / 4096
maxssiz 1097728 / 8388608
maxssiz_64bit 253952 / 268435456
maxtsiz 176128 / 100663296
maxtsiz_64bit 114688 / 1073741824
maxuprc 9 / 256
max_thread_proc 73 / 3000
maxvgs 3 / 10
msgmni 2 / 512
msgseg 0 / 8192
msgtql 0 / 1024
nfile 1332 / 65536
nflocks 19 / 4096
ninode 1478 / 4880
nkthread 484 / 8416
nproc 162 / 4200
npty 0 / 60
nstrpty 1 / 60
nstrtel 2 / 60
nswapdev 1 / 10
nswapfs 0 / 10
semmni 34 / 2048
semmns 196 / 4096
shmmax 17870856 / 1073741824
shmmni 9 / 400
shmseg 3 / 300
Dennis Handly
Acclaimed Contributor

Re: NFS hang up

>I run the command and get below attached output.
maxuprc 9 / 256

This seems small. I would suspect that 9 would have been 256 before you had to reboot?
Aneesh Mohan
Honored Contributor

Re: NFS hang up

Hi

Me > Check using (you have to do at the time of issue)

#kcusage |grep maxuprc

See this issue is common "cannot fork: too many processes" is appearing only on the console and not in the syslog then the culprit is maxuprc.If you are getting cannot fork: too many processes"" in both the console and syslog then the culprit is nproc.

Aneesh