This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Switch from Single- to Multicore Kernel

Hi,

I was wondering if i could switch from a singlecore kernel to a multicore kernel by enabling all vcores of my astaro hyper-v machine and then upgrading to a new astaro version like 8.300.

Way back, i installed astaro only with one vcore enabled in the vm settings and so astaro installed the single core kernel, but now i need a bit more power and dont want to install the whole astaro again - i know only install and then load the backupkonfig back in and done - but well...

so could this kernel switch be done with the method mentioned above?

Or with other words, is the kernel updated by flashing a new firmware?

Thanks, Albeck.


This thread was automatically locked due to age.
  • any astaro v8 or newer will automatically see the additional cores and will add any additional threads/cores it sees at bootup.  so shutdown your astaro.  Add the new vcpus..bring the astaro back online and it will have the additional cpus without any additional things needed.

    Owner:  Emmanuel Technology Consulting

    http://etc-md.com

    Former Sophos SG(Astaro) advocate/researcher/Silver Partner

    PfSense w/Suricata, ntopng, 

    Other addons to follow

  • Well I don't think so. I did a separate installation of a new astaro vm with all vcores enabled at he beginning and there was a different kernel shown as in the old vm with all vcores enabled after reboot but installed with only one vcore....

    So for me its up to the kernel and not the threats.
  • i was talking about the kernel.  Unless there is something wrong with your setup the kernel will automatically add the appropriate cores/threads it needs to when presented with more vcpus.  I've done it from multi-to single and single to multi multiple times.  It simply works.

    Owner:  Emmanuel Technology Consulting

    http://etc-md.com

    Former Sophos SG(Astaro) advocate/researcher/Silver Partner

    PfSense w/Suricata, ntopng, 

    Other addons to follow

  • You probably only have the uni processor kernel installed. You can check this with:
    rpm -q -a|grep kernel

    kernel-default is uni processor, while kernel-smp is the multiprocessor kernel.
    Latter one will automatically detect the right amount of CPUs (up to 32 cores).

    You could remove the kernel rpm and install the smp one. But probably the best is
    just to create a backup file and do a reinstallation.

    Cheers
     Ulrich
  • And this is exactly the point what I'm asking for. Does a firmware update affect the kernel and if so, is it possible to switch from the uni kernel to the smp kernel with a firmware update?

    And with what linux shell comand do i identify the kernel version? what will be the output of the uni kernel and what of the smp kernel?
    (I don't know that much about linux....not so into it...)

    Thanks, Albeck.
  • You probably only have the uni processor kernel installed. You can check this with:
    rpm -q -a|grep kernel

    kernel-default is uni processor, while kernel-smp is the multiprocessor kernel.
    Latter one will automatically detect the right amount of CPUs (up to 32 cores).

    You could remove the kernel rpm and install the smp one. But probably the best is
    just to create a backup file and do a reinstallation.

    Cheers
     Ulrich


    Later Astaro versions don't have this issue.  I've tested it multiple times.  Now if this box started with v7 and was upgraded then yes i guess this could be an issue.  However i have to agree with ulrich...make a backup after upgrading to 8.3 and reinstall with multiple vcpus already being presented to the vm.

    Owner:  Emmanuel Technology Consulting

    http://etc-md.com

    Former Sophos SG(Astaro) advocate/researcher/Silver Partner

    PfSense w/Suricata, ntopng, 

    Other addons to follow

  • Ok,

    so i did this command "uname -r" in the Astaro shell and the output was:

    "2.6.32.48-3.g686f74c-default64"

    Is this the smp kernel or the uni kernel?
    Thanks, Albeck.
  • one of my machines have the following: 2.6.32.48-3.g686f74c-default.  This is one single core 32 bit box.  The rest of my machines have:
    2.6.32.42-15.g07a53b3-smp64
    my acc started life as a single core box.  However i think the issue is you were running a 32bit kernel.  Since it doesn't say smp that is a single core kernel.  The smp kernel will do single or multi..that's odd.  I've not seen that in forever mainly because most machine now are multi-core/multi-thread enabled which triggers the smp install by default.  since you are seemingly stuck on single core/thread kernel i would reinstall(after making a backup) with multiple vcpu's already assigned to the vm.

    Owner:  Emmanuel Technology Consulting

    http://etc-md.com

    Former Sophos SG(Astaro) advocate/researcher/Silver Partner

    PfSense w/Suricata, ntopng, 

    Other addons to follow

  • Well, I'm on smp now XD
    Reinstall done, quite a performance boost [:D]

    Thanks for the help, Albeck.