General :: Will Proc / Cpuinfo Gives CPU Info Per Core Or Per Thread?

Jul 18, 2011

My CPU has 2 cores, so I can see two parts in /proc/cpuinfo.But, I want to know if CPUs that support Hyper-Threading (or similar tech), will /proc/cpuinfo give CPU info per core or per thread (or call it sibling)?I only know that Windows Task Manager will give CPU usage statistics per thread if the CPU supports HT.

View 2 Replies


ADVERTISEMENT

General :: Find Which HT-cores Are Sharing A Physical Core From /proc/cpuinfo

Sep 2, 2011

There is a computer with two "Xeon(R) CPU X5550 @ 2.67GHz" CPU. The Hyper-threading is enabled, so it looks like 16-core system, but really there is only 8 physical cores.

I know that when hyperthreading is enabled, each physical core is splitted into two virtual cores. I want to know, which pair of virtual cores shares a physical core and which are not. Or, how (in what order) will Linux enumerate HT-cores comparing to real cores. (enumerating is done for sched_setaffinity and taskset masks).

I have a dump of /proc/cpuinfo file from the system.

I think there are possible:

CPU0-CPU7 are not sharing phys. core. CPU8-CPU15 too. But sharing is in pairs CPU0+CPU8, CPU(i)+CPU(i+8) and so on. or CPU0+CPU1 are from single physical, CPU2+CPU3, CPU(2*i)+CPU(2*i+1). or exotic CPU0+CPU15 sharing, CPU1+CPU14 ... or random?

The hard moment in this case is that there are 2 physical dies of CPU (two sockets), and usual recommendation of using "physical id:" field can't help

The cpuinfo:

processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 26
model name : Intel(R) Xeon(R) CPU X5550 @ 2.67GHz

[Code].....

View 1 Replies View Related

Ubuntu :: Cat /proc/cpuinfo Displaying Wrong Info

Feb 17, 2010

I recently built a new computer. For CPU, I am using AMD Athlon II X2 @ 2.8GHz... However, when I do cat /proc/cpuinfo, I get the following:

processor : 0
vendor_id : AuthenticAMD
cpu family : 16
model : 6
model name : AMD Athlon(tm) II X2 240 Processor
stepping : 2
cpu MHz : 800.000
cache size : 1024 KB

and same thing for processor: 1 Notice that for cpu MHz, it says 800.000. However, that is not correct... Shouldn't it say 2800? Is this a bug? Am I looking at this wrong?

View 2 Replies View Related

General :: Determine Socket From /proc/cpuinfo?

Jan 13, 2010

Is there a simple way to determine the CPU socket from the output of /proc/cpuinfo. Determining the type of processor is simple enough, but the processor I have (Celeron) has two different possible sockets. The output of /proc/cpuinfo is:

processor : 0
vendor_id : GenuineIntel
cpu family : 15

[Code]...

I've looked on the Intel processor finder web site with appropriate filters, but the stepping values do not appear to match anything.

View 1 Replies View Related

General :: Understand Cpu Family/model/stepping Fields In /proc/cpuinfo?

Feb 26, 2011

I have following in cpuinfo:

processor : 0
vendor_id : AuthenticAMD
cpu family : 15

[code]....

View 2 Replies View Related

Fedora :: Kvm Shows (vmx) In /proc/cpuinfo But Can't Load Into Kernel?

May 13, 2011

I have fedora 14 installed and wish to use/learn kvm. I installed via groupinstall the virtualization group. I see vmx in /proc/cpuinfo. but when I start virt-manager I get a message that kvm is not installed or cannot be leaded into the kernel (to make a long message short). I am at a loss here as to what to do. I run cat /proc/modules and see "kvm 257420 0 - Live 0xffffffffa022a000". also after running modprobe kvm I run [root@fed14 ~]# lsmod | grep -i kvmkvm 257420 0 and see kvm there.

View 3 Replies View Related

Programming :: Retrieve A Single String Or Value From /proc/cpuinfo

Oct 1, 2010

I'm trying to retrieve a single string or value from /proc/cpuinfo, but when I try to extract the model (not the model name) the model name comes with it, also it likes to print it twice...

Code:
model="`cat /proc/cpuinfo | grep model | cut -d: -f2 | cut -c1-3`"
echo $model

All i want this to do is spit out the model number once. (I need to pass it to another script)

View 14 Replies View Related

CentOS 5 :: Missing Number Of Cores In According To /proc/cpuinfo?

Jan 6, 2010

Only lately I notice that my CentOS 5.2

(Linux centos52-64-fuj 2.6.18-92.el5 #1 SMP Tue Jun 10 18:51:06 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux)

does not detect a second core according to /proc/cpuinfo

Quote:
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 15

[Code]....

View 10 Replies View Related

CentOS 5 :: # Cat /proc/cpuinfo - Doesn't Show All Cores Of Processor

Nov 21, 2009

I have just bought new PC (Intel mother board "Intel DP43TF ATX" and Processor "Intel Core 2 Quad Q9550"). and I have installed centos 5.3 32 bit.

NOTE: All cores are enabled in BIOS.

When I issue below command, it shows only one core (not 4 cores): what could be reason!

# cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 23

[Code].....

View 1 Replies View Related

Programming :: Multi-core Support - Control On What Core Will A Thread Run

Oct 31, 2010

Is there any Linux API that will let me control on what core will a thread run? If not, do I have to use assembly language?

View 2 Replies View Related

General :: Difference Core And Thread In Processor?

Jun 1, 2011

Can someone explain to me about the "core" and "thread" in the processor.

1. What is core?
2. What is thread?
3. What's the difference between core and thread?

View 8 Replies View Related

General :: Obtain System Info Like The CPU Cache Sizes And Core Speeds From The Shell?

Sep 1, 2010

how do you obtain system info like the CPU cache sizes and core speeds from the shell?

View 2 Replies View Related

Programming :: GDB - Core Dump Analysis And Debug Info?

Oct 21, 2010

I am developing an application whose executable is generated inside a certain folder hierarchy (say: /DevPath/MyProject/bin). My source code is located in a different branch of this hierarchy (say: /DevPath/MyProject/src). When my app crashes, its core files are stored in /DevPath/MyProject. I'm developing the app on a pc, but running it on a separate platform in which i can only execute it. Folder hierarchy is the same as above on both computers. Usually, when a new executable version is ready, we update both the executable and the source code on the target platform, transferring all the new /DevPath/MyProject folder on it. But sometimes it can really be a bother, so we update only the executable.

1)In the case we only update the executable, keeping an old source code version, and the app generates a core file, can i trust the backtrace produced by gdb in this case? I.e., does gdb need the latest source code files or it just needs the debugging information?

2) (More radical question ) Do i really need to keep the source code on the target platform for core dump analysis or i just need the executable?

View 1 Replies View Related

Fedora Installation :: An Error Occurred Mounting Device Proc As /proc: Mount Failed

Jul 6, 2010

I've got the F13 LiveCD that I was able to boot and use using the "nomodeset" boot option. From the desktop I'm trying to perform an Install to Hard Drive. I've read the Install from LiveCD post regarding the creation of a /boot partition and a / root partition. I've tried creating them without the LVM group and with. But every time I appempt to install I get...

An error occurred mounting device proc as /proc: mount failed: (9, None). This is a fatal error and the install cannot continue.

Hardware is a Sager 8887 (P4, 3.06HT, 60GB HDD, Radeon 9000 graphics adapter)

View 7 Replies View Related

Programming :: How To Bind Thread To Specific Thread In Multithread Application?

Dec 25, 2010

I am going to use "pthread_setaffinity_np" to bind a thread to a specific core. My application has two threads. I have used mutex to assign a specific id to each thread and then bind that thread to a core different from another core. but it seems that the os assigns both thread to one core.What should I do to bind each thread to a specific core?

View 4 Replies View Related

General :: Only One Core Of Dual Core Processor Are Working

Mar 14, 2011

I recently read in a forum that by default the Linux kernel only activates one of two cores in a dual core processor. Searching online gave one option to find out and that was the mpstat command. I therefore ran the command and got the following output.As the result says, it shows only 1 cpu. I was wondering what I could do to activate both cores in my machine, and whether doing so was going to cause me any problems.

View 14 Replies View Related

General :: Processes And CPU 4-core - Which Core The Program Used?

Mar 26, 2011

I've a program that launches new processes, and wait for them to die before it exits. So, for example, my program is a process, and it launches 3 more processes, and when the 3 child processes end, it will exit.

As you see, at end of the example, the program used a total number of 4 processes.

1 - Now, I'm running this program in a CPU with 4 cores. This means that the program used each core for each process?

2 - How can I know which core the program used?

View 1 Replies View Related

Ubuntu :: Can't Install Update-info-dir File Is Missing From /var/lib/dpkg/info/?

Aug 6, 2010

so i cannot install anything because update-info-dir file is missing from /var/lib/dpkg/info/ .. I've searched for the last day and a half for a way to fix this, but nothing. can't even update dpkg because of this. so how do I bypass or fix this so I can install stuff (this is a fresh install of ubuntu 10.04 lts Lucid Lynx).

View 9 Replies View Related

General :: Difference Between /proc And /sys?

Jun 10, 2010

the difference between /proc and /sys? Also, When enabling public-key authentication using SSH, what file on the remote machine must be modified and how?

View 1 Replies View Related

CentOS 5 :: CPUINFO Display 2000 Mhz Not 2800 Mhz?

May 5, 2010

today i install centos x86_64 in my server, but /proc/cpuinfo display 2000Mhz . My processor model name : Intel(R) Core(TM)2 Quad CPU Q9550 @ 2.83GHz, before the server had centos i386 and display 2800Mhz.

View 3 Replies View Related

General :: Duplicate Ids In /proc/locks

Mar 30, 2010

Red Hat Enterprise Linux Server release 5.4 (Tikanga) 2.6.18-164.11.1.el5xen (Xen release for virtualisation)

I'm trying to track down a problem with a utility that used to work and now hangs indefinitely. Since its hanging, I suspected a locking problem, and went to have a look for the process ids in /proc/locks; I get:

148: FLOCK ADVISORY WRITE 30279 ca:21:49153 0 EOF
148: -> FLOCK ADVISORY READ 30282 ca:21:49153 0 EOF

Now as near as I can tell this shouldn't be my problem, since the two ADVISORY locks - one READ and one WRITE - shouldn't conflict with one another. But I'd like to understand it all the same. I haven't been able to find any kind of definitive guide for the format of /proc/locks entries, but what I did find in the manuals specifically states:

"Each lock has its own line which starts with a unique number. "

Which is obviously not true; both of my lines start with the same number. Also, since most search engines don't seem to play nicely with symbols, I can't find any reference to what the "->" means.

View 3 Replies View Related

General :: How To CPU Usage Of Process From / Proc?

Jul 15, 2011

I am currently writing a JAVA script to monitor certain unix processes through JConsole. Upon having lots of trouble with runtime.exec, i decided to bypass the top/ps command call and just get the information straight from /proc/*pid*/whatever.Now i can pull back any information from any of the files I want, and the current way i determine the CPU usage of a process is as follows:

Add the UTime and STime of that process from /proc/pid/stat then divide my pidCpu by UTime + STime + NTime from /proc/stat, then multiply that by 100, should give me the % cpu usage a process is using, right?Theory being if I get the jiffies assigned to my process, I can divide that by the total jiffies the cpu assigns. However, my results seem to vary from the ones gathered from top and ps. What am I doing wrong?

View 3 Replies View Related

General :: How To Remove /proc/sys/fs/binfmt_misc

Aug 8, 2010

unknow filesystem in my computer./proc/sys/fs/binfmt_miscPlease help me for remove this filesystem.How i do remove this filesystem?OS : ubuntu 10.04

View 2 Replies View Related

General :: How To Make A Runnable Thread?

Feb 11, 2011

I wrote a code .sh I want to make it a runnable thread.
Q1: How can I do that in Ununtu?

Q2: I put that file (x.sh) in the "Auto start" program.I choose start at "start up" but it open the code editor page.I want it to be run behind backgroun...Have I convert it to .exe firstly ?!

View 17 Replies View Related

General :: Make A Thread With A Poll?

Feb 25, 2010

Is there a way for members to make a thread with a poll? I've looked around and havent found how, but thought it is around here somewhere.

View 2 Replies View Related

Ubuntu :: Run Dual Core - Crash - Single Core Runs Perfect

Apr 1, 2011

i am running gigabyte GA-M68M-S2P and AMD sempron 2.7. the problem is when i try to run dual core. it will boot and run for 2mins then it crashes. single core runs perfect.

View 6 Replies View Related

General :: Alternative To /proc/bus/usb/devices For Use In A Terminal?

Aug 24, 2011

/proc/bus/usb/devices should not be used anymore (and can't be mounted anymore on Ubuntu 11.04) But what is an alternative to it, for use in a terminal? I could easily grep that output to look for a certain device, but I'm lost in all the /sys/ entries...

View 1 Replies View Related

General :: Interpretation Of /proc/pid/sched Output?

Jan 6, 2011

in understanding the output of /proc/pid/shed

se.exec_start : 0.000000
se.vruntime : 26974.800748
se.sum_exec_runtime : 198.280320

[code]...

View 1 Replies View Related

General :: Unable To Open /proc Folder?

Sep 13, 2010

i had some issue with the machine rebooting multiple times, What happens is that the machine boots up and suddenly crashes and then boots up cleanly. I was going through the log files during when this occurs. I came across /var/log/syslog which i guess logs messages before shutdown. It has following messages which i think are causing problem.

Could not open /proc/26694/stat: No such file or directory
Could not read the file /proc/26694/stat
Could not open /proc/31128/stat: No such file or directory
Could not read the file /proc/31128/stat

Does any one know what these messages are?

View 2 Replies View Related

General :: USB And Hard Drive Listed In /proc But Not /dev

May 10, 2010

I'm working in CentOS 5.4 with the default 2.6.18-164 kernel (which I will be editing but have reverted back to in order to solve this problem.)

Near the end of the init script I have thrown a /bin/sh to get into a busybox bash shell in order to test some scripts. Ive attached the init below.

While in this shell I can see my usb drive in /proc/bus/usb/devices and my hard drive in /proc/scsi/device_info however I cannot mount them as they are not in /dev.

I have scsi emulation set in the kernel. When I plug in a USB stick it finds the address but still no sign of it in /dev. There are other modules listed in /sys/module such as usbcore that dont show up in lsmod, is that possibly the problem?

Init Script

Quote:

#!/bin/nash
mount -t proc /proc /proc
setquiet
echo Mounting proc filesystem
echo Mounting sysfs filesystem
mount -t sysfs /sys /sys

[Code].....

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved