|
|
Subscribe / Log in / New account

LPC: Booting Linux in five seconds

LPC: Booting Linux in five seconds

Posted Sep 23, 2008 13:39 UTC (Tue) by etienne_lorrain@yahoo.fr (guest, #38022)
In reply to: LPC: Booting Linux in five seconds by jpmcc
Parent article: LPC: Booting Linux in five seconds

If you have a software loaded using a library (for instance Glibc), then you upgrade the Glibc package, only the file on disk is updated, and only the application newly created will use this new file.
Linux do not provide re-loading current tasks with the new libraries; during the time in between the library is upgraded and all the old users of the old library have disappered, the library file is twice is memory - and old programs will still contain bugs of the old library.
Debian seems to be good at restarting services when their dependancies are upgraded, but I am not sure they handle things like Glibc upgrade.
That is why booting from scratch is needed from times to times.


to post comments

LPC: Booting Linux in five seconds

Posted Sep 23, 2008 17:43 UTC (Tue) by hmh (subscriber, #3838) [Link] (1 responses)

Yes, Debian deals with glibc upgrades. But nothing is really perfect, it is best to just check for old libs in memory after an upgrade:

lsof +L1 | grep lib

together with

lsof -n | grep 'path inode' | grep lib

will give you that info, for example.

LPC: Booting Linux in five seconds

Posted Oct 3, 2008 11:03 UTC (Fri) by pabs (subscriber, #43278) [Link]

A better way to do that is:

apt-get install debian-goodies ; checkrestart -v

That gives you package names and init scripts to run.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds