apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Justin Erenkrantz <jerenkra...@ebuilt.com>
Subject Re: [PATCH] shmem.c
Date Sat, 08 Sep 2001 07:59:16 GMT
On Fri, Sep 07, 2001 at 11:49:15PM -0700, MATHIHALLI,MADHUSUDAN (HP-Cupertino,ex1) wrote:
> As regards the shmem_t, you're right.. I'm working on having it as a part of
> the shared memory itself - but I'm not sure if such a thing is  acceptable..
> I was thinking of the following 2 alternatives (1) store the shmem_t
> structure in the shared memory (either a different one or in the same shared
> memory segment) OR (2) store the memchunk characteristics along with the
> memory chunk - similar to MM.

-1 (veto) if it means that we can't do:

- Create 1024KB shared memory segment
- Allocate 256KB from that segment
- (Repeat above three more times)

This was the problem inherent with MM and which is why it was removed.

The problem is that you can't often allocate more than what the user
asked for because of hard system limits.  (Therefore, you can't create
a segment size of 1030KB when they ask for 1024KB because the system 
has a upper bound of 1024KB...).  -- justin

View raw message