From c825c1203291b519c812595c2b51f38105a52d63 Mon Sep 17 00:00:00 2001 From: Matej Dujava Date: Tue, 5 May 2020 04:08:22 +0200 Subject: [PATCH] add nproc txt command, unify procesor info in lscpu and /proc/cpuinfo (#1343) Signed-off-by: Matej Dujava Co-authored-by: Matej Dujava --- share/cowrie/txtcmds/usr/bin/lscpu | 16 ++++++++-------- share/cowrie/txtcmds/usr/bin/nproc | 1 + 2 files changed, 9 insertions(+), 8 deletions(-) create mode 100644 share/cowrie/txtcmds/usr/bin/nproc diff --git a/share/cowrie/txtcmds/usr/bin/lscpu b/share/cowrie/txtcmds/usr/bin/lscpu index 4d5239cb..cab7e52c 100644 --- a/share/cowrie/txtcmds/usr/bin/lscpu +++ b/share/cowrie/txtcmds/usr/bin/lscpu @@ -1,21 +1,21 @@ Architecture: x86_64 CPU op-mode(s): 32-bit, 64-bit Byte Order: Little Endian -CPU(s): 1 -On-line CPU(s) list: 0 +CPU(s): 2 +On-line CPU(s) list: 0-1 Thread(s) per core: 1 -Core(s) per socket: 1 +Core(s) per socket: 2 Socket(s): 1 NUMA node(s): 1 Vendor ID: GenuineIntel CPU family: 6 -Model: 44 -Stepping: 1 +Model: 23 +Stepping: 6 CPU MHz: 2200.000 -BogoMIPS: 4400.00 +BogoMIPS: 4270.03 Hypervisor vendor: KVM Virtualization type: full L1d cache: 32K L1i cache: 32K -L2 cache: 4096K -NUMA node0 CPU(s): 0 +L2 cache: 6144K +NUMA node0 CPU(s): 0-1 diff --git a/share/cowrie/txtcmds/usr/bin/nproc b/share/cowrie/txtcmds/usr/bin/nproc new file mode 100644 index 00000000..0cfbf088 --- /dev/null +++ b/share/cowrie/txtcmds/usr/bin/nproc @@ -0,0 +1 @@ +2