Re: sleep for specified time

From: Joshua Oreman (oremanj_at_webserver.get-linux.org)
Date: 05/31/03

  • Next message: Rob: "Re: df -h reporting weird numbers (FreeBSD 4.8)"
    Date: Fri, 30 May 2003 15:38:47 -0700
    To: Lowell Gilbert <freebsd-questions-local@be-well.no-ip.com>
    
    

    On Fri, May 30, 2003 at 09:04:50AM -0400 or thereabouts, Lowell Gilbert seemed to write:
    > > > someone please tell me how to make a kld sleep for specified number of
    > > > microseconds
    > > >
    > > > its urgent.
    > >
    > > nanosleep (microseconds*1000);
    >
    > In the kernel? Surely not.
    >
    > I think you'd need to explicitly run the scheduler, and probably use a
    > timer event to resume later. There are established techniques for
    > these things, but the BSD kernel details aren't my specialty...

    Sorry, I really am not familliar with the kernel. I just figured, nanosleep
    is a syscall, so it should work in kernel...

    Sorry again,
    -- Josh

    > _______________________________________________
    > freebsd-questions@freebsd.org mailing list
    > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


  • Next message: Rob: "Re: df -h reporting weird numbers (FreeBSD 4.8)"

    Relevant Pages

    • Re: call for more SD versus CFS comparisons (was: Re: [ck] Mainline plans)
      ... problems on my Amarok machine. ... usually test Amarok playback while kernel package make, ... Putting load onto the VM layer / block layer. ... also the behavior on a server for example - how does the scheduler behave ...
      (Linux-Kernel)
    • Re: page fault in sched_pin()
      ... > sched_pinearly in the boot process. ... I wasn't booting off the kernel I thught I was booting off. ... remove it from the scheduler inteface and make it part of the standard ... page fault while in kernel mode ...
      (freebsd-current)
    • Re: most lightweight debian server
      ... You might want to use a different scheduler and I/O scheduler than the ... default if you use a 2.6.24 kernel. ... You will see these as options when you run make gconfig (or whichever config you run). ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". ...
      (Debian-User)
    • Re: BIND9 performance issues with SMP
      ... instead of having its own dedicated scheduler activation. ... that threads that block in the kernel don't block the whole process. ... but lock contentions seem particularly heavy ... The first-level optimization is to create ...
      (freebsd-current)
    • Re: [OT] Interview with Con Kolivas on Linux failures
      ... Con Kolivas, the kernel hacker who authored a better scheduler, recently decided to quit. ... Loss for Linux ... The former option means you have a CPU scheduler which is difficult to model, and the behaviour is right 95% of the time and ebbs and flows in its metering out of CPU and latency. ...
      (Debian-User)