summaryrefslogtreecommitdiffstats
path: root/sys-utils/lscpu.1
Commit message (Collapse)AuthorAgeFilesLines
* lscpu: (man) add note about cache sizesKarel Zak2019-07-251-0/+5
| | | | | Addresses: https://github.com/karelzak/util-linux/issues/827 Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: wrap default output long lines on terminalKarel Zak2019-04-111-1/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: (man) tiny changesKarel Zak2019-03-191-2/+2
|
* lscpu: (man) make SYNOPSIS compatible with another utilsKarel Zak2019-03-191-4/+1Star
| | | | | | In this case is really no reason to duplicate all options in SYNOPSIS. Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: add --bytesKarel Zak2019-03-191-0/+3
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: add --cachesKarel Zak2019-03-191-0/+11
| | | | | | | | | | | | | | | $ lscpu -C NAME ONE-SIZE ALL-SIZE WAYS TYPE LEVEL L3 8M 8M 16 Unified 3 L2 256K 1M 8 Unified 2 L1i 32K 128K 8 Instruction 1 L1d 32K 128K 8 Data 1 The patch also updates extra caches (s390) output in lsblk summary to be compatible with output about normal caches. Addresses: https://github.com/karelzak/util-linux/issues/663 Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: document --hex output regression (since v2.30)Karel Zak2019-02-201-2/+3
| | | | | Addresses: https://github.com/karelzak/util-linux/issues/744 Signed-off-by: Karel Zak <kzak@redhat.com>
* man pages: Fix misuse of two-fonts-macros (BR, IR)Bjarni Ingi Gislason2018-08-061-1/+0Star
| | | | | | | | | | | Change a two-fonts-macro to the single font one, when there is only one genuine argument. Split a punctuation mark from the only argument to a two-fonts-marco. Remove an isolated two-fonts-macro. Signed-off-by: Bjarni Ingi Gislason <bjarniig@rhi.hi.is>
* lscpu: add --output-all optionSami Kerola2018-05-031-0/+4
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* lscpu: add --jsonKarel Zak2017-03-141-1/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: replace FTP by HTTPS in kernel.org URLsSébastien Helleu2016-12-191-1/+1
| | | | | | | The links to ftp://ftp.kernel.org/ are replaced by https://www.kernel.org/. Signed-off-by: Karel Zak <kzak@redhat.com>
* lspcu: minor manpage improvementHeiko Carstens2016-08-031-2/+2
| | | | | | | | | | Always use the word "can" instead of "may" to be consistent with the descriptions of the other columns. Also print "lspcu" always with bold characters like everywhere else in the man page. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
* lscpu: add --physical optionHeiko Carstens2016-08-031-1/+11
| | | | | | | | | | | | | | | | | | With the --physical option lscpu will use the IDs that are reported by the kernel (e.g. core id for the CORE column) instead of calculating them on it's own. This has the advantage that it is possible to tell on which physical hardware CPUs a Linux instance runs. The logical IDs that lscpu generates on it own are based on comparing of CPU masks and may or may not be identical with the physical IDs. If the kernel was unable to retrieve an ID for a topology element then the corresponding sysfs file will normally contain "-1". In the extended and parsable output a dash "-" will be displayed for such cases. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
* lscpu: fix MMHZ column entry within man pageHeiko Carstens2016-06-241-3/+6
| | | | | | | | | | The indentation for the MMHZ column within the man page is wrong. Also there doesn't exist any column with the name MMHZ. The correct names would be MAXMHZ and MINMHZ. Therefore rename MMHZ to MAXMHZ and add the missong MINMHZ entry. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
* lscpu: add drawer supportHeiko Carstens2016-06-241-1/+4
| | | | | | | | | The s390 architecture gained another cpu topology level called "drawer" which is above the book level. Add support for this to lscpu. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
* lscpu: improve spacing and spelling in the man pageBenno Schulenberg2016-03-171-12/+12
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* lscpu: Print physical cpu informationSukadev Bhattiprolu2015-12-021-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | lscpu currently prints information for CPUs configured in the system. In case of KVM or other virtualized guest operating systems, this refers to the virtual system, and bears no relation to the physical topology of the system. It would be useful if lscpu could also display the physical topology info when available: $ ./lscpu Architecture: ppc64le Byte Order: Little Endian CPU(s): 16 On-line CPU(s) list: 0-15 Thread(s) per core: 1 Core(s) per socket: 1 Socket(s): 16 NUMA node(s): 1 Model: IBM pSeries (emulated by qemu) Hypervisor vendor: KVM Virtualization type: para L1d cache: 64K L1i cache: 32K NUMA node0 CPU(s): 0-15 Physical sockets: 2 <<< New Physical chips: 4 <<< New Physical cores/chip: 4 <<< New For now, physical topology information is available on platforms that support the following RTAS (Real time abstraction service) call provided by librtas: rtas_get_sysparm(PROCESSOR_MODULE_INFO). Currently this call is available to the PowerVM (pHYP) guests on PowerPC. With a patch propoosed to PowerKVM, this RTAS call would also be available to PowerKVM guests. Based on input from Nishanth Aravamudan and Karel Zak. Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
* docs: remove obsolete and unneeded comments from man-page filesBenno Schulenberg2015-01-121-3/+0Star
| | | | | | | Transform some of them into copyright lines. Also fix three header lines and snip some trailing whitespace. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* man: Syntax and spelling fixes.Ville Skyttä2014-01-061-1/+1
| | | | Signed-off-by: Ville Skyttä <ville.skytta@iki.fi>
* lscpu: support non sequentially numbering of CPUsAlexander Troosh2013-11-051-0/+3
| | | | | | | | | | | | | | lscpu don't work correctly on my system with: $ cat /sys/devices/system/cpu/possible 0-1,4-5,8-9,12-13 [kzak@redhat.com: - coding style, - add commit message - add real_cpu_num() macro, - fix functions where we need idx as well as CPU number] Signed-off-by: Karel Zak <kzak@redhat.com>
* docs: standardize the phrases for --help and --version in all man pagesBenno Schulenberg2013-10-151-1/+1
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* docs: add lscpu max mhz to manual and bash completionSami Kerola2013-06-071-0/+5
| | | | Signed-off-by: Sami Kerola <kerolasa@iki.fi>
* doc: remove incorrect spaces from lscpu synopsis in manpageBenno Schulenberg2013-01-301-30/+29Star
| | | | | | Also normalize text spacing and add some formatting. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* lscpu: limit options --all, --online, --offline to parsable and extended outputHeiko Carstens2012-08-131-3/+6
| | | | | | | Passing the --all, --online or --offline options for the output summary doesn't make much sense. It should be limited to the two list output options. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
* lscpu: man page updateHeiko Carstens2011-10-111-39/+97
| | | | | | | Rather large man page update which adds more information. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: add --offline optionHeiko Carstens2011-09-271-3/+6
| | | | | | | | | | | | | | Implement "--offline" option which only prints offline cpus. As a side effect we can get rid of the internal "allcpus" flag, since if we want to print informations for online and offline cpus we simply set both flags. When reading sysfs attributes of cpus this is now done for all cpus, since e.g. the topology informations of the online cpus may influence the topology informations of the offline cpus. This mainly because online cpus may contain masks which include offline cpus while offline cpus have a missing topology directory. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
* lscpu: add --online optionKarel Zak2011-09-091-1/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: add --all optionHeiko Carstens2011-09-091-1/+3
| | | | | | | The parsable output includes only lines of online CPUs. To also include lines for all offline CPUs the "--all" option can be specified. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
* lscpu: add online state to outputHeiko Carstens2011-09-091-1/+1
| | | | | | | | | | | | | | lscpu only prints lines for online CPUs. At least for the human readable list the offline CPUs are of interest as well. In order to distinguish between online and offline CPUs introduce the "Online" column. By default the human readable output now displays online and offline CPUs. The parsable output is not changed. It will print only lines for online CPUs as it used to do. [kzak@redhat.com: - minor changes] Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: add configured state to outputHeiko Carstens2011-09-091-1/+1
| | | | | | | | | CPUs may be in a configured or deconfigured state depending if the CPU resource may be used by the guest. If a CPU is in configured state the guest may use it (i.e. set it online). It it is in deconfigured state it cannot use it before changing its state to configured. Display this CPU attribute as well. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
* lscpu: add human readable extended cpu table outputKarel Zak2011-09-091-8/+21
| | | | | | | | | | | | | | | | | Based on patch from Heiko Carstens <heiko.carstens@de.ibm.com>: lscpu currently only supports a parsable output which contains a row for each cpu and its attributes. This output contains only comas as separators and is hard to read for humans. Therefore add a new option "-e | --extended" which outputs the rows in a much more readable (and non-parsable) form. Just like for the -p option a list of columns can be specified that shall be included in the output. By default this option will print all columns that contain data. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: add --version optionHeiko Carstens2011-09-091-1/+4
| | | | | | | Add a --version option like most other tools have it. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* Merge branch 'chcpu' of ↵Karel Zak2011-08-311-0/+2
|\ | | | | | | | | | | | | | | git://git.kernel.org/pub/scm/linux/kernel/git/heiko/util-linux * 'chcpu' of git://git.kernel.org/pub/scm/linux/kernel/git/heiko/util-linux: chcpu: new tool cpuset: add option to allow cpulist_parse() to fail
| * chcpu: new toolHeiko Carstens2011-08-221-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | chcpu can modify the logical state of CPUs. It can enable and disable CPUs, scan for new CPUs, change the CPU dispatching mode of the underlying hypervisor and request (configure) or give logical CPUs back (deconfigure) to the the underlying hypervisor. This is quite useful if you work a lot with virtual servers, since doing all the configuration stuff directly via sysfs becomes a pain. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
* | Merge branch 'lscpu' of ↵Karel Zak2011-08-301-2/+3
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | git://git.kernel.org/pub/scm/linux/kernel/git/heiko/util-linux * 'lscpu' of git://git.kernel.org/pub/scm/linux/kernel/git/heiko/util-linux: lscpu: add physical cpu address to parseable output lscpu: add cpu polarization to parseable output lscpu: show dispatching mode lscpu: use hypervisor generated topology information lscpu: detect IBM hypervisor lscpu: fix fallback nthreads calculation lscpu: fix cpu map array sizes lscpu: fix s390 bogomips detection coding style
| * | lscpu: add physical cpu address to parseable outputHeiko Carstens2011-08-141-2/+3
| | | | | | | | | | | | | | | | | | | | | Print also the physical cpu address for each logical cpu in parsable output if selected and present via sysfs. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
| * | lscpu: add cpu polarization to parseable outputHeiko Carstens2011-08-141-1/+1
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When running in different dispatching mode the virtual cpus may have different polarizations. E.g. in "vertical" mode cpus may have a polarization of "vertical:high" which means the virtual cpu has dedicated physical cpu assigned. Print this information in the parsable output. Note that this breaks the current rule that a) the parseable output contains only numbers b) these numbers are equal or increased in each line Since however this new item must be selected with the "list" argument this shouldn't be a problem. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
* / docs: uniformize the header and footer lines in man pagesBenno Schulenberg2011-08-221-2/+2
|/ | | | | | | | | | Use dates without the day, use the full month name, put "util-linux" in the lower left corner, and "User Commands" or "System Administration" at the top center. Also improve here and there the one-line program description. Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* lscpu: extend --parse functionalityKarel Zak2011-07-271-1/+14
| | | | | | | | | | | | | | | | | | | | ... to allow define output columns, for example: $ lscpu --parse=CPU,CORE,NODE,CACHE # CPU,Core,Node,L1d:L1i:L2 0,0,0,0:0:0 1,1,0,1:1:0 Note that CPU caches are separated by ":" in the new format. The output for --parse (without the list of the columns) is backwardly compatible, it means: $ lscpu --parse # CPU,Core,Socket,Node,,L1d,L1i,L2 0,0,0,0,,0,0,0 1,1,0,0,,1,1,0 Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: add description of --sysroot option to man page, plus grammar touchesBenno Schulenberg2011-02-081-9/+16
| | | | Signed-off-by: Benno Schulenberg <bensberg@justemail.net>
* rename util-linux-ng back to util-linuxKarel Zak2010-11-301-2/+2
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: update lscpu.1 to include new additions.Davidlohr Bueso2010-09-171-2/+2
| | | | Signed-off-by: Davidlohr Bueso <dave@gnu.org>
* lscpu: add -x and {On,Off}-line CPU(s) mask/listKarel Zak2010-08-111-0/+4
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: fix typo in lscpu.1Francesco Cosoleto2010-06-301-1/+1
| | | | Signed-off-by: Francesco Cosoleto <cosoleto@gmail.com>
* lscpu: use cpuset masks, read data for all CPUsKarel Zak2010-06-011-2/+5
| | | | Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu.1: formattingPeter Breitenlohner2009-08-171-3/+6
| | | | Signed-off-by: Peter Breitenlohner <peb@mppmu.mpg.de>
* lscpu: add Hypervisor detectionKarel Zak2008-10-221-0/+2
| | | | | | | | | | | | | | | This patch adds two new fields: * "Hypervisor vendor" -- based on CPUID and hypervisor specific PCI devices. lscpu(1) supports KVM, XEN, Microsoft HV now. * "Virtualization type" - "none" = Xen dom0 - "full" = full virtualization (KVM, Xen, ...) - "para" = Xen paravirtualization Co-Author: Ky Srinivasan <ksrinivasan@novell.com> Signed-off-by: Karel Zak <kzak@redhat.com>
* lscpu: new commandCai Qian2008-07-181-0/+29
Add a lscpu(1) utility program. [kzak@redhat.com: - indent by linux-2.6/scripts/Lindent - add lscpu.{c,1} to sys-utils/Makefile.am - add NLS suport - complete code refactoring ] Co-Author: Karel Zak <kzak@redhat.com> Signed-off-by: Cai Qian <qcai@redhat.com> Signed-off-by: Karel Zak <kzak@redhat.com>