ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
EDIT: That path doesn't exist on my system or in the proc manual.
Yeah..
but man proc doesn't quite clearly explain the meaning of these entries,
i want to know what is cpu0/1/2 and the nos in front of them...
PS : u'll not find this path in ur sytem..as pid has to be some no of the process running ...u can see this like ..when u run something like ..pid = 897 ..then there'll be an entry in /proc/897/..
PS : u'll not find this path in ur sytem..as pid has to be some no of the process running ...u can see this like ..when u run something like ..pid = 897 ..then there'll be an entry in /proc/897/..
There are always some processes running (check 'top' or 'ps'), so it can't be that.
I guess cpu0 and cpu1 could refer to two processing units, do you have a dualcore cpu or something? I could be wrong, though.. The whole /proc filesystem is a peek hole into the kernel, so if it's not present on somebody's system, it could be that functionality is disabled in that kernel then, and enabled in yours. Guesses, but still.
There are always some processes running (check 'top' or 'ps'), so it can't be that.
I guess cpu0 and cpu1 could refer to two processing units, do you have a dualcore cpu or something? I could be wrong, though.. The whole /proc filesystem is a peek hole into the kernel, so if it's not present on somebody's system, it could be that functionality is disabled in that kernel then, and enabled in yours. Guesses, but still.
PS : u'll not find this path in ur sytem..as pid has to be some no of the process running ...u can see this like ..when u run something like ..pid = 897 ..then there'll be an entry in /proc/897/..
Yes, I took that into account. I don't have a cpu entry in any process folder, and in fact don't have any entry named cpu anywhere in /proc.
ta0kira
Yes, I took that into account. I don't have a cpu entry in any process folder, and in fact don't have any entry named cpu anywhere in /proc.
ta0kira
boss..when a process with pid=897 runs, then during the run, you'll see /proc/897/cpu..if you do "cat /proc/897/cpu" -- then you'll see the nos as i mentioned above...only during the process is running..
Yes, I'm aware of the fact that all processes have their directories in /proc, but even if I do ls /proc/self/cpu, ls /proc/*/cpu, or find /proc -name cpu I get nothing. There are literally no entries in my entire /proc tree which are labeled "cpu".
ta0kira
I was asking sun_sun. I can see yours. Probably sun_sun's distro has made some more options to proc filesystem. I don't have cpu entry either.
EDIT: Now I've read Osor's post.
ok ok ...
you can skip the word ASAP...but then i needed it at the earliest..i thought to post it..by the time..i was trying to figure that out on my own..
nyways..
thanks
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.