08-01-2013
blackrageous, you answers in correct direction, thanks.
by near and far memory I mean numa. We can skip this, let's say just RAM.
cpu time is based on state, yes, and this is the question - what is exactly the state a thread is having in the moment while date is transferring from memory to cache. Is the thread goes from cpu and rescheduled into run queue or still be on cpu and running?
Let's imagine that a thread worked 1 hour without any blocked operations like I/O, just calculating with RAM, the thread is only working thread in idle multi-core system, and a half of time was consumed by transferring data from memory to cache. In such case cpu time of the thread is 30 minutes or 60 ?
10 More Discussions You Might Find Interesting
1. HP-UX
Hi,
I am loking for a c++ function that calculate CPU time under HP-UX
Thank you (1 Reply)
Discussion started by: limame
1 Replies
2. UNIX for Advanced & Expert Users
Hello all,
I'm using clock() function (from ctime) to realize how long it takes my threaded application to complete an algorithm. I would like to know how this function behaves in multicore boxes, that is: does it return the sum of the clock ticks of each processor the program was runned on ?... (0 Replies)
Discussion started by: clalfa
0 Replies
3. UNIX for Advanced & Expert Users
Hi,
I have problem like everyday i have to check which process consuming more cpu time. I have done it manually using top command..
Is there any script which will tell the exact process name which will consuming more time. I am using hpux. (1 Reply)
Discussion started by: rajesh08
1 Replies
4. Linux
Hi,
I would like to view the cpu and memory utilization of a given job over time and save this information in a file, such that at the end of the process I can create a plot of the CPU and memory utilization over time.
Is this possible?
I would like to do the same for the io, is there any... (1 Reply)
Discussion started by: giorgos193
1 Replies
5. Shell Programming and Scripting
I thought a program's elapsed time, some program language call it real time, should be the time of a program from start to finish. And it should be equal or longer than CPU time. This is true for the most of the cases. However, I do see some of my programs CPU time is longer than Elapsed time. ... (1 Reply)
Discussion started by: visio2000
1 Replies
6. UNIX Desktop Questions & Answers
Hi i am a newbie thanks in advance
i have a process which keeps on running but doesn't use any CPU time and doesn't do the functionality which it is suppose to do .
If i kill the process and start the process again then the process kicks in and starts using CPU time and continues to do its... (3 Replies)
Discussion started by: nick1982
3 Replies
7. Solaris
We are using JAVA program and strange thing is it takes 100% CPU when not in use.
The program function is to stream a file on output port (one direction). It checks one directory and when there is a file in it, starts.
While it is streaming the CPU usage is normal, about 20%.
But, if... (9 Replies)
Discussion started by: orange47
9 Replies
8. Shell Programming and Scripting
Hi ,
I am trying to :wall: my head while scripting ..I am really new to this stuff , never did it before :( .
how to find cpu's system high time and user time high in a script??
thanks , help would be appreciated !
:) (9 Replies)
Discussion started by: sushwey
9 Replies
9. AIX
Hi,
i am seeing some strange things on a lpar which we have at this moment.
With nmon i see a process aix_timeout_thread which is using lots of cpu (70-80%, all cpu which is "free" is used). This is a kernel process (for as far i can find out) but i am wondering what is causing this to happen... (5 Replies)
Discussion started by: aixvinnie
5 Replies
10. Linux
Hi All,
Am very new to Linux and unix ...need below help .
need to list of process consuming more than 40% cpu and which are older than 10 days of a particular user ....
Thanks
V (4 Replies)
Discussion started by: venky456
4 Replies
LEARN ABOUT OSF1
pthread_nsg_detach
pthread_nsg_detach(3) Library Functions Manual pthread_nsg_detach(3)
NAME
pthread_nsg_detach - Detaches a thread from a NUMA Scheduling Group (libpthread library)
SYNOPSIS
#include <numa.h>
int pthread_nsg_detach(
pthread_t thread );
PARAMETERS
Identifies the thread to detach from a NUMA Scheduling Group (NSG).
DESCRIPTION
The pthread_nsg_detach() function detaches the thread specified by the thread argument from the NSG to which it is attached. The function
does not reassign the thread to a new NSG.
RETURN VALUES
Success. Failure. In this case, the integer value indicates the type of error. Possible errors include the following:
Based on the NSG's permissions, the caller does not have execute permission, which is required to detach a thread. The specified
thread is hard attached (RAD_INSIST) to a RAD or has memory wired (locked) on its current RAD such that it cannot be migrated to a
common RAD selected for the NSG. The value of the flags argument is invalid. NSG_INSIST and NSG_MIGRATE were specified and no RAD
can be found with sufficient memory to accommodate the resulting NSG. The thread argument specifies a thread that does not exist.
ERRORS
None.
SEE ALSO
Functions: nsg_attach_pid(3), nsg_get(3), numa_intro(3)
Files: numa_types(4)
pthread_nsg_detach(3)