Project

General

Profile

Actions

action #5638

closed

worker: don't use lscpu

Added by lnussel almost 10 years ago. Updated 5 months ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
2014-12-22
Due date:
% Done:

0%

Estimated time:

Description

the worker shouldn't call external commands like lscpu. Not sure what we need the cpu model name and op-mode for but the main information, the architecute is already available in $machine, provided by an earlier uname() call.
If this extra information is really needed /proc/cpuinfo can be read.

Also, get_capabilities doesn't need to be called over and over again as cpu and memory usually don't change.

Actions

Also available in: Atom PDF