Re: limitations on sysv ipc message queues on Linux

Stefan Monnier (peeter_joot@VNET.IBM.COM)
Sat, 5 Dec 1998 17:40:46 -0500 (EST)


> Perhaps there should be a limit for 'total memory used by a queue' and
> 'total memory used by all queues' as well as count/size limits ?

MSGMNB (formerly 16K) is the per queue limit. Making this configurable
opens is what opens up the potential resource allocation problem.

The 'total memory used by all queues' is the one that I wanted to add and
it is easy to do so since we already keep this information.

> > keeps track of that info, but I don't know where the user limits should
> go.
> > struct rusage looks like it is the right place, but can this be modified
> > without breaking apps?
>
> Not really

Oh well, too bad a more flexible scheme wasn't used. I guess I can live
with adding a 'total memory used by all queues' limit.

Peeter

--
Peeter Joot                                          peeterj@ca.ibm.com
IBM DB2 Operating System Services                    416-448-3359 (tie line 778)

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/