Ar Gwe, 2006-08-18 am 12:52 +0400, ysgrifennodd Kirill Korotaev: > > hmm, not sure why it is simpler. > because introducing additonal lookups/hashes etc. is harder and > adds another source for possible mistakes. > we can always optimize it out if people insist (by cost of slower accounting). It ought to be cheap. Given each set of page structs is an array its a simple subtract and divide (or with care and people try to pack them nicely for cache lines - shift) to get to the parallel accounting array. Alan - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- References:
- [RFC][PATCH] UBC: user resource beancounters
- From: Kirill Korotaev <[email protected]>
- [RFC][PATCH 5/7] UBC: kernel memory accounting (core)
- From: Kirill Korotaev <[email protected]>
- Re: [RFC][PATCH 5/7] UBC: kernel memory accounting (core)
- From: Dave Hansen <[email protected]>
- Re: [RFC][PATCH 5/7] UBC: kernel memory accounting (core)
- From: Rohit Seth <[email protected]>
- Re: [ckrm-tech] [RFC][PATCH 5/7] UBC: kernel memory accounting (core)
- From: Dave Hansen <[email protected]>
- Re: [ckrm-tech] [RFC][PATCH 5/7] UBC: kernel memory accounting (core)
- From: Alan Cox <[email protected]>
- Re: [ckrm-tech] [RFC][PATCH 5/7] UBC: kernel memory accounting (core)
- From: Dave Hansen <[email protected]>
- Re: [ckrm-tech] [RFC][PATCH 5/7] UBC: kernel memory accounting (core)
- From: Rohit Seth <[email protected]>
- Re: [ckrm-tech] [RFC][PATCH 5/7] UBC: kernel memory accounting (core)
- From: Kirill Korotaev <[email protected]>
- [RFC][PATCH] UBC: user resource beancounters
- Prev by Date: Re: /dev/sd*
- Next by Date: Re: [2.6.19 PATCH 3/7] ehea: queue management
- Previous by thread: Re: [ckrm-tech] [RFC][PATCH 5/7] UBC: kernel memory accounting (core)
- Next by thread: Re: [ckrm-tech] [RFC][PATCH 5/7] UBC: kernel memory accounting (core)
- Index(es):