lkml.org 
[lkml]   [1996]   [May]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: your mail
Date
Jacek Zapala Wrote ...
>
> Some people (including me) complained about kerneld removing modules just
> after the last use. The problem is that kerneld remove the module after the
> time specified by the 'delay' parameter counting from _loading_ and not
> after the last use. Of course, it is so because kerneld has no idea, when
> the module was used after loading it.
>
> Couldn't we just send the appropriate message to kerneld when the filesystem
> is being mounted or /dev/fd0 opened ? The only thing we would have to do
> will be to add message sending in the places where kerneld is called to load
> the module. For example, we would have to change super.c from:

kerneld keeps track of the number of references to a module. It should be
counting time from when the reference count reaches 0. That is the time
that the last use finished. Nothing should need to be done in the kernel.

> What do you think about this idea? If you like it and there is nobody
> willing to implement it I can be a volunteer.

I don't believe it it necessary (and I doubt Linus would like it anyway -
to inform the kerneld every time any module does anything is very ugly).

--
[=======================================================================]
[ Kevin Lentin |finger kevinl@fangorn.cs.monash.edu.au| ]
[ K.Lentin@cs.monash.edu.au |for PGP public key block. Fingerprint | ]
[ Macintrash: 'Just say NO!' |6024308DE1F84314 811B511DBA6FD596 | ]
[=======================================================================]


\
 
 \ /
  Last update: 2005-03-22 13:37    [W:0.062 / U:0.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site