The logical socket number. A socket can contain several cores. To see the total amount of physical RAM installed, you can run sudo lshw -c memory which will show you each individual bank of RAM you have installed, as well as the total size for the System Memory. This will likely presented as GiB value, which you can again multiply by to get the MiB value. Well depends on what games your trying to play. For minesweeper yeah sure 2 cores is enough.
But if talking about high end games like Battlefield or even games like Minecraft or Fortnite. Generally speaking, six cores is usually considered optimal for gaming in Four cores can still cut it but would hardly be a future-proof solution.
Eight or more cores might provide performance improvement, but all this depends mainly on how a particular game is coded and what GPU the CPU would be paired with it. Show 3 more comments. For the answer not to be confusing, you need to understand a couple of simple computer architecture concepts: You run processes "programs" on your linux system.
Each process consists of one or more threads Each thread is a separate sequence of instructions. Two threads can be executed in parallel. Each instruction is given to a CPU to be executed. A CPU has logic that figures out what the bits of an instruction mean and decides what to do with it.
You can have multiple CPUs that share one core - this is called hyperthreading. The idea: thread A is currently doing arithmetic, while thread B is loading something from memory. When that's true, threads A and B can efficiently share a single core without getting in each other's way A uses the ALU, B uses the memory unit. Of course, sometimes both programs will want the ALU, and then they have to wait for each other Not wrong just confusing I want to say.
I believe what I say here is consistent with the output of the lscpu command which the OP referenced. I have now 4 CPUs. I have one "quadcore processor", the vendor tells me on the box. Confusing, because I can easily say I have "a CPU that can run 8 threads" at a time yes, with hyperthreading, so it is more 5 or 6 threads' equivalent.
Before, you had 8 CPUs: eight pieces of hardware that could accept instructions to be run but with only 4 full sets of execution hardware. You are certainly correct that it is a little confusing. Thanks this command describing the information in detail. Similar to unix. That's slightly different and useful for some needs. It's the number of processors that are online now i. It may be less than the total number of CPUs if one or more have been taken offline e. You can get the value of both these macros inside of a C source code too, by using the sysconf function.
Type in man sysconf for more information. HalosGhost 4, 10 10 gold badges 30 30 silver badges 40 40 bronze badges. This is simple, but I'm not sure it's accurate to the question. He asked for the number of cores: cores! My system has 24 cores: 48 cpus when hyper-threaded. What's the t 4 do for dmidecode?
Does your example show 2 cores, or 6, or 12, or 24, or some other number? Xen 4 is processor , see linux. But using 4 as argument is a bad practice.
Serge Roussak Serge Roussak 2 2 silver badges 9 9 bronze badges. Install and run neofetch in the CLI. WM: Mutter Muffin :o. Jeremy Boden Jeremy Boden 1, 7 7 silver badges 17 17 bronze badges. CPU family is irrelevant here. What also can be important, is "Thread s per core". But you have 1, so not in your case. Tomasz Klim Tomasz Klim 7 7 silver badges 9 9 bronze badges.
You are confusing CPU s with Socket s in your description. As jlliagre says this is incorrect. Sousa Gaspar Sousa Gaspar 1 1 1 bronze badge. And far and away the best hidden nugget from the older article was a tool that I use very often here during my day helping support customers: xsos. You can get xsos here:. Yum repo available for xsos -- a tool for sysadmins.
How to determine number of CPU sockets on a system. Difference between physical cpus, cpu cores, and logical cpus. So what do you think? Is this useful stuff? Will this save you any time or even help you start off your own CMDB? We'd love to hear from you! Update the version of xsos you have on that lab system. It's insaaaaaaaanely out of date.
See: Yum repo available for xsos -- a tool for sysadmins. Amusingly, I was having to do this just the other day. Had a dual quad-core server that was showing up as 16 CPUs because of hyperthreading.
Speaking of which: when using performance tools that show CPU data and those tools aren't terribly MP-aware, what's the best way to normalize your data? I mean, a 16vCPU system that's actually only a dual quad-core system isn't technically going to yield 16 CPU's worth of output - at least not under all workloads.
Assuming I understand you, the answer is going to depend on the tool you're using, right? Specific ad hoc use-case was trying to get finer-grained CPU and memory utilization patterns than what sar provides by using the various ps tools. Thanks for this article and all the comments. All your options are explained in the solution Difference between physical cpus, cpu cores, and logical cpus.
Only populated and enabled processors in their system sockets are counted as part of requirements and compliance for subscriptions. So for example, if you have a four socket system, but only have two processors installed, configured, and enabled, you only need a subscription for two sockets. It would be nice now to tie this to how the entitlements work on systems. For example, when you need a up to 4 sockets as opposed to 1 socket for RHEL subscriptions.
You might want to check the output of 'subscription-manager facts --list' to see how subscription manager sees it. Anyone have thoughts on the best way to verify the number of "enabled" cores on a blade system?
I ran into a discrepancy between output from lscpu and dmidecode that has me questioning what is actually enabled. From lscpu I see:. Curious what thoughts any of you may have on this. Apologies if this isn't the right place to ask this. I can remove if needed.
I am confident in the number of populated sockets. But, wondering the most accurate way to determine how many cores are enabled by querying the OS. These are HP blades and we have run into situations where all the present cores weren't enabled at the chassis management level. Did you check with "lscpu" command? I could see a lot of options which can show if a particular core is online or not by using lscpu command if this on rhel 6x on-wards..
0コメント