Re: rmmod -a does not unload unused modules in 2.2.x

Andrew V. Samoilov (
Mon, 22 Nov 1999 11:55:24 +0200

Keith Owens wrote:
: On Sun, 21 Nov 1999 21:08:44 +0200,
: "Andrew V. Samoilov" <> wrote:
: >Some time ago here was a discussion about kerneld and Linux 2.2.x kernels.
: >I remember it was proposed to use a 'rmmod -a' from cron to unload unused
: >modules. But it doesn't work at least for 2.2.10 and 2.2.13 kernels.
: It does for me. rmmod -a only gets rid of modules marked as autoclean,
: the modules have to be loaded with modprobe -k or insmod -k before
: rmmod -a will remove them. Does lsmod say autoclean against these
: modules?
Yes, it's so...

$ lsmod
Module Size Used by
$ insmod -k iBCS
$ lsmod
Module Size Used by
iBCS 119100 0 (autoclean)
$ rmmod -a
$ lsmod
Module Size Used by
iBCS 119100 0 (autoclean)


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
Please read the FAQ at