Operating System - HP-UX
1825775 Members
2027 Online
109687 Solutions
New Discussion

Re: No of Disk Devices and File system

 
SOLVED
Go to solution
Hemant_7
Occasional Advisor

No of Disk Devices and File system

Hi
1) How can i get the number of filesystem and disk devices attached to the system. Please note i need number.
Is there any sytem call or the command that can give this info.
2) Also when i run top,why %WCPU and %CPU r same for all the process ??. Can anybody tell what is the difference between this field. And how to calculate this %WCPU of the process.

Waiting for ur reply
Thanks and regards
Hemant
2 REPLIES 2
Michael Tully
Honored Contributor
Solution

Re: No of Disk Devices and File system

Hi,

%WCPU - Average (weighted) CPU usage since
'top' session started
%CPU - CPU usage over the current interval
(during the last top update)

SIZE - Total size of the process in kilobytes.
This includes text, data, and stack.
RES - Resident size of the process in kilobytes.
The resident size information is, at best,
is an approximate value.

As for the disk/filesystem situation:

disks
# ioscan -fnkC disk | grep CLAIMED | wc -l

filesytems
# mount -p | wc -l (note this only gives the current number of mountpoints mounted.

HTH
Michael

Anyone for a Mutiny ?
MANOJ SRIVASTAVA
Honored Contributor

Re: No of Disk Devices and File system

1. No . of filesystems can be had from from bdf | wc -l this includes root filesystem too

2. No of disks can be had from

ioscns -fnC disks | wc -l


or if you have ignite installed then do a print_manifest

to get all the information.

%wcpu avg cpu usage or weighted cpu usage.
%cpu is cpu usage over current interval.


Manoj Srivastava