Re: [PATCH v2] vmscan: limit concurrent reclaimers in shrink_zone

From: Avi Kivity
Date: Fri Dec 18 2009 - 09:13:58 EST


On 12/18/2009 04:12 PM, Rik van Riel wrote:
On 12/18/2009 08:38 AM, Avi Kivity wrote:

+ /* Number of processes running page reclaim code on this zone. */
+ atomic_t concurrent_reclaimers;
+ wait_queue_head_t reclaim_wait;
+

Counting semaphore?

I don't see a safe way to adjust a counting semaphore
through /proc/sys.

True. Maybe it's worthwhile to add such a way if this pattern has more uses.

--
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/