: Option to run cache reap in thread mode
Quoted 8 lines · Dimitri Sivanich
I would like to know what others think about running
cache_reap()as a low priority realtime kthread, at least on certain cpus that would be configured that way (probably configured at boottime initially). I've been doing some testing running it this way on CPU's whose activity is mostly restricted to realtime work (requiring rapid response times).Here's my first cut at an initial patch for this (there will be other changes later to set the configuration and to optimize locking in
cache_reap()).
I would run it in the standard work queue threads. We already have too many kernel threads, no need to add more.
Also is there really a need for it to be real time?
Note that we don't make any attempt at all in the linux kernel to handle lock priority inversion, so this isn't an argument.
-Andi
Quoted 8 lines · Andi Kleen
Quoted 6 lines · Dimitri Sivanich
I would like to know what others think about running
cache_reap()as a low priority realtime kthread, at least on certain cpus that would be configured that way (probably configured at boottime initially). I've been doing some testing running it this way on CPU's whose activity is mostly restricted to realtime work (requiring rapid response times).
Quoted 7 lines
Quoted 2 lines
Here's my first cut at an initial patch for this (there will be other changes later to set the configuration and to optimize locking in
cache_reap()).I would run it in the standard work queue threads. We already have too many kernel threads, no need to add more.
Also is there really a need for it to be real time?
Not especially. Normal time sharing would be OK with me, but I'd like to emphasize that if it is real time, it would need to be lowest priority.
Quoted 4 lines
Note that we don't make any attempt at all in the linux kernel to handle lock priority inversion, so this isn't an argument.
-Andi
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>