AbhijitG
AbhijitG

Reputation: 310

CPU info in kernel module

I want to know the cpu info inside the kernel module like number of cpus,cores,etc. Are there ways to find it? Besides than opening file in kernel module like /proc/cpuinfo.

Upvotes: 1

Views: 1778

Answers (3)

golimar
golimar

Reputation: 2548

Try the lscpu command or the lshw program.

Upvotes: 1

kkeller
kkeller

Reputation: 3247

Depending on your kernel version, you may find information under /sys/devices/system/cpu/ as well.

Upvotes: 0

Rsh
Rsh

Reputation: 7752

Check files in /proc. You can find some interesting stuff in there about you CPU and processes currently running on you system.

Upvotes: 0

Related Questions