> CKRM/RG handles it this way: > > Amount of a resource a child RG gets is the ratio of its share value to > the parent's total # of shares. Children's resource allocation can be > changed just by changing the parent's total # of shares. > > If you case about initial situation would be: > Total memory in the system 100MB > parent's total # of shares: 100 (1 share == 1MB) > 10 children with # of shares: 10 (i.e each children has 10MB) > > When I want to add another child, just change parent's total # of shares > to be say 125: > Total memory in the system 100MB > parent's total # of shares: 125 (1 share == 0.8MB) > 10 children with # of shares: 10 (i.e each children has 8MB) > Now you are left with 25 shares (or 20MB) that you can assign to new > child(ren) as you please. setting memory in "shares" doesn't look user friendly at all... Kirill - 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:
- Re: [ckrm-tech] [PATCH] BC: resource beancounters (v4) (added user memory)
- From: Chandra Seetharaman <[email protected]>
- Re: [ckrm-tech] [PATCH] BC: resource beancounters (v4) (added user memory)
- References:
- [PATCH] BC: resource beancounters (v4) (added user memory)
- From: Kirill Korotaev <[email protected]>
- Re: [ckrm-tech] [PATCH] BC: resource beancounters (v4) (added user memory)
- From: Balbir Singh <[email protected]>
- Re: [ckrm-tech] [PATCH] BC: resource beancounters (v4) (added user memory)
- From: Kirill Korotaev <[email protected]>
- Re: [ckrm-tech] [PATCH] BC: resource beancounters (v4) (added user memory)
- From: Balbir Singh <[email protected]>
- Re: [ckrm-tech] [PATCH] BC: resource beancounters (v4) (added user memory)
- From: Chandra Seetharaman <[email protected]>
- Re: [ckrm-tech] [PATCH] BC: resource beancounters (v4) (added user memory)
- From: Pavel Emelianov <[email protected]>
- Re: [ckrm-tech] [PATCH] BC: resource beancounters (v4) (added user memory)
- From: Dave Hansen <[email protected]>
- Re: [ckrm-tech] [PATCH] BC: resource beancounters (v4) (added user memory)
- From: Balbir Singh <[email protected]>
- Re: [ckrm-tech] [PATCH] BC: resource beancounters (v4) (added user memory)
- From: Pavel Emelianov <[email protected]>
- Re: [ckrm-tech] [PATCH] BC: resource beancounters (v4) (added user memory)
- From: Chandra Seetharaman <[email protected]>
- [PATCH] BC: resource beancounters (v4) (added user memory)
- Prev by Date: Efficient Use of the Page Cache with 64 KB Pages
- Next by Date: Re: Assignment of GDT entries
- Previous by thread: Re: [ckrm-tech] [PATCH] BC: resource beancounters (v4) (added user memory)
- Next by thread: Re: [ckrm-tech] [PATCH] BC: resource beancounters (v4) (added user memory)
- Index(es):