Operating System - HP-UX
1823184 Members
3611 Online
109647 Solutions
New Discussion юеВ

ls -alR consuming lot of cpu

 
Animesh Chakraborty
Honored Contributor

ls -alR consuming lot of cpu

Hi All,
I know it is a long listing but I am facing this problem
in Superdome.
In top it shows like this
PID USERNAME PRI NI SIZE RES STATE TIME %WCPU %CPU COMMA
14239 root 222 20 5480K 3768K run 0:16 18.96 18.51 ls

Did you take a backup?
4 REPLIES 4
Paula J Frazer-Campbell
Honored Contributor

Re: ls -alR consuming lot of cpu

Hi

The cpu usage depends upon what else the system is doing, if it is quiet then your ls command will be given this power.

It could also be an indication of disk problems.

It is an "It depends" answer.

Paula
If you can spell SysAdmin then you is one - anon
Animesh Chakraborty
Honored Contributor

Re: ls -alR consuming lot of cpu

Paula,
you are correct but in this case this server running 1.2TB(EMC disk) informix database with SAP R/3 Application with 900 + users.
That was my concern.
Did you take a backup?
BFA6
Respected Contributor

Re: ls -alR consuming lot of cpu

Hi,

On some of our servers, we can get ls at the top taking up a lot of cpu, especially if the directory has a lot of files in it.

Is it causing a problem at all ?

Regards,

Hilary
Paula J Frazer-Campbell
Honored Contributor

Re: ls -alR consuming lot of cpu

Hi

Yes lots of file will do this, but is this a new occurance?

If so and files are about the same then start looking at disk, sar, glance, syslog dmesg etc.

If you have tusc then attach to the pid and see what it is doing.

HTH

Paula
If you can spell SysAdmin then you is one - anon