From owner-freebsd-hackers@FreeBSD.ORG Sun Oct 31 23:05:02 2010 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0D6641065672 for ; Sun, 31 Oct 2010 23:05:02 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-ww0-f50.google.com (mail-ww0-f50.google.com [74.125.82.50]) by mx1.freebsd.org (Postfix) with ESMTP id 9027D8FC13 for ; Sun, 31 Oct 2010 23:05:01 +0000 (UTC) Received: by wwi17 with SMTP id 17so3719495wwi.31 for ; Sun, 31 Oct 2010 16:05:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=ZF+fLhaAZbspjPB0pg0OHcL6NORCw67UOOdiObIJFVs=; b=AH2Rw47vLCi0eUAA9BsDPTXw6ltGLyydSQ+O0+vJfE5FvaZTN9b9JKJx1dpTTGVHn9 OlswTMXI3VHNn6gRRcQ7Km2TZXehr176vQQTks79jo8k2GMz0ZSuNPEhgX1CXk9J6350 1fFhb4jRIqWw+Nm2bQMfgEpPSJTAM6AQLZUCc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; b=oRP5jnYGkc/KILnsjeHXFVhe2pMtBcIPYqYfNj5uuObP1bDQcFZla0TKlKRRUQNNbh tB2dKQY20qs6UKkJ7Cq5nozDfMEI1DrBVDP6zW0QqdetO93cBjeaTReADgpgyjL/SBPd wltrN7W1EhnzcVUwITfLKBdYP3D1pmpEdMV64= MIME-Version: 1.0 Received: by 10.216.46.200 with SMTP id r50mr1994327web.45.1288566300043; Sun, 31 Oct 2010 16:05:00 -0700 (PDT) Sender: yanegomi@gmail.com Received: by 10.216.198.27 with HTTP; Sun, 31 Oct 2010 16:05:00 -0700 (PDT) In-Reply-To: References: Date: Sun, 31 Oct 2010 16:05:00 -0700 X-Google-Sender-Auth: 6qlj3Y8IPucWEquaMn5IEZA_BCo Message-ID: From: Garrett Cooper To: Warren Block Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: hackers@freebsd.org Subject: Re: ccache pausing in buildworld X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 31 Oct 2010 23:05:02 -0000 On Sun, Oct 31, 2010 at 9:38 AM, Warren Block wrote: > About a month ago, ccache began to pause in buildworld. =A0The build does= n't > halt or quit, it stays running but not doing anything: > > /usr/local/libexec/ccache/world-cc -fpic -DPIC -O2 -pipe -march=3Dprescot= t > -I/usr/src/lib/libc/include -I/usr/src/lib/libc/../../include > -I/usr/src/lib/libc/i386-DNLS -D__DBINTERFACE_PRIVATE > -I/usr/src/lib/libc/../../contrib/gdtoa -DINET6 -I/usr/obj/usr/src/lib/li= bc > -I/usr/src/lib/libc/resolv -D_ACL_PRIVATE -DPOSIX_MISTAKE > -I/usr/src/lib/libc/locale -DBROKEN_DES -DPORTMAP -DDES_BUILTIN > -I/usr/src/lib/libc/rpc -DYP -DNS_CACHING -DSYMBOL_VERSIONING -std=3Dgnu9= 9 > -fstack-protector -Wsystem-headers -Werror -Wall -Wno-format-y2k > -Wno-uninitialized -Wno-pointer-sign -c crypt_xdr.c -o crypt_xdr.So > > And there it stays: > > =A0load: 0.02 =A0cmd: make 83143 [select] 401.32r 0.05u 0.05s 0% 852k > =A0load: 0.01 =A0cmd: make 83143 [select] 409.08r 0.05u 0.05s 0% 852k > =A0load: 0.01 =A0cmd: make 83143 [select] 422.00r 0.05u 0.05s 0% 852k > > The file where it pauses varies depending on the number of jobs (-j) opti= on. > =A0The example above is with -j6; -j1 doesn't fix it, although it pauses = on > nslexer.c instead. > > This is on 8-stable as of today, i386. =A0The -march=3Dprescott option co= mes > from CPUTYPE?=3Dcore2 in make.conf, and removing that setting doesn't fix= the > problem. > > buildworld without ccache works fine, just takes more than twice as long. > > The kernel target works fine with or without ccache. > > Any ideas? Have you tried trussing or ktrace'ing the processes to determine where they get stuck? Thanks, -Garrett