nid missing from stacktrace and tid is decimal


 
Thread Tools Search this Thread
Operating Systems Linux nid missing from stacktrace and tid is decimal
# 1  
Old 01-26-2012
nid missing from stacktrace and tid is decimal

To identify which java thread was hogging the cpu on linux I used to have to convert the lightweight thread id from a ps command (ps -eLo pid,ppid,tid,pcpu,comm | grep <PID>) to a hex value, take a thread dump and find the nid with the same hex value. I tried that recently on Enterprise Linux Enterprise Linux Server release 5.2 and SUSE Linux Enterprise Server 10 (x86_64) and the tid from the ps output and the tid in the thread dump were the same decimal value and the nid value was missing. Can anyone tell me when this changed e.g. kernel version?
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Sum the fields with 6 decimal places - getting only 2 decimal places as output

I used the below script to Sum up a field in a file based on some unique values. But the problem is when it is summing up the units, it is truncating to 2 decimals and not 6 decimals as in the input file (Input file has the units with up to 6 Decimals – Sample data below, when the units in the 2... (4 Replies)
Discussion started by: brlsubbu
4 Replies

2. Programming

Urgent help needed.. C++ program to convert decimal to hexa decimal

Hi , seq can be 0...128 int windex = seq / 8; int bindex = seq % 8; unsigned char bitvalue = '\x01' << (7-bindex) ; bpv.bitmapvalue = bitvalue; This is the part of a program to convert decimal to bitmap value of hexadecimal. I want this to change to convert only to... (1 Reply)
Discussion started by: greenworld123
1 Replies

3. UNIX for Dummies Questions & Answers

Convert hexa decimal to decimal

Hi, I want to convert two hexadecimal numbers to decimal using unix command line. 1cce446295197a9d6352f9f223a9b698 fc8f99ac06e88c4faf669cf366f60d I tried using `echo "ibase=16; $no |bc` printf '%x\n' "1cce446295197a9d6352f9f223a9b698" but it doesn't work for such big number it... (4 Replies)
Discussion started by: sudhakar T
4 Replies

4. Red Hat

Yum - resolving missing dependencies that are not missing

I am trying to install VirtualBox on RHEL 5 but I need the 32 bit version for 32 bit Windows. When I run yum I get the following: sudo yum localinstall /auto/spvtg-it/spvss-migration/Software/VirtualBox-4.3-4.3.2_90405_el6-1.i686.rpm Loaded plugins: fastestmirror Setting up Local Package... (13 Replies)
Discussion started by: gw1500se
13 Replies

5. SuSE

How to resolve missing missing dependencies with opensuse 11.3 and 12.3?

Hello, This is a programming question as well as a suse question, so let me know if you think I should post this in programming. I have an application that I compiled under opensuse 12.2 using g77-3.3/g++3.3. The program compiles and runs just fine. I gave the application to a colleague who... (2 Replies)
Discussion started by: LMHmedchem
2 Replies

6. Homework & Coursework Questions

Decimal to BCD (Binary Coded Decimal)

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: Design an algorithm that accepts an input a decimal number and converts it into BCD (Binary... (2 Replies)
Discussion started by: caramba
2 Replies

7. UNIX for Dummies Questions & Answers

Decimal to BCD (Binary Coded Decimal)

Anybody please help me... Design an algorithm that accepts an input a decimal number and converts it into BCD (Binary Coded Decimal) representation. Also, draw its Flow Chart. This is a unix qn... plz post algorithm for that :confused: (1 Reply)
Discussion started by: caramba
1 Replies

8. UNIX for Dummies Questions & Answers

UNIX command to get inode's tid and pid

Hi everyone, I am new here in www.unix.com, i found this site because I am looking for an answer to this problem of mine. I need to know a UNIX command to display an inode's thread id and process id. Hope someone can help me on this. Thanks :D (8 Replies)
Discussion started by: rodkun
8 Replies
Login or Register to Ask a Question
CPUSET(1)						    BSD General Commands Manual 						 CPUSET(1)

NAME
cpuset -- configure processor sets SYNOPSIS
cpuset [-l cpu-list] [-s setid] cmd ... cpuset [-l cpu-list] [-s setid] -p pid cpuset [-c] [-l cpu-list] -C -p pid cpuset [-c] [-l cpu-list] [-j jailid | -p pid | -t tid | -s setid | -x irq] cpuset -g [-cir] [-d domain | j jailid | -p pid | -t tid | -s setid | -x irq] DESCRIPTION
The cpuset command can be used to assign processor sets to processes, run commands constrained to a given set or list of processors, and query information about processor binding, sets, and available processors in the system. cpuset requires a target to modify or query. The target may be specified as a command, process id, thread id, a cpuset id, an irq, a jail id, or a NUMA domain. Using -g the target's set id or mask may be queried. Using -l or -s the target's CPU mask or set id may be set. If no target is specified, cpuset operates on itself. Not all combinations of operations and targets are supported. For example, you may not set the id of an existing set or query and launch a command at the same time. There are two sets applicable to each process and one private mask per thread. Every process in the system belongs to a cpuset. By default processes are started in set 1. The mask or id may be queried using -c. Each thread also has a private mask of CPUs it is allowed to run on that must be a subset of the assigned set. And finally, there is a root set, numbered 0, that is immutable. This last set is the list of all possible CPUs in the system and is queried using -r. When running a command it may join a set specified with -s otherwise a new set is created. In addition, a mask for the command may be speci- fied using -l. When used in conjunction with -c the mask modifies the supplied or created set rather than the private mask for the thread. The options are as follows: -C Create a new cpuset and assign the target process to that set. -c The requested operation should reference the cpuset available via the target specifier. -d domain Specifies a NUMA domain id as the target of the operation. -g Causes cpuset to print either a list of valid CPUs or, using -i, the id of the target. -i When used with the -g option print the id rather than the valid mask of the target. -j jailid Specifies a jail id as the target of the operation. -l cpu-list Specifies a list of CPUs to apply to a target. Specification may include numbers separated by '-' for ranges and commas sepa- rating individual numbers. A special list of ``all'' may be specified in which case the list includes all CPUs from the root set. -p pid Specifies a pid as the target of the operation. -s setid Specifies a set id as the target of the operation. -r The requested operation should reference the root set available via the target specifier. -t tid Specifies a thread id as the target of the operation. -x irq Specifies an irq as the target of the operation. EXIT STATUS
The cpuset utility exits 0 on success, and >0 if an error occurs. EXAMPLES
Create a new group with CPUs 0-4 inclusive and run /bin/sh on it: cpuset -c -l 0-4 /bin/sh Query the mask of CPUs the <sh pid> is allowed to run on: cpuset -g -p <sh pid> Restrict /bin/sh to run on CPUs 0 and 2 while its group is still allowed to run on CPUs 0-4: cpuset -l 0,2 -p <sh pid> Modify the cpuset /bin/sh belongs to restricting it to CPUs 0 and 2: cpuset -l 0,2 -c -p <sh pid> Modify the cpuset all threads are in by default to contain only the first 4 CPUs, leaving the rest idle: cpuset -l 0-3 -s 1 Print the id of the cpuset /bin/sh is in: cpuset -g -i -p <sh pid> Move the pid into the specified cpuset setid so it may be managed with other pids in that set: cpuset -s <setid> -p <pid> Create a new cpuset that is restricted to CPUs 0 and 2 and move pid into the new set: cpuset -C -c -l 0,2 -p <pid> SEE ALSO
cpuset(2) HISTORY
The cpuset command first appeared in FreeBSD 7.1. AUTHORS
Jeffrey Roberson <jeff@FreeBSD.org> BSD
January 8, 2015 BSD