From owner-freebsd-current@FreeBSD.ORG Wed Jan 2 05:08:41 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 68E3A16A418 for ; Wed, 2 Jan 2008 05:08:41 +0000 (UTC) (envelope-from jroberson@chesapeake.net) Received: from webaccess-cl.virtdom.com (webaccess-cl.virtdom.com [216.240.101.25]) by mx1.freebsd.org (Postfix) with ESMTP id 2523413C43E for ; Wed, 2 Jan 2008 05:08:41 +0000 (UTC) (envelope-from jroberson@chesapeake.net) Received: from [192.168.1.107] (cpe-24-94-75-93.hawaii.res.rr.com [24.94.75.93]) (authenticated bits=0) by webaccess-cl.virtdom.com (8.13.6/8.13.6) with ESMTP id m0258cKr073117; Wed, 2 Jan 2008 00:08:39 -0500 (EST) (envelope-from jroberson@chesapeake.net) Date: Tue, 1 Jan 2008 19:09:54 -1000 (HST) From: Jeff Roberson X-X-Sender: jroberson@desktop To: Rene Ladan In-Reply-To: <476F81AF.7000505@gmail.com> Message-ID: <20080101190607.B957@desktop> References: <20071223092332.GJ25002@server.vk2pj.dyndns.org> <476F81AF.7000505@gmail.com> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="2547152148-680891004-1199250594=:957" Cc: Peter Jeremy , freebsd-current@freebsd.org Subject: Re: idle priority scheduling broken in 7.0-BETA4 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jan 2008 05:08:41 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --2547152148-680891004-1199250594=:957 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed On Mon, 24 Dec 2007, Rene Ladan wrote: > Peter Jeremy schreef: >> In August, I reported that idprio was not working in -current. >> Successive upgrades to 7.0-BETA2 and 7.0-BETA4, as well as switching >> to ULE have not resolved the problem. >> >> The problem affects both boinc-einsteinathome and boinc-setiathome and >> causes them to report "No heartbeat from core client for 31 sec - >> exiting" and get repeatedly restarted. The boinc compute modules >> (einstein@home, seti@home etc) use a SysV SHM segment to exchange >> heartbeats with the boinc core client. The problem is that the core >> client is not being scheduled whilst the compute module is running, >> causing them to die. >> >> Previously, multiple idprio tasks were round-robined but it seems that >> something has been changed and it appears that the last scheduled task >> is now re-scheduled. >> >> Has anyone else seen this behaviour? >> > On my CURRENT 2007-12-23 dualcore (Intel T5600) i386 I get similar behaviour > when using the ULE scheduler. With the 4BSD scheduler priorities are sometimes > wrong, but boinc tasks (einstein,seti,simap) run continuously until preempted, > they are kept in memory. > > last pid: 8141; load averages: 2.03, 2.14, 2.18 up 0+20:48:27 10:51:54 > 146 processes: 7 running, 120 sleeping, 19 waiting > CPU states: % user, % nice, % system, % interrupt, % idle > Mem: 373M Active, 1040M Inact, 223M Wired, 17M Cache, 112M Buf, 349M Free > Swap: 4062M Total, 4062M Free > > PID USERNAME PRI NICE SIZE RES STATE C TIME WCPU COMMAND > 7315 boinc 171 i31 65960K 64904K CPU1 1 187:57 62.89% {einstein_S5R3_4. > 7859 boinc 171 i31 13680K 12552K RUN 0 71:31 60.16% {simap_5.10_i686- > 7859 boinc 20 i31 13680K 12552K kserel 0 71:31 10.45% {simap_5.10_i686- > 5168 boinc 8 i31 41960K 37564K nanslp 0 205:14 0.00% {initial thread} > 5168 boinc 8 19 41960K 37564K nanslp 0 205:14 0.00% {setiathome-5.27. > 7315 boinc 20 i31 65960K 64904K ksesig 0 187:57 0.00% {einstein_S5R3_4. > 7315 boinc 20 i31 65960K 64904K kserel 0 187:57 0.00% {einstein_S5R3_4. > 7859 boinc 20 i31 13680K 12552K ksesig 0 71:31 0.00% {simap_5.10_i686- > 22403 boinc 171 i31 9572K 6700K select 1 0:32 0.00% boinc_client Can you please try this experimental patch for ULE? It re-enables the time slicing code for idle prio and realtime tasks that are not fifo. Thanks, Jeff > > > Rene > -- > GPG fingerprint = E738 5471 D185 7013 0EE0 4FC8 3C1D 6F83 12E1 84F6 (subkeys.pgp.net) > > "It won't fit on the line." > -- me, 2001 > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" > --2547152148-680891004-1199250594=:957 Content-Type: TEXT/x-diff; charset=US-ASCII; name=uleidle.diff Content-Transfer-Encoding: BASE64 Content-ID: <20080101190954.K957@desktop> Content-Description: Content-Disposition: attachment; filename=uleidle.diff SW5kZXg6IHNjaGVkX3VsZS5jDQo9PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09DQpS Q1MgZmlsZTogL2hvbWUvbmN2cy9zcmMvc3lzL2tlcm4vc2NoZWRfdWxlLmMs dg0KcmV0cmlldmluZyByZXZpc2lvbiAxLjIyMA0KZGlmZiAtdSAtcjEuMjIw IHNjaGVkX3VsZS5jDQotLS0gc2NoZWRfdWxlLmMJMjEgRGVjIDIwMDcgMjM6 MzA6MTggLTAwMDAJMS4yMjANCisrKyBzY2hlZF91bGUuYwkyIEphbiAyMDA4 IDA1OjA5OjMzIC0wMDAwDQpAQCAtMjE4NiwxNyArMjE4NiwxNiBAQA0KIAkJ CXRkcS0+dGRxX3JpZHggPSB0ZHEtPnRkcV9pZHg7DQogCX0NCiAJdHMgPSB0 ZC0+dGRfc2NoZWQ7DQotCS8qDQotCSAqIFdlIG9ubHkgZG8gc2xpY2luZyBj b2RlIGZvciBUSU1FU0hBUkUgdGhyZWFkcy4NCi0JICovDQotCWlmICh0ZC0+ dGRfcHJpX2NsYXNzICE9IFBSSV9USU1FU0hBUkUpDQorCWlmICh0ZC0+dGRf cHJpX2NsYXNzICYgUFJJX0ZJRk8pDQogCQlyZXR1cm47DQotCS8qDQotCSAq IFdlIHVzZWQgYS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