| From | Subject | Date |
|---|---|---|
| Hasso Tepper | ugen(4) and poll(2)
I'm in trouble to get some usb(4) devices working here. Devices are
attached as ugen(4) and are driven by userspace (libusb) drivers/daemons.
As far as I can see what happens is that daemon opens ugen(4) device
correctly and starts to poll(2) interrupt endpoint of the device (devices
have single interface). The trouble is that poll(2) seems to ignore
timeout. It doesn't return until there is data available in the
descriptor. Ie I can make poll(2) to return with poking device, but till
then it...
| Apr 24, 6:38 pm 2008 |
| Simon 'corecode' Sch... | Re: ugen(4) and poll(2)
In which waitchan is the process? If it is in "poll" and you're really
passing a proper timeout value, then everything should work as advertised.
Does a ktrace show only the poll and no return? Sometimes processes
tend to re-call poll over and over again (maybe due to an interrupting
signal).
cheers
simon
--
Serve - BSD +++ RENT this banner advert +++ ASCII Ribbon /"\
Work - Mac +++ space for low €€€ NOW!1 +++ Campaign \ /
Party Enjoy Relax | ...
| Apr 24, 7:51 pm 2008 |
| Matthew Dillon | HAMMER update 24-Apr-2008
HAMMER is going to be a little unstable as I commit the crash
recovery code. I'm about half way through it. Meta-data updates
to the disk media have now been separated out. I have a few things
left to do before crash recovery will actually work:
* I have to flush the undo buffers out before the meta-data buffers
* Then I have to flush the volume header so mount can see the updated
undo info.
* Then I have to flush out the meta-data buffers that the UNDO
i...
| Apr 24, 5:57 pm 2008 |
| Oliver Fromme | Re: dfbsd nfs client - file descriptor leak
Matthew Dillon wrote:
> The default parameters are set very conservatively on DragonFly. You
> can experiment with them with these sysctl's (in seconds):
>
> vfs.nfs.access_cache_timeout: 5
> vfs.nfs.neg_cache_timeout: 3
> vfs.nfs.pos_cache_timeout: 3
FWIW, FreeBSD's default for access_cache_timeout
was raised to 60 quite some time ago. On my oldest
machine (a 4.x one) ist is still only 2 seconds.
Best regards
Oliver
--
Oliver Fromme, secnetix...
| Apr 24, 7:00 am 2008 |
| previous day | today | next day |
|---|---|---|
| April 23, 2008 | April 24, 2008 | April 25, 2008 |
