On Saturday 26 November 2005 11:44, Rob Landley wrote: > On Friday 25 November 2005 17:33, Blaisorblade wrote: > > On Friday 25 November 2005 22:04, Nix wrote: > > > On Fri, 25 Nov 2005, Rob Landley moaned: > > > > On Friday 25 November 2005 13:33, Nix wrote:
> That a normal user can allocate persistent memory, that outlives all their > processes, with no special priviledges, and that the limits on it are per > system rather than per user. (In theory you can apply quota to /tmp but > I've never seen anybody do it. And yeah, shmfs is no worse than shmget, > for obvious reasons. Apparently System V wasn't big into reference > counting.). When I studied SysV API I've seen this being claimed and intended as a feature. In the same way, the absence of garbage collection on filesystems is called a feature. And in fact shmctl(IPC_RMID) does reference counting - the concept is exactly the same one as with filesystems and deleting files (argh, it's not so for anything else of the SysV APIvefd, unfortunately). Additionally, on Linux, you can attach a shm region which is marked to be destroyed (not on other systems), and then you create a region and mark it for deletion, getting the desired behaviour. The (big) misfeature is the miss of a purely refcounting option of the API as a standard, and the miss of a standard utility to clean the leftover cruft... (I think this can be called a potential local DoS on almost all deployed systems, where no such utility exists to my knowledge). -- Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!". Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894) http://www.user-mode-linux.org/~blaisorblade ___________________________________ Yahoo! Messenger: chiamate gratuite in tutto il mondo http://it.messenger.yahoo.com ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ User-mode-linux-devel mailing list User-mode-linux-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel