On Tue, Feb 29, 2000 at 01:41:43PM -0500, Christopher Masto wrote:

> Personally, I have this extreme distaste for sysv shared memory.  It
> is a very scarce resource that is not freed automatically, and seems
> to go completely against the unix model.  Reminds me of having to free
> memory on the Amiga, and slowly running out of chip RAM.

> In any case, one major offender is imlib.  Since I've recently gone
> Gnome, I've had to turn off imlib's "MIT-SHM shared memory" option or
> things would go bad after a few minutes or hours of use.

I would say that the programs you've mentioned are badly written then.

It takes no more than

        XSync(disp,False);
        shmctl( shmid, IPC_RMID, 0);

right after a call to XShmAttach() for a shared memory image to achieve
the automatic reclamation of the memory.  Shared pixmaps are different,
but not that many programs should use these anyway.

Cheers,
-- 
Anton Berezin <[EMAIL PROTECTED]>
The Protein Laboratory, University of Copenhagen


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to