Re: [CFR] reflect resolv.conf update to running application

From: Alexander Leidinger (Alexander_at_Leidinger.net)
Date: 08/21/05

  • Next message: Randy Bush: "Re: [CFR] reflect resolv.conf update to running application"
    Date: Sun, 21 Aug 2005 12:54:12 +0200
    To: Hajimu UMEMOTO <ume@freebsd.org>
    
    

    On Sun, 21 Aug 2005 19:27:07 +0900
    Hajimu UMEMOTO <ume@freebsd.org> wrote:

    > Hi,
    >
    > >>>>> On Sun, 21 Aug 2005 11:54:54 +0200
    > >>>>> Alexander Leidinger <Alexander@Leidinger.net> said:
    >
    > Alexander> Can kqueue be used instead of polling?
    >
    > It may be able to use kqueue. However, I'm not sure how kevent() is
    > cheap than stat(). It requires holding a file descriptor for

    From a high level perspective (I don't know the code), kevent() only
    has to lookup an event in a queue (if the file hasn't changed, which is
    the typical case), while stat() has to go through the VFS subsystem
    until it reaches the cache (or the disk).

    Bye,
    Alexander.

    -- 
    http://www.Leidinger.net                       Alexander @ Leidinger.net
      GPG fingerprint = C518 BC70 E67F 143F BE91  3365 79E2 9C60 B006 3FE7
    _______________________________________________
    freebsd-arch@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-arch
    To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"
    

  • Next message: Randy Bush: "Re: [CFR] reflect resolv.conf update to running application"

    Relevant Pages

    • Re: [CFR] reflect resolv.conf update to running application
      ... Alexander> Can kqueue be used instead of polling? ... I'm not sure how kevent() is ... cheap than stat. ... significant advantage to use kqueue, stat() is better here, IMHO. ...
      (freebsd-arch)
    • Re: [take12 0/3] kevent: Generic event handling mechanism.
      ... kevent is called. ... Word "polling" really confuses me here, ... should be returned (as far as I recall they are always added into kqueue in ... API in my program. ...
      (Linux-Kernel)
    • Re: [take22 0/4] kevent: Generic event handling mechanism.
      ... compared to kqueue in kernelspace, or just about what structure is being ... it was some kind of a joke to 'not rewrite *bsd from scratch ... and use kqueue in Linux kernel as is'. ... *BSD kevent ...
      (Linux-Kernel)
    • Stopping a kqueue
      ... I tried asking this in comp.lang.c and comp.lang.c++ but in neither place had anyone ever heard of kqueue or kevent so I'm hoping I might have more luck here. ... I've got some code which monitors a file by way of the kqueue/kevent mechanism but I'm having trouble getting it to shut down cleanly. ... As far as I can see, the only way to get it to stop is to set "watcherRunning" to false and then actually make a change to the file in order to trigger a kevent and unblock the thread! ...
      (comp.unix.bsd.freebsd.misc)
    • Re: [take22 0/4] kevent: Generic event handling mechanism.
      ... kqueue on Linux, too ... Should we use *BSD VMM system when we have superiour Linux one? ... Btw, if you want someone to rewrite something, you can start with mmaped ... According to my tests kevent is noticebly faster. ...
      (Linux-Kernel)

  • Quantcast