10-27-2010
what is your exact problem? what are you referring to? whole chip to core/thread?
9 More Discussions You Might Find Interesting
1. Solaris
Hi..,
my dout is a solaris server is having 16 cpu's.
in tht one cpu running some error process, accupaying more space.
I wanna down tht particular CPU only with out interrupting the other 15
CPU's. how can i do this. is there any command for this ?? (5 Replies)
Discussion started by: b.janardhanguru
5 Replies
2. UNIX for Dummies Questions & Answers
hi,
i want to know cpu utilizatiion per process per cpu..for single processor also if multicore in linux ..to use these values in shell script to kill processes exceeding cpu utilization.ps (pcpu) command does not give exact values..top does not give persistant values..psstat,vmstat..does njot... (3 Replies)
Discussion started by: pankajd
3 Replies
3. Solaris
Hello Friends,
On one of my Solaris 10 box, CPU usage shows 100% using "sar", "vmstat". However, it has 4 CPUs and prstat and glance are not showing enough processes to justify high CPU utilization.
=========================================================================
$ prstat -a
... (4 Replies)
Discussion started by: mahive
4 Replies
4. Solaris
Can anyone tell me difference between cpu-shares vs cpu-cap in solaris & how FSS will work with cpu-caps ? (9 Replies)
Discussion started by: fugitive
9 Replies
5. Solaris
Hi,
I am a weblogic Admin
I our env there are 5 servers running in one Solaris 10 Sparc machine.
But when i tried for process status using <top> command
I got the following output
load averages: 1.75, 2.18, 2.12; up 134+08:28:49
22:24:21
79 processes: 77 sleeping, 1 running,... (1 Reply)
Discussion started by: Joseph Antoine
1 Replies
6. Hardware
Hi All,
What is the difference between CPU CHIP and CUP ID on SUN/ Oracle M5000 servers..
Thanks in advance (1 Reply)
Discussion started by: kumarmani
1 Replies
7. UNIX for Dummies Questions & Answers
We have a single threaded application which is restricted by CPU usage even though there are multiple CPUs on the server, hence leading to significant performance issues. Is it possible to merge / combine multiple CPUs at OS level so it appear as a single CPU for the application? (6 Replies)
Discussion started by: Dissa
6 Replies
8. AIX
Hi All,
It may be a n00b question, but i really want to know , How Entitled Capacity is less and Used CPU is more when there is no Free CPU is available in the managed system.
I have 5LPARs in a MS with Dual VIO.
Managed System CPU details
Available: 0.20
Assigned to partitions: 15.80... (11 Replies)
Discussion started by: Thala
11 Replies
9. UNIX for Beginners Questions & Answers
I read that Entitlement CPU should be set to max 75% compare to Virtual CPU. May I know the reason.
I have set the Entitlement CPU = Virtual CPU on AIX . It works fine .
Can you help to understand. (1 Reply)
Discussion started by: gabhanes
1 Replies
SETNS(2) Linux Programmer's Manual SETNS(2)
NAME
setns - reassociate thread with a namespace
SYNOPSIS
#define _GNU_SOURCE /* See feature_test_macros(7) */
#include <sched.h>
int setns(int fd, int nstype);
DESCRIPTION
Given a file descriptor referring to a namespace, reassociate the calling thread with that namespace.
The fd argument is a file descriptor referring to one of the namespace entries in a /proc/[pid]/ns/ directory; see proc(5) for further
information on /proc/[pid]/ns/. The calling thread will be reassociated with the corresponding namespace, subject to any constraints
imposed by the nstype argument.
The nstype argument specifies which type of namespace the calling thread may be reassociated with. This argument can have one of the fol-
lowing values:
0 Allow any type of namespace to be joined.
CLONE_NEWIPC
fd must refer to an IPC namespace.
CLONE_NEWNET
fd must refer to a network namespace.
CLONE_NEWUTS
fd must refer to a UTS namespace.
Specifying nstype as 0 suffices if the caller knows (or does not care) what type of namespace is referred to by fd. Specifying a nonzero
value for nstype is useful if the caller does not know what type of namespace is referred to by fd and wants to ensure that the namespace
is of a particular type. (The caller might not know the type of the namespace referred to by fd if the file descriptor was opened by
another process and, for example, passed to the caller via a UNIX domain socket.)
RETURN VALUE
On success, setns() returns 0. On failure, -1 is returned and errno is set to indicate the error.
ERRORS
EBADF fd is not a valid file descriptor.
EINVAL fd refers to a namespace whose type does not match that specified in nstype, or there is problem with reassociating the the thread
with the specified namespace.
ENOMEM Cannot allocate sufficient memory to change the specified namespace.
EPERM The calling thread did not have the required privilege (CAP_SYS_ADMIN) for this operation.
VERSIONS
The setns() system call first appeared in Linux in kernel 3.0; library support was added to glibc in version 2.14.
CONFORMING TO
The setns() system call is Linux-specific.
NOTES
Not all of the attributes that can be shared when a new thread is created using clone(2) can be changed using setns().
BUGS
The PID namespace and the mount namespace are not currently supported. (See the descriptions of CLONE_NEWPID and CLONE_NEWNS in clone(2).)
SEE ALSO
clone(2), fork(2), vfork(2), proc(5), unix(7)
COLOPHON
This page is part of release 3.44 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
Linux 2012-05-04 SETNS(2)