Find out the number of CPU cores on Linux
How to find out the number of CPU cores on a Linux host.
Use the command nproc
.
$ nproc
nproc – print the number of processing units available: man page of nproc.
How to find out the number of CPU cores on a Linux host.
Use the command nproc
.
$ nproc
nproc – print the number of processing units available: man page of nproc.
How to quite VirtualBox scale mode? Use this hot key shortcut to quit VirtualBox scale mode Right_Ctrl + c Read more: How to change the mode for simplified Chinese or Traditional Chinese mode in ibus-libpinyin? Large-scale Data Storage and Processing System in Datacenters Software Engineering Advice from Building Large-Scale Distributed Systems by Jeff Dean VirtualBox…
This post summarizes Linux Kernel new features, bugfixes and changes in Linux 4.14.223 Release. Linux 4.14.223 Release contains 176 changes, patches or new features. In total, there are 277,921 lines of Linux source code changed/added in Linux 4.14.223 release compared to Linux 4.14 release. To view the source code of Linux 4.14.223 kernel release online,…
I’d like to force using of https on one of my site. How to redirect HTTP to HTTPS in Apache with mod_rewrite? You can put these lines to the .htaccess file in the directory from which you would like to redirect HTTPS to HTTP: RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} Read more: How…
How to install Fedora 20 on a mbr/ms-dos disk? The nogpt and noefi trick seems do not work. This is a bug in F20 installer that still believes it is in UEFI native mode even if the noefi parameter is passed. Solution: There is an updates image for the installer which fixes this issue available…
An introduction to the general method of installing Domain-U on Xen is introduced here: Setting Up Stable Xen DomU with Fedora: Unmodified Fedora 12 on top of Xenified Fedora 12 Dom0 with Xen (this is a general introduction, some details are changed, such as ‘xl’ replacing ‘xm’, LVM backing the disk for higher performance. But…
A script for backing up file-backed Xen DomU is introduced in this post. This script can be changed to similar platform. In our cluster, virtual machines are stored under /lhome/xen/. Virtual machine with id vmid is stored in directory vmvmid. The raw image disk file name can also be derived from vmid. Some more details…