On Sat, Jun 06, 2009 at 01:15:22PM +0200, Martin Preuss wrote:
> > > It can't have an infinite loop: It runs in a single thread and needs
> > > to do some cleanup from time to time (e.g. releasing readers and cards
> > > after some timeout etc).
> 
> The cleanup concerns internal structures after using a card. The readers and 
> cards are not disconnected immidiately after use (because sometimes cards and 
> readers are opened and closed multiple times within a short period so 
> immediately releasing a reader unnecessarily adds startup and shutdown time 
> and therefore prolongs the execution time for the application).

Ok.  That's the timeline I gave in the example.  In this case, all that
is needed is to see before the select call if there is any cleanup to
do, and set the timeout to infinity if there isn't.

> The part which can never be swapped out is only the one or two pages which 
> actually contain that code. So I guess we are only talking about 4 or 8 KB 
> here.

That depends on how the kernel works, but I think you are correct that
it's not a lot of memory.

> Of course this could be reduced to zero given the right amount of work
> but currently that's not my highest priority.

I can understand that.  I don't think it's a lot of work for someone who
is familiar with the code, though.

Thanks,
Bas

-- 
I encourage people to send encrypted e-mail (see http://www.gnupg.org).
If you have problems reading my e-mail, use a better reader.
Please send the central message of e-mails as plain text
   in the message body, not as HTML and definitely not as MS Word.
Please do not use the MS Word format for attachments either.
For more information, see http://a82-93-13-222.adsl.xs4all.nl/e-mail.html

Attachment: signature.asc
Description: Digital signature

Reply via email to