emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Script for compiling more quietly


From: Lars Ingebrigtsen
Subject: Re: Script for compiling more quietly
Date: Mon, 14 Dec 2020 16:08:58 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Lars Ingebrigtsen <larsi@gnus.org> writes:

> Absurdly enough, nproc doesn't have an option for "just say how many
> cores there are, OK?"  But I guess one could parse /proc/cpuinfo to try
> to figure that out.

But this is now easier than it was in The Olden Days, when you had to
look at sibling IDs and the like.  The following will tell you the
number of cores:

grep "^cpu cores" /proc/cpuinfo | tail -n 1 |  awk '{print $4}' 
8

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no



reply via email to

[Prev in Thread] Current Thread [Next in Thread]