From owner-freebsd-stable@FreeBSD.ORG Sat Sep 26 13:25:23 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4B27D10656B8 for ; Sat, 26 Sep 2009 13:25:23 +0000 (UTC) (envelope-from christof.schulze@gmx.com) Received: from mail.gmx.com (unknown [213.165.64.42]) by mx1.freebsd.org (Postfix) with SMTP id A93538FC1A for ; Sat, 26 Sep 2009 13:25:22 +0000 (UTC) Received: (qmail invoked by alias); 26 Sep 2009 13:25:20 -0000 Received: from 98.90.135.212.in-addr.arpa (EHLO klausdieter0815.dyndns.org) [212.135.90.98] by mail.gmx.com (mp-eu004) with SMTP; 26 Sep 2009 15:25:20 +0200 X-Authenticated: #56306756 X-Provags-ID: V01U2FsdGVkX18A1XYzH+MA9Q6No8dmmUnyvotCkr7BCbhxS+thDy 5xVFIg8uyHsM5E Received: by myhost.mydomain.de (Postfix, from userid 1001) id AB20451; Sat, 26 Sep 2009 15:25:19 +0200 (CEST) From: Christof Schulze To: freebsd-stable@freebsd.org Date: Sat, 26 Sep 2009 15:25:17 +0200 User-Agent: KMail/1.12.0 (FreeBSD/7.2-STABLE; KDE/4.3.0; amd64; ; ) MIME-Version: 1.0 Content-Type: Text/Plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200909261525.18608.christof.schulze@gmx.com> X-Y-GMX-Trusted: 0 X-FuHaFi: 0.5 Subject: various kde programs spin in a poll/read loop against their respective config files 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: Sat, 26 Sep 2009 13:25:23 -0000 Hello everyone, the discussion in -current and the behavior of my hard disk caused me to investigate. Whenever kde programs are run on this system, the hard disk will not spin down (even when excessive timeouts for syncs are in effect) So I ran truss against kwallet and plasma-desktop to find out they do the same thing: stat("/home/erika/.kde4/share/apps/kwallet",{ mode=drwx------ ,inode=56314,size=3,blksize=4096 }) = 0 (0x0) clock_gettime(4,{10454.430272035 }) = 0 (0x0) clock_gettime(4,{10454.430363671 }) = 0 (0x0) clock_gettime(4,{10454.430432397 }) = 0 (0x0) clock_gettime(4,{10454.430516490 }) = 0 (0x0) read(8,0x808f9102c,4096) ERR#35 'Resource temporarily unavailable' poll({3/POLLIN 9/POLLIN 8/POLLIN 5/POLLIN},4,0) = 0 (0x0) clock_gettime(4,{10454.430734403 }) = 0 (0x0) read(8,0x808f9102c,4096) ERR#35 'Resource temporarily unavailable' clock_gettime(4,{10454.430882473 }) = 0 (0x0) read(8,0x808f9102c,4096) ERR#35 'Resource temporarily unavailable' poll({3/POLLIN 9/POLLIN 8/POLLIN 5/POLLIN},4,499) = 0 (0x0) clock_gettime(4,{10454.939752100 }) = 0 (0x0) read(8,0x808f9102c,4096) ERR#35 'Resource temporarily unavailable' clock_gettime(4,{10454.939905198 }) = 0 (0x0) stat("/home/erika/.kde4/share/apps/kwallet",{ mode=drwx------ ,inode=56314,size=3,blksize=4096 }) = 0 (0x0) clock_gettime(4,{10454.940151049 }) = 0 (0x0) clock_gettime(4,{10454.940242126 }) = 0 (0x0) clock_gettime(4,{10454.940309456 }) = 0 (0x0) clock_gettime(4,{10454.940392710 }) = 0 (0x0) read(8,0x808f9102c,4096) ERR#35 'Resource temporarily unavailable' poll({3/POLLIN 9/POLLIN 8/POLLIN 5/POLLIN},4,0) = 0 (0x0) clock_gettime(4,{10454.940612580 }) = 0 (0x0) read(8,0x808f9102c,4096) ERR#35 'Resource temporarily unavailable' clock_gettime(4,{10454.940760929 }) = 0 (0x0) read(8,0x808f9102c,4096) ERR#35 'Resource temporarily unavailable' Shouldn't this be handled by fam/gamin in order to avoid this overhead? While it does not produce notable load it prevents my processor from saving power as well as spinning down the disks. I will gladly provide more information on this if necessary. This is a FreeBSD 7.2-STABLE FreeBSD 7.2-STABLE #0: Tue Jul 7 04:56:00 CEST 2009 root@ccschu935:/usr/obj/usr/src/sys/GENERIC amd64 system Regards Christof