lkml.org 
[lkml]   [2014]   [Jul]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH -v4] random: introduce getrandom(2) system call
    On Wed 2014-07-30 16:40:52, Bernd Petrovitsch wrote:
    > On Mit, 2014-07-30 at 07:56 -0600, Bob Beck wrote:
    > > Pavel. I have bit 'ol enterprise daemon running with established file
    > > descriptors serving thousands of connections
    > > which periodically require entropy. Now I run out of descriptors. I
    > > can't establish new connections. but I should
    > > now halt all the other ones that require entropy? I should raise
    > > SIGKILL on my process serving these thousands
    > > of connetions? I don't think so.
    >
    > If that long-running daemon periodically needs something from a device,
    > one would better keep the fd for that open the whole time. Saves some
    > CPU cycles and latency too BTW.

    Agreed.

    On the other hand, keeping a fd open is quite tricky for a
    library. But better solution might be to make that easier.

    open( , O_IM_A_LIBRARY_GIVE_ME_ONE_OF_THREE_RESERVED_FDS) might be one
    solution. Actually, one reserved fd should be enough.

    Pavel
    --
    (english) http://www.livejournal.com/~pavelmachek
    (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html


    \
     
     \ /
      Last update: 2014-07-31 01:01    [W:2.758 / U:1.784 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site