1

A very simple question as the title says.

I know the difference between kernel and OS, but when I do cat /proc/loadavg on my cluster, it shows me this 0.29 0.20 0.13 1/3006 48449. Then I did some research link1 and link2 which explain me what those five numbers mean.

Then I was trying to find how many kernels that I have on my single server and on my Mac OS X.

I tried to read my About this Mac -> System Report, but I'm not able to find # of kernels.

Any help please? On both OS X and Linux and Ubuntu.

Does one OS usually just have one kernel, so it's by default that every one knows, so no explicit info is needed to be put anywhere?

Thanks!

Fisher Coder
  • 3,278
  • 12
  • 49
  • 84
  • 1
    The question is not simple, because _number of kernels_ is not well defined term. I.e. you can install multiple kernel files (`vmlinuz`), but you can load only one at a time (unless virtualization or User-mode Linux is involved). – myaut Sep 25 '17 at 20:14
  • Did you mean `cpu cores` instead `kernels`? – MrCryo Sep 26 '17 at 17:34
  • No, I mean kernels, CPU cores are clearly defined. – Fisher Coder Sep 26 '17 at 18:58
  • 1
    myaut answered you, the only kernel can be loaded and run at once. If you want know how many kernels are installed on your Linux system, you could look at /boot to count initrd images and even look at /boot/grub[2]/grub.cfg (or at /boot/grub/menu.lst on older Linux systems) to count kernel entries and know what number of kernels you can choose on boot. If you want to know what number of kernel you can install officially to your Ubuntu, try apt-get search linux-image-*-generic. Ubuntu includes kernel version to its package name so you can count available kernels with this command. – MrCryo Sep 27 '17 at 07:17
  • Thank you guys, now I understood it. Please feel free to compose an answer and post it below, I'll accept it. Thanks! – Fisher Coder Sep 27 '17 at 16:48

0 Answers0