Re: [2.4.17/18pre] VM and swap - it's really unusable

Andrew Morton
2002-01-08T20:30:25Z

Andrea Arcangeli wrote:
>
> ...
> > What is 00_nanosleep-5 and bootmem ?
>
> nanosleep gives usec resolution to the rest-of-time returned by
> nanosleep, this avoids glibc userspace starvation on nanosleep
> interrupted by a flood of signals. It was requested by glibc people.
>

It would be really nice to do something about that two millisecond
busywait for RT tasks in sys_nanosleep(). It's really foul.

The rudest thing about it is that programmers think "oh, let's
be nice to the machine and use usleep(1000)". Boy, do they
get a shock when they switch their pthread app to use an
RT policy.

Does anyone have any clever ideas?

-