From owner-freebsd-gnome@FreeBSD.ORG Wed Mar 20 16:30:40 2013 Return-Path: Delivered-To: gnome@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id F24FFE2C for ; Wed, 20 Mar 2013 16:30:40 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-oa0-f52.google.com (mail-oa0-f52.google.com [209.85.219.52]) by mx1.freebsd.org (Postfix) with ESMTP id C0E152F5 for ; Wed, 20 Mar 2013 16:30:40 +0000 (UTC) Received: by mail-oa0-f52.google.com with SMTP id k14so1955879oag.25 for ; Wed, 20 Mar 2013 09:30:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=ZOX8U4sGbl8bzafYxJUEaFD7NsSAMhLf509JrfhM6ws=; b=MsXN77D/DXRYBcwi5gzMCcvx7NJF4UVWi6jMi8uLavQyd6axGUPCzU47+s5ZYIWSXz 3lYN3Y/hJdNGn4hjIxENZ9+kV0UZ2Uc1iYYAeO/8wfj3P7qjLyIvmY4Mc0UQQWMQ27py F00iBHMHMjp1sj+MFRcBk8AjJl7sAGeNG0CusOcKGcMvZESAoO4C8aWj4Cbu7khZqxWK U79EPIbQFasVPBaGM+LFE2RPkgdrB6mB7U5wKAGZlB3AmrhSZgt29ewcZGhShZKn3Jnt 3H/qqSRmRUddacZVIPTrZkycKV1vq7J2Y6BohJQww0Traa5hJUDJr637aDKhwZv6fbHG AMEg== MIME-Version: 1.0 X-Received: by 10.60.24.197 with SMTP id w5mr4487590oef.6.1363796664965; Wed, 20 Mar 2013 09:24:24 -0700 (PDT) Sender: kob6558@gmail.com Received: by 10.76.11.165 with HTTP; Wed, 20 Mar 2013 09:24:24 -0700 (PDT) In-Reply-To: References: Date: Wed, 20 Mar 2013 09:24:24 -0700 X-Google-Sender-Auth: lc2ASP5V6yqEbXwto-dEAquLJkc Message-ID: Subject: Re: nautilus eating 1 CPU and doing lots of I/O From: Kevin Oberman To: Jeremy Messenger Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Cc: FreeBSD GNOME Users , Sergio Lenzi X-BeenThere: freebsd-gnome@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: GNOME for FreeBSD -- porting and maintaining List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Mar 2013 16:30:41 -0000 On Wed, Mar 20, 2013 at 9:04 AM, Jeremy Messenger wrote: > On Wed, Mar 20, 2013 at 10:24 AM, Jeremy Messenger > wrote: >> On Wed, Mar 20, 2013 at 1:13 AM, Kevin Oberman wro= te: >>> On Tue, Mar 19, 2013 at 10:03 PM, Kevin Oberman w= rote: >>>> >>>> Since I updated nautilus a few days ago I am seeing very odd behavior. >>>> >>>> When I open a nautilus window, I see my CPUs at 20-25% load, mostly in= nautilus. I/O jumps from near zero to several MBps,. It varies in the ones= I tried between 4 and 16 MBps depending on the number of files (not folder= s). ktrace shows lots of reads returning "Resource temporarily unavailable"= . I also note that most of my thumbnails are not showing up, just the gener= ic icons for the file type. I'm guessing some issue with finding, loading o= r generating the thumbnails. >>>> >>>> I have no idea what to look for to provide any real data or to track t= his. >>> >>> I just noticed this post to ports@ made earlier today pointing out the >>> problem, but not a good solution. >>> : >>> Sergio de Almeida Lenzi Tue, 19 Mar 2013 12:42:16 -0700 >>> >>> Hello,, >>> >>> On update ports via svn from 2013-03-10 to today, >>> after a portmaster -a, the system (gnome2) >>> stopped to show any thumbnails.. >>> >>> The main reason is that it writes the thumbnail >>> in .thumbnails/normal/xxxxxxx.png >>> but than tries to read it from .cache/thumbnails/normal/xxxxxxxxx.png >>> >>> Can some "nautilus guru" tell me how to fix this??? >>> >>> for now I create a liink in the .cache/thumbnails -> ./thumbnails this >>> works >>> but is not a solution... >> >> That is very weird problem. Gotta figure where the .cache is at one of >> port. Must be one of kwm's recently update. > > Found it, it's related with the glib20 update. See here: > > https://bugzilla.gnome.org/show_bug.cgi?id=3D675168 > > I found it from in its NEWS, it's in the "Overview of changes from > GLib 2.33.2 to 2.33.3" section. > > It looks like we will have to search for a better solution. By either > patch in GNOME 2 stuff or patch in glib20 to make it fallback > (compatible). The developer will not create a fallback for old stuff's > sake. Sigh. So some apps are still assuming .thumbnails and glib has moved to 'doing the right thing" but not allowed for apps that don't yet know it. For nautilus it creates an endless loop of looking for the thumbnail in A, not finding it, calling the routines to create a new thumbnail which puts it in B, and then repeats forever. The CPU is eaten and I/O generated in making new thumbs continually. What all creates the thumbnails? If it is a single place that contains the location, it's not too much to fix, but finding it could be tricky. I'm hunting for it now in header files but there are a LOT of them that contain "thumbnails" and I have just started looking. For now I'm taking the easy way out by creating a symlink as Sergio suggested. Not the right answer, I know, but it should work. I'm also copying him as he posted to ports and may not read gnome@. --=20 R. Kevin Oberman, Network Engineer E-mail: rkoberman@gmail.com