From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 838831381F3 for ; Mon, 26 Nov 2012 20:20:51 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C086021C0FA; Mon, 26 Nov 2012 20:20:34 +0000 (UTC) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 55A9721C011 for ; Mon, 26 Nov 2012 20:19:19 +0000 (UTC) Received: from compute4.internal (compute4.nyi.mail.srv.osa [10.202.2.44]) by gateway1.nyi.mail.srv.osa (Postfix) with ESMTP id 0A2DF20FC5 for ; Mon, 26 Nov 2012 15:19:18 -0500 (EST) Received: from frontend1.nyi.mail.srv.osa ([10.202.2.160]) by compute4.internal (MEProxy); Mon, 26 Nov 2012 15:19:18 -0500 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=binarywings.net; h=message-id:date:from:mime-version:to:subject:references :in-reply-to:content-type; s=mesmtp; bh=KyTxEu434Knc+H8yeC/lHSSJ Sa4=; b=Ot8LFtaXmEKqPmHOFO8TZPaXqqi4wZ2COj0nvD4KzZYQVuasFQWjO9X9 h0BX/5eZv9Q9gxxdUBEzW0+un3TdCopcZuIIyDcU2YfMVGTCPkhE/6TpgpjxFkgw n9GaXQwtVbwvw2K9tqLwvB7JhkswaJvNpGHhA1I8qTl6HS0uASk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=message-id:date:from:mime-version:to :subject:references:in-reply-to:content-type; s=smtpout; bh=KyTx Eu434Knc+H8yeC/lHSSJSa4=; b=sY4pogy8CGfAzFU8t75wf5o0XOaa632e+OV0 cfzoccMao871TKHX/E/g4VS17BdER0TImIThGYUcsLaRl+6NTll/SviNXjggAtrw 5z4cn9/RRGYcke+msft5axPLb5oZxnkIm2GARTYtvyZGcuXFXP++8NX/08gfsq+C xWI6AU0= X-Sasl-enc: 9hjs82ntD2T+3cPji72bTu7QkwFFLYihcqk1rBh5dHcq 1353961157 Received: from [192.168.5.18] (unknown [83.169.5.6]) by mail.messagingengine.com (Postfix) with ESMTPA id 057B28E0596 for ; Mon, 26 Nov 2012 15:19:16 -0500 (EST) Message-ID: <50B3CEBC.6020809@binarywings.net> Date: Mon, 26 Nov 2012 21:19:08 +0100 From: Florian Philipp User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.10) Gecko/20121117 Thunderbird/10.0.10 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Debug memory leaks in X server References: <50B33CCB.7060405@binarywings.net> In-Reply-To: <50B33CCB.7060405@binarywings.net> X-Enigmail-Version: 1.3.5 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig27FB04D7B5C834E8F01B2AF5" X-Archives-Salt: 3c7f4d27-96cd-47cf-814a-1bc4836209dd X-Archives-Hash: 9054abe10ee2bc92eb670faebe18a60a This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig27FB04D7B5C834E8F01B2AF5 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable Am 26.11.2012 10:56, schrieb Florian Philipp: > Hi list! >=20 > I have a suspicion that viewing certain PDFs in okular causes X server > to leak memory. Currently it is using 1.8 GB after 3 days uptime. Has > anyone else observed that? Is there a way to inspect X server's memory > usage? >=20 > Regards, > Florian Philipp Okay, I have now a better understanding of my memory issue (no clue about Mick's CPU issue. Maybe you can post a link to a PDF to demonstrate= ?): As it seems, Okular is abusing the X server to share pixmaps between instances [1]. In theory, this reduces memory consumption and CPU time, however, there are two issues: a) Sometimes Okular is leaking allocations. b) X cannot handle this usage pattern, sometimes leaks memory or cannot deallocate it because of memory fragmentation [2]. Neither side seems to be willing to fix the issue. For now, my workarounds will be: - Playing around with Okular's memory settings to make the issue less critical. - Using frontswap and normal swap + high swappiness settings to swap out the leaked memory. - Looking for another PDF/djvu/ps viewer. Maybe Wayland can handle the situation better in a few years. [1] https://bugs.kde.org/show_bug.cgi?id=3D177213 [2] https://bugs.launchpad.net/ubuntu/+source/xorg-server/+bug/98783 BTW: Regarding my question for an X memory inspector: x11-misc/xrestop is the answer. Regards, Florian Philipp --------------enig27FB04D7B5C834E8F01B2AF5 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAlCzzsIACgkQqs4uOUlOuU8JnwCfZ560Z7+JtHWF2dCSscb/VSwD /wEAnjswWRi7CBIlMl8rACaf4+6yV0KP =KEp/ -----END PGP SIGNATURE----- --------------enig27FB04D7B5C834E8F01B2AF5--