- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to interpret the flag information of the p...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2007 08:32 PM
11-29-2007 08:32 PM
When I ran "ps -l" I got the following message:
" F S UID PID PPID C PRI NI
401 R 0 3957 3955 0 178 20
401 R 0 4046 3957 1 178 20 "
I want to know what does "401" mean under the "F" column
Thx in advance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2007 08:43 PM
11-29-2007 08:43 PM
Re: How to interpret the flag information of the process
http://docs.hp.com/en/B2355-60105/ps.1.html
scroll down to "flags".
...
flags Flags (octal and additive) associated with the process:
0 Swapped
1 In core
2 System process
4 Locked in core (e.g., for physical I/O)
10 Being traced by another process
20 Another tracing flag
The default heading for this column is F.
Hope this helps!
Regards
Torsten.
__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.
__________________________________________________
No support by private messages. Please ask the forum!
If you feel this was helpful please click the KUDOS! thumb below!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2007 08:45 PM
11-29-2007 08:45 PM
Re: How to interpret the flag information of the process
From the man ps command.
---
-l Show columns flags, state, uid, pid, ppid, cpu, intpri, nice, addr, sz, wchan, tty, time, and comm, in that order.
---
flags Flags (octal and additive) associated with the process:
0 Swapped
1 In core
2 System process
4 Locked in core (e.g., for physical I/O)
10 Being traced by another process
20 Another tracing flag
---
The default heading for this column is F.
Regards,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2007 10:00 PM
12-02-2007 10:00 PM
Re: How to interpret the flag information of the process
I've consulted the manual myself and I've seen those information.
But what does "401" mean actually?
Thx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2007 10:35 PM
12-02-2007 10:35 PM
Re: How to interpret the flag information of the process
1 In core
>But what does "401" mean actually?
Well, the "1" means in memory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2007 10:55 PM
12-02-2007 10:55 PM
Re: How to interpret the flag information of the process
"401" means it's both in core and swapped?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2007 12:47 AM
12-03-2007 12:47 AM
Re: How to interpret the flag information of the process
"401" means it's both in core and swapped?
That's not how you OR octal bits. It means: 0400 | 0001
And unfortunately it doesn't define 400.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2007 05:48 PM
12-03-2007 05:48 PM
Re: How to interpret the flag information of the process
What does 0400|0001 actually mean?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2007 07:47 PM
12-03-2007 07:47 PM
Re: How to interpret the flag information of the process
This is the C syntax for ORing octal 400 with octal 001.
Looking at
#define PS_SWLAZY 0x100 process has associated Lazy Swap region(s)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2007 09:08 PM
12-03-2007 09:08 PM
Re: How to interpret the flag information of the process
I'm fresh man of this
Would you please tell me what's "OR" and which manual in HP-UX I can get the actual meaning of Flag information:"401" or "421" or "1421"?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2007 09:32 PM
12-03-2007 09:32 PM
SolutionWhen you have bits, you can do bitwise OR and AND and other operations. Each octal digit has 3 different bits, kind of like the bits in the permissions for ls(1) for user, group and other.
http://docs.hp.com/en/B3901-90014/ch05s04.html
>which manual in HP-UX I can get the actual meaning of Flag information: "401" or "421" or "1421"?
As I mentioned, the man page is broken. Only bits 0 to octal 20 are documented. The others are in the header file.
0040 == 0x20 text is locked in memory
0100 == 0x40 data is locked in memory
0200 == 0x80 syscall tracing enabled
0400 == 0x100 has associated Lazy Swap region(s)
1000 == 0x200 has 64-bit address space layout
2000 == 0x400 was or is privileged
4000 == 0x800 is ganged
So 401 is lazy swap, in memory.
So 1421 is 64 bit, lazy, traced process has been waited for, in memory