[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Oracle Java 16.0.1 CPU usage 100% after kernel update to 4.19.0-17-amd64



On Wed 07 Jul 2021 at 20:11:20 (-0400), Polyna-Maude Racicot-Summerside wrote:
> On 2021-07-07 5:55 p.m., Andrei POPESCU wrote:
> > On Mi, 07 iul 21, 16:05:13, Polyna-Maude Racicot-Summerside wrote:
> >> On 2021-07-07 2:47 p.m., Andrei POPESCU wrote:
> >>> On Mi, 07 iul 21, 09:35:17, Polyna-Maude Racicot-Summerside wrote:
> >>>>
> >>>> Yes you can downgrand
> >>>> apt-get downlaod linux-image-4.19.0-16-amd64
> >>>> dpkg -i linux-image-4.19.0.16-amd64.deb
> >>>
> >>> Why so complicated?
> >>>
> >>> If APT can download the package it can also install it (by calling dpkg 
> >>> itself, of course).
> >>>
> >> You could do so...
> >> apt-get reinstall linux-image-4.19.0-16-amd64
> > 
> > `reinstall` is still two letters longer than a simple `install`, for no 
> > obvious reason ;)
> > 
> There's a sentence that says "Don't try to cut hair in four".
> Why do I state "reinstall" instead of install ?
> Because he already has the linux-image-4.19.0-16-amd64
> So it will only say "already installed".
> By forcing "reinstall" you also make sure it gets as default kernel for
> booting.
> 
> Have something to add ? (Ha ha ha)
> >> and it will be back as default in grub.
> > 
> > The default in the grub menu is typically the newest kernel installed, 
> > regardless of when it was (re)installed.
> If this is true then all this talk is useless because he already has
> this kernel installed.
> So that's a waste of time and simply use the "advanced option".

It's quite simple really. Grub doesn't know why it was invoked, it's
just run because something changed. And, as usual, it looks at the
/current/ state of the system to ascertain how to build grub.cfg.

If you want to be able to set and change the default entry to boot,
that's straightforward to do with GRUB_DEFAULT and GRUB_SAVEDEFAULT
in /etc/default/grub, assuming certain conditions.¹

¹ /boot/grub/ "on a plain disk (no LVM or RAID), using a
  non-checksumming filesystem (no ZFS), and using BIOS or
  EFI functions (no ATA, USB or IEEE1275)."

Cheers,
David.


Reply to: