From owner-freebsd-current@FreeBSD.ORG Sun Apr 13 04:06:12 2008 Return-Path: Delivered-To: current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 392581065670; Sun, 13 Apr 2008 04:06:12 +0000 (UTC) (envelope-from marcus@FreeBSD.org) Received: from creme-brulee.marcuscom.com (penna-pt.tunnel.tserv1.fmt.ipv6.he.net [IPv6:2001:470:1f00:ffff::1279]) by mx1.freebsd.org (Postfix) with ESMTP id C01048FC1B; Sun, 13 Apr 2008 04:06:11 +0000 (UTC) (envelope-from marcus@FreeBSD.org) Received: from [IPv6:2001:470:1f00:2464::4] (shumai.marcuscom.com [IPv6:2001:470:1f00:2464::4]) by creme-brulee.marcuscom.com (8.14.2/8.14.2) with ESMTP id m3D46o2Z077900; Sun, 13 Apr 2008 00:06:50 -0400 (EDT) (envelope-from marcus@FreeBSD.org) From: Joe Marcus Clarke To: Coleman Kane In-Reply-To: <1208052990.1305.3.camel@localhost> References: <1208027381.1327.31.camel@localhost> <1208028217.82222.32.camel@shumai.marcuscom.com> <1208028624.1327.41.camel@localhost> <1208030804.1360.5.camel@localhost> <1208032559.1424.3.camel@localhost> <1208052990.1305.3.camel@localhost> Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-yuQAcprmdg5WMg1X9G9h" Organization: FreeBSD, Inc. Date: Sun, 13 Apr 2008 00:06:12 -0400 Message-Id: <1208059572.26405.4.camel@shumai.marcuscom.com> Mime-Version: 1.0 X-Mailer: Evolution 2.22.1 FreeBSD GNOME Team Port X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,NO_RELAYS autolearn=ham version=3.2.4 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on creme-brulee.marcuscom.com Cc: mezz7@cox.net, imp@FreeBSD.org, current@FreeBSD.org Subject: Re: mlock(2), unprivileged users, and RLIMIT_MEMLOCK X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 13 Apr 2008 04:06:12 -0000 --=-yuQAcprmdg5WMg1X9G9h Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Sat, 2008-04-12 at 22:16 -0400, Coleman Kane wrote: > It turns out that in order to use some commands (such as ps, w, top, and > others), you'll need a memorylocked limit even higher. I have mine at > around 250 right now and so far it seems to be fine. If you don't do > this, then these programs will spin in an infinite loop attempting to > allocate some memory (which the system refuses). Yeah, as I said, quite a few sysctl handlers user vslock() which wires memory. Some of the bigger ones are the new procstat sysctls. I wonder how gnome-system-monitor and procstat work with a limited RLIMIT_MEMLOCK. Joe --=20 Joe Marcus Clarke FreeBSD GNOME Team :: gnome@FreeBSD.org FreeNode / #freebsd-gnome http://www.FreeBSD.org/gnome --=-yuQAcprmdg5WMg1X9G9h Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (FreeBSD) iEYEABECAAYFAkgBhq8ACgkQb2iPiv4Uz4csfwCePXvRkVn9fddWaJOD+YRzGIsG mrcAmwaKwGMZJcKLzLeTodyKa3cWV24D =9nai -----END PGP SIGNATURE----- --=-yuQAcprmdg5WMg1X9G9h--