09-02-2008
if this is a linux, you can check the /proc filesystem.
use "man proc" and search the explanation of what each numbered folder means, and what the data inside the file statm
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
we are running red hat ES4 and i would like to know if there is anyway of restrcting the maximum amount of memory that a process can get? I have a single preocess that is taking >13GB.
Thanks,
Frank (4 Replies)
Discussion started by: frankkahle
4 Replies
2. Solaris
Hi All,
I am trying to find the physical memory usage by each process/users.
Can you please let me know how to get the memory usage?.
Thanks,
bsraj. (12 Replies)
Discussion started by: bsrajirs
12 Replies
3. HP-UX
I use pstat API to get Process Infomation
I would like to get a process
1.process owner
2.how many physical memory and virtual memory and total memory used(KB) and usage(%)
3.a process excution file create time
4.a process excution file access time
I do't know which attribute it i need
... (3 Replies)
Discussion started by: alert0919
3 Replies
4. AIX
I don't know when the process will start and end, I need write a script to trace it's cpu/memory usage when it is runing. How to write this script? (2 Replies)
Discussion started by: rainbow_bean
2 Replies
5. Programming
Hi,
I have the following two processes that's built with static libraries. Both the process have many common libraries.
-rwxr-xr-x 1 xxx xxx 152946280 Oct 15 08:38 server1
-rwxr-xr-x 1 xxx xxx 41633880 Oct 15 08:39 server2.
I built these two server processes making all the... (1 Reply)
Discussion started by: srivatsan_vn
1 Replies
6. Emergency UNIX and Linux Support
Hi,
I have the following two processes that's built with static libraries. Both the process have many common libraries.
-rwxr-xr-x 1 xxx xxx 152946280 Oct 15 08:38 server1
-rwxr-xr-x 1 xxx xxx 41633880 Oct 15 08:39 server2.
I built these two server processes making all the... (1 Reply)
Discussion started by: srivatsan_vn
1 Replies
7. UNIX for Advanced & Expert Users
Hi Guys,
I work on a AIX environment and I'm trying to write a script where I can collect all the memory used by a process. Basically I'm executing the command 'ps -fu userid' to get all the process ids and then executing the 'ps v PID' to get all the memory allocated by PPID. My question is... (2 Replies)
Discussion started by: arizah
2 Replies
8. HP-UX
Hi all,
Is there any command which shows the virtual memory usage of a particular process in HP-UX machine.
I have tried with ps, top but could not get what I want.
Kindly provide me a solution.
Thanks in Advance
ARD (4 Replies)
Discussion started by: ard
4 Replies
9. Solaris
hi all gurus:
I want to find out Solaris process memory usage, but got a bit confused, see if any one can provide me some guidance.
i tend to use prstat -a to get total memory consumption by user (I know prstat likely have a bug that simply sum up the memory, regardless if the memory being... (5 Replies)
Discussion started by: oakville
5 Replies
10. Solaris
I have multiple oracle databases on one server. All the database are running from the same user i.e. oraent.
The process for each database can be distinguished by the ps -ef command
Eg : ps -ef | grep oraentThe Output :
oraent 5361 1 0 20:58:05 ? 0:00 oracledb1... (11 Replies)
Discussion started by: yashreads
11 Replies
LSNS(8) System Administration LSNS(8)
NAME
lsns - list namespaces
SYNOPSIS
lsns [options] [namespace]
DESCRIPTION
lsns lists information about all the currently accessible namespaces or about the given namespace. The namespace identifier is an inode
number.
The default output is subject to change. So whenever possible, you should avoid using default outputs in your scripts. Always explicitly
define expected columns by using the --output option together with a columns list in environments where a stable output is required.
Note that lsns reads information directly from the /proc filesystem and for non-root users it may return incomplete information. The cur-
rent /proc filesystem may be unshared and affected by a PID namespace (see unshare --mount-proc for more details). lsns is not able to see
persistent namespaces without processes where the namespace instance is held by a bind mount to /proc/pid/ns/type.
OPTIONS
-J, --json
Use JSON output format.
-l, --list
Use list output format.
-n, --noheadings
Do not print a header line.
-o, --output list
Specify which output columns to print. Use --help to get a list of all supported columns.
The default list of columns may be extended if list is specified in the format +list (e.g. lsns -o +PATH).
-p, --task pid
Display only the namespaces held by the process with this pid.
-r, --raw
Use the raw output format.
-t, --type type
Display the specified type of namespaces only. The supported types are mnt, net, ipc, user, pid, uts and cgroup. This option may
be given more than once.
-u, --notruncate
Do not truncate text in columns.
-V, --version
Display version information and exit.
-h, --help
Display help text and exit.
AUTHORS
Karel Zak <kzak@redhat.com>
SEE ALSO
nsenter(1), unshare(1), clone(2), namespaces(7)
AVAILABILITY
The lsns command is part of the util-linux package and is available from https://www.kernel.org/pub/linux/utils/util-linux/.
util-linux December 2015 LSNS(8)