Results 1 to 4 of 4

Thread: Should I move to an HWE kernel from a General Availability kernel?

  1. #1
    Join Date
    Oct 2009
    Location
    New York City
    Beans
    552
    Distro
    Ubuntu Mate 22.04 Jammy Jellyfish

    Question Should I move to an HWE kernel from a General Availability kernel?

    I'm running Ubuntu 18.04.4, and I appear to have both the "General Availability" kernel (5.4.0-48.52~18.04.1) and the HWE kernel (5.4.0.48.52~18.04.42) installed.

    uname -a tells me that the kernel I am actually using is the general kernel:

    Code:
    Linux mybox 5.4.0-48-generic #52~18.04.1-Ubuntu SMP Thu Sep 10 12:50:22 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
    So, I have three questions about this:

    (1) Should I be using the HWE kernel? I have no new hardware, I'm using the same old desktop workstation that I've had for several years.

    (2) If it is in some way better for me to use the HWE kernel, how do I change over from the general kernel?

    (3) If there is no reason to use the HWE kernel, is there some reason I should not delete it? My thinking is that if it's sitting around unused, then I should remove it.

    Thanks for any tips.

    Here is what displays when I run dpkg -l linux-image-\* && dpkg -l linux-headers-\*

    Code:
    Desired=Unknown/Install/Remove/Purge/Hold
    | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
    |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
    ||/ Name                                          Version                     Architecture                Description
    +++-=============================================-===========================-===========================-===============================================================================================
    un  linux-image-5.3.0-51-generic                  <none>                      <none>                      (no description available)
    un  linux-image-5.3.0-53-generic                  <none>                      <none>                      (no description available)
    un  linux-image-5.3.0-62-generic                  <none>                      <none>                      (no description available)
    un  linux-image-5.4.0-45-generic                  <none>                      <none>                      (no description available)
    un  linux-image-5.4.0-47-generic                  <none>                      <none>                      (no description available)
    ii  linux-image-5.4.0-48-generic                  5.4.0-48.52~18.04.1         amd64                       Signed kernel image generic
    ii  linux-image-generic-hwe-18.04                 5.4.0.48.52~18.04.42        amd64                       Generic Linux kernel image
    un  linux-image-unsigned-5.3.0-51-generic         <none>                      <none>                      (no description available)
    un  linux-image-unsigned-5.3.0-53-generic         <none>                      <none>                      (no description available)
    un  linux-image-unsigned-5.3.0-62-generic         <none>                      <none>                      (no description available)
    un  linux-image-unsigned-5.4.0-45-generic         <none>                      <none>                      (no description available)
    un  linux-image-unsigned-5.4.0-47-generic         <none>                      <none>                      (no description available)
    un  linux-image-unsigned-5.4.0-48-generic         <none>                      <none>                      (no description available)
    Desired=Unknown/Install/Remove/Purge/Hold
    | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
    |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
    ||/ Name                                          Version                     Architecture                Description
    +++-=============================================-===========================-===========================-===============================================================================================
    un  linux-headers-3.0                             <none>                      <none>                      (no description available)
    ii  linux-headers-5.4.0-48-generic                5.4.0-48.52~18.04.1         amd64                       Linux kernel headers for version 5.4.0 on 64 bit x86 SMP
    un  linux-headers-686-pae                         <none>                      <none>                      (no description available)
    un  linux-headers-amd64                           <none>                      <none>                      (no description available)
    un  linux-headers-generic                         <none>                      <none>                      (no description available)
    ii  linux-headers-generic-hwe-18.04               5.4.0.48.52~18.04.42        amd64                       Generic Linux kernel headers
    CPU: AMD Ryzen 7 3800XT Mobo: Asus ROG Crosshair VIII Hero wifi
    Drives: 2 1TB Sabrent Rocket 4+ NVMEs; 1 SanDisk Ultra II 960GB SSD
    Graphics: NVIDIA Gigabyte GeForce RTX 3060
    RAM: 4x 32-GB G.SKILL. I use Vim not gedit; Zsh not Bash

  2. #2
    Join Date
    Jan 2006
    Location
    Sunny Southend-on-Sea
    Beans
    8,430
    Distro
    Kubuntu 20.04 Focal Fossa

    Re: Should I move to an HWE kernel from a General Availability kernel?

    The non-HWE kernel, from when 18.04 was released, is 4.15. The HWE kernel is 5.4; new installs from 18.04.2 onwards were put on the HWE kernel by default.

    The default, when a new kernel package is installed, is to keep the old one in case the new one goes all pear-shaped, so that you can still boot your computer to fix things. After you've built up a few old versions, the oldest get marked for autoremoval.

    So, yes, you should probably stick with the HWE kernel, and no, you don't need to do anything.

  3. #3
    Join Date
    Oct 2009
    Location
    New York City
    Beans
    552
    Distro
    Ubuntu Mate 22.04 Jammy Jellyfish

    Re: Should I move to an HWE kernel from a General Availability kernel?

    Quote Originally Posted by CatKiller View Post
    The non-HWE kernel, from when 18.04 was released, is 4.15. The HWE kernel is 5.4; new installs from 18.04.2 onwards were put on the HWE kernel by default.
    If that's the case, shouldn't uname -a be telling me that I'm using 5.4.0.48.52~18.04.42 instead of 5.4.0-48.52~18.04.1 ??
    (See my previous post where the installed kernel images and headers are listed.)


    The default, when a new kernel package is installed, is to keep the old one in case the new one goes all pear-shaped, so that you can still boot your computer to fix things. After you've built up a few old versions, the oldest get marked for autoremoval.
    I used to keep several old kernels installed (because I didn't know that I was doing that) until I learned to delete them. Generally I have the current (which right now is 5.4.0-48) and the most recent (5.4.0.7-47), and remove anything older than that. (At the moment, it just so happens that I have only the current kernel installed. I've never had to roll back to a previous kernel.)

    So, yes, you should probably stick with the HWE kernel, and no, you don't need to do anything.
    So I am using the HWE kernel after all? I didn't realize it was being used, I just thought it was installed but not active (given what uname -a returns, which I thought meant that I'm using the non-HWE kernel).
    CPU: AMD Ryzen 7 3800XT Mobo: Asus ROG Crosshair VIII Hero wifi
    Drives: 2 1TB Sabrent Rocket 4+ NVMEs; 1 SanDisk Ultra II 960GB SSD
    Graphics: NVIDIA Gigabyte GeForce RTX 3060
    RAM: 4x 32-GB G.SKILL. I use Vim not gedit; Zsh not Bash

  4. #4
    Join Date
    Apr 2011
    Location
    Mystletainn Kick!
    Beans
    13,614
    Distro
    Ubuntu

    Re: Should I move to an HWE kernel from a General Availability kernel?

    If that's the case, shouldn't uname -a be telling me that I'm using 5.4.0.48.52~18.04.42 instead of 5.4.0-48.52~18.04.1 ??
    5.4.0.48.52~18.04.42 is the version of the linux-image-generic-hwe-18.04 package. Not the actual kernel package.
    linux-image-generic-hwe-18.04 is like a meta package, all new kernels are linked to that so when a new kernel comes through you can actually get the updated kernel.
    apt show linux-image-generic-hwe-18.04 shows this as the package description:
    Description-en: Generic Linux kernel image
    This package will always depend on the latest generic kernel image
    available.
    Looking at the package dependencies you'll see
    Code:
    Depends: linux-image-5.4.0-48-generic, linux-modules-extra-5.4.0-48-generic, linux-firmware, intel-microcode, amd64-microcode
    and the next kernel update the dependency will change to another version like linux-image-5.4.0-49-generic,
    and so on and so on.
    Splat Double Splat Triple Splat
    Earn Your Keep
    Don't mind me, I'm only passing through.
    Once in a blue moon, I'm actually helpful
    .

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •