Evgeniy Polyakov wrote: > The main disadvantage is that all memory is allocated on the start even > if it will not be used later. I think dynamic grow is appropriate > solution, since user will have that memory used anyway, since kevents > are allocated, If you _allocate_ memory at startup you're doing something wrong. All you should do is allocate address space. Memory should be allocated when it is needed. Growing a memory region is always hard because it means you cannot keep any addresses around and always have to reload a base pointer. That's not ideal. Especially on 64-bit machines address space really is no limitation anymore. So, allocate as much as needed, allocate memory when it's needed, and don't resize. -- ➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖
Attachment:
signature.asc
Description: OpenPGP digital signature
- Follow-Ups:
- Re: [take6 1/3] kevent: Core files.
- From: Evgeniy Polyakov <[email protected]>
- Re: [take6 1/3] kevent: Core files.
- References:
- [take6 0/3] kevent: Generic event handling mechanism.
- From: Evgeniy Polyakov <[email protected]>
- [take6 1/3] kevent: Core files.
- From: Evgeniy Polyakov <[email protected]>
- Re: [take6 1/3] kevent: Core files.
- From: Andrew Morton <[email protected]>
- Re: [take6 1/3] kevent: Core files.
- From: Evgeniy Polyakov <[email protected]>
- Re: [take6 1/3] kevent: Core files.
- From: Andrew Morton <[email protected]>
- Re: [take6 1/3] kevent: Core files.
- From: Evgeniy Polyakov <[email protected]>
- Re: [take6 1/3] kevent: Core files.
- From: Andrew Morton <[email protected]>
- Re: [take6 1/3] kevent: Core files.
- From: Evgeniy Polyakov <[email protected]>
- Re: [take6 1/3] kevent: Core files.
- From: Andrew Morton <[email protected]>
- Re: [take6 1/3] kevent: Core files.
- From: Evgeniy Polyakov <[email protected]>
- [take6 0/3] kevent: Generic event handling mechanism.
- Prev by Date: Re: [take6 1/3] kevent: Core files.
- Next by Date: Re: 2.6.18-rc3-mm2 - OOM storm
- Previous by thread: Re: [take6 1/3] kevent: Core files.
- Next by thread: Re: [take6 1/3] kevent: Core files.
- Index(es):