hi,
we all know /proc is about the information of active process,
I have just read an artical which said you can use /proc/cpuinfo,
/proc/net./proc/meminfo etc. to know about some hardware
information .But I want to know how to use with command line? (1 Reply)
I did a search on this, but didn't find exactly the answer I'm looking for. What exactly is the proc directory for? Showing processes spawned by users? I ask because I have some very large files in that directory by multiple users and its affecting my disk usage. Can you limit how many... (2 Replies)
Hi,
What are the various way's to fix /proc folder in redhat linux 7.2 and how to verify /proc folder is proper or croupted?
Thank in advance
Bache Gowda (7 Replies)
:)
hi all !
Please help me
When I select data from oracle with proc * C prog.
I count the number of rows
For example the total rows is 1000000
but the number of result return is a limit number 5000 for ex
So How can I know this limit (5 Replies)
Perhaps this is a very dummy question but sorry I don't know other place to do it. We just buy a new cluster of Xeon machines but there is something I don't understand and perhaps someone can help me.
The more /proc/cpuinfo produces the following output (just part of it).
processor : 0... (1 Reply)
Hi,
I am trying to calculate the CPU Usage by getting the difference between the idle time reported by /proc/stat at 2 different intervals. Now the 4th entry in the first line of /proc/stat will give me the 'idle time'. But I also came across /proc/uptime that gives me 2 entries : 1st one as the... (0 Replies)
So, I'm looking over /proc/cpuinfo and have a question... I've read that "siblings" refers to hyperthreading, but that seems odd considering the contents of cpuinfo. Here's a part:
model name : Intel(R) Xeon(R) CPU E5410 @ 2.33GHz
physical id : 0
siblings : 4
core... (1 Reply)
If you are adding the kernel module without any module parameter passing, it should print out following information to info1 file so that user can make read access to info1 file (via, for example, cat /proc/info1):
• Processor type
• Kernel version
• Total number of the processes currently... (1 Reply)
Hi,
I wanted to understand what exactly /proc/cpuinfo shows?
We have a machine with following specification...
(2x) Intel Xeon 6-core processors
So, ideally it shouls have 12processors, but the output on /proc/cpuinfo shows 24 processors.
Can someone please explain how this is... (3 Replies)
Discussion started by: shrshah64
3 Replies
LEARN ABOUT OSF1
assign_cpu_to_pset
assign_cpu_to_pset(3) Library Functions Manual assign_cpu_to_pset(3)NAME
assign_cpu_to_pset - Assigns a processor to a processor set
LIBRARY
Pset Library (libpset.a)
Mach Library (libmach.a)
SYNOPSIS
#include <sys/types.h> #include <sys/processor.h>
int assign_cpu_to_pset(
unsigned long cpu,
long pset_id ,
long option );
PARAMETERS
Processor or processors to assign to the specified processor set. Processor set identifier, which is returned by the create_pset function.
Specifies a bit mask. Currently, only the ANY_CPU bit is supported. If this bit is set, the value specified by the cpu variable is the
number of processors to be assigned to the specified processor set from the default processor set. If the ANY_CPU bit is not set, the
value specified by the cpu variable is the mask of processors to be assigned to the processor set.
DESCRIPTION
The assign_cpu_to_pset function removes processors from their current processor set and assigns them to the processor set specified by the
pset_id variable. This function requires root privileges.
If the ANY_CPU option is specified, the number of processors specified by the cpu variable are assigned from the default processor set to
the processor set that is specified with the pset_id variable. If the specified number of processors are not available in the default pro-
cessor set, an error is returned and no processors are assigned.
If the ANY_CPU option is not set, the value specified by the cpu variable is a mask of processors to be assigned to the specified processor
set. For example, if you specify a cpu value of 6, then processors 2 and 3 are assigned to the processor set.
Note that processors are not required to start in slot 0 on some platforms. For example, you may see a three-processor system with proces-
sors in slots 6, 7, and 8. The console assigns the master processor at power up, which is usually the processor in slot 0 if it is occu-
pied. However, there is no requirement that slot 0 must be populated or that the master is the first processor on the bus. In the example
of the three-processor (slots 6, 7, and 8) system, the master processor will be the one in slot 6.
Processor assignments are logged in the /var/adm/wtmp file.
RETURN VALUES
If the processor assignment is successful, the assign_cpu_to_pset function returns zero (0). If the assignment is unsuccessful, the func-
tion returns a negative number. Use the print_pset_error function to print a message that describes the error.
FILES
/var/adm/wtmp
RELATED INFORMATION bind_to_cpu(3), create_pset(3), destroy_pset(3), assign_pid_to_pset(3), print_pset_error(3), processor_sets(4), pset_create(1) delim off
assign_cpu_to_pset(3)