Re: phk malloc, was (Re: ptmalloc2)

看板DFBSD_kernel作者時間21年前 (2005/02/27 09:01), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串49/57 (看更多)
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Feb 26, 2005, at 6:28 PM, Chris Pressey wrote: >> And the point we keep coming back to is that it is impossible for an >> application to accurately self regulate its resource usage (unless you >> mean allowing command line flags to specify how much memory to use >> [why not just set rlimits instead]) since it does not receive >> accurate feedback from the kernel when over commit is allowed. > > man mlock(1): > > [EAGAIN] Locking the indicated range would exceed either the > system or per-process limit for locked memory. > > Is that not accurate feedback? > Read more closely: "limit for __locked__ memory". The limits don't have to be (and frequently aren't) the same. - -- Tobias DiPasquale 7A79 308C 0354 EA9C 7807 ED83 03C9 9E01 148E 7D01 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.5 (Darwin) iD8DBQFCIRU9A8meARSOfQERAnZCAKCba2kparU0DoiIoW6K09Git3mh3wCg4VdG aFVFIKbcNqKM07knqydE1x0= =QRvT -----END PGP SIGNATURE-----
文章代碼(AID): #128HlI00 (DFBSD_kernel)
討論串 (同標題文章)
文章代碼(AID): #128HlI00 (DFBSD_kernel)