Re: [RFC][PATCH 1/7] Resource counters
- From: Pavel Emelianov <xemul@xxxxx>
- Date: Wed, 14 Mar 2007 10:12:11 +0300
Srivatsa Vaddagiri wrote:
On Tue, Mar 13, 2007 at 06:41:05PM +0300, Pavel Emelianov wrote:
right, but atomic ops have much less impact on mostRight. But atomic_add_unless() is slower as it is
architectures than locks :)
essentially a loop. See my previous letter in this sub-thread.
If I am not mistaken, you shouldn't loop in normal cases, which means
it boils down to a atomic_read() + atomic_cmpxch()
So does the lock - in a normal case (when it's not
heavily contented) it will boil down to atomic_dec_and_test().
Nevertheless, making charge like in this patchset
requires two atomic ops with atomic_xxx and only
one with spin_lock().
-
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/
- Follow-Ups:
- Re: [RFC][PATCH 1/7] Resource counters
- From: Eric W. Biederman
- Re: [RFC][PATCH 1/7] Resource counters
- References:
- [RFC][PATCH 0/7] Resource controllers based on process containers
- From: Pavel Emelianov
- [RFC][PATCH 1/7] Resource counters
- From: Pavel Emelianov
- Re: [RFC][PATCH 1/7] Resource counters
- From: Balbir Singh
- Re: [RFC][PATCH 1/7] Resource counters
- From: Pavel Emelianov
- Re: [RFC][PATCH 1/7] Resource counters
- From: Herbert Poetzl
- Re: [RFC][PATCH 1/7] Resource counters
- From: Eric W. Biederman
- Re: [RFC][PATCH 1/7] Resource counters
- From: Herbert Poetzl
- Re: [RFC][PATCH 1/7] Resource counters
- From: Eric W. Biederman
- Re: [RFC][PATCH 1/7] Resource counters
- From: Herbert Poetzl
- Re: [RFC][PATCH 1/7] Resource counters
- From: Pavel Emelianov
- Re: [RFC][PATCH 1/7] Resource counters
- From: Srivatsa Vaddagiri
- [RFC][PATCH 0/7] Resource controllers based on process containers
- Prev by Date: Re: [5/6] 2.6.21-rc3: known regressions
- Next by Date: [ALSA PATCH] alsa-git merge request
- Previous by thread: Re: [RFC][PATCH 1/7] Resource counters
- Next by thread: Re: [RFC][PATCH 1/7] Resource counters
- Index(es):
Relevant Pages
|