From owner-freebsd-stable@FreeBSD.ORG Tue Oct 28 07:49:02 2008 Return-Path: Delivered-To: stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 34AC31065679 for ; Tue, 28 Oct 2008 07:49:02 +0000 (UTC) (envelope-from luigi@onelab2.iet.unipi.it) Received: from onelab2.iet.unipi.it (onelab2.iet.unipi.it [131.114.9.129]) by mx1.freebsd.org (Postfix) with ESMTP id EE8878FC16 for ; Tue, 28 Oct 2008 07:49:01 +0000 (UTC) (envelope-from luigi@onelab2.iet.unipi.it) Received: by onelab2.iet.unipi.it (Postfix, from userid 275) id A2293730AC; Tue, 28 Oct 2008 08:53:20 +0100 (CET) Date: Tue, 28 Oct 2008 08:53:20 +0100 From: Luigi Rizzo To: stable@freebsd.org Message-ID: <20081028075320.GA25535@onelab2.iet.unipi.it> References: <20081021103129.GC93431@onelab2.iet.unipi.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20081021103129.GC93431@onelab2.iet.unipi.it> User-Agent: Mutt/1.4.2.3i Cc: Subject: nspluginwrapper / acrobat problem (was Re: huge cpu and memory usage by ld.so ?) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Oct 2008 07:49:02 -0000 On Tue, Oct 21, 2008 at 12:31:29PM +0200, Luigi Rizzo wrote: > On RELENG_7 (various versions between june and a few days ago) i > noticed that sometimes ld.so starts using huge amounts of memory > and CPU, both in terms of SIZE and RES. > > I saw it first on 3 different machines doing a portupgrade -a > while X was active, but perhaps it is Xorg-related because even > stopping portupgrade the phenomenon continues, and the Xorg process > also comes next in terms of CPU usage (not memory though, it stays > down to reasonable levels). > > This is the 'top' output during a portupgrade -a > > PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND > 17385 luigi 1 107 0 2027M 220M RUN 1 19:20 51.37% ld-2.3.6.so > > and it really goes up with time, at perhaps 50-100Mbytes per minute. > > 2 of the machines use the nvidia-driver, one is a Dell X1 laptop > with an i915 board. > Exiting from X seems to terminate the stray ld.so. > > I am not sure how reproducible the thing is, or whether it is > a known issue (perhaps portupgrade is replacing some Xorg component > while the Xorg process is using it ?) For the archives- i tracked the problem to be related to the use of acrobat8 (the viewer) within firefox3 using nspluginwrapper. What happens is that when you load a pdf document, nsplugin wrapper runs nppdf.so > nspluginwrapper -l /home/luigi/.mozilla/plugins/npwrapper.nppdf.so Original plugin: /usr/local/Adobe/Reader8/ENU/Adobe/Reader8/Browser/intellinux/nppdf.so which in turn, presumably, calls /compat/linux/lib/ld-2.3.6.so to load the required libraries. What i see is that the ld-2.3.6.so binary stays alive throughout the lifetime of the pdf document, and when i close the tab with the pdf viewer, quite often ld-2.3.6.so does not disappear but starts eating memory at 1-2MB per second. I can kill ld-2.3.6.so manually, though i am just a bit unclear on how exactly i could force the loader to go away when nppdf.so is unloaded. cheers luigi > cheers > luigi