From owner-freebsd-current@FreeBSD.ORG Tue Oct 2 08:05:28 2007 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 1F2A716A417; Tue, 2 Oct 2007 08:05:28 +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 E2E4D13C457; Tue, 2 Oct 2007 08:05:27 +0000 (UTC) (envelope-from jroberson@chesapeake.net) Received: from [192.168.1.103] (c-67-160-44-208.hsd1.wa.comcast.net [67.160.44.208]) (authenticated bits=0) by webaccess-cl.virtdom.com (8.13.6/8.13.6) with ESMTP id l92857Xn061835 (version=TLSv1/SSLv3 cipher=DHE-DSS-AES256-SHA bits=256 verify=NO); Tue, 2 Oct 2007 04:05:26 -0400 (EDT) (envelope-from jroberson@chesapeake.net) Date: Tue, 2 Oct 2007 01:07:57 -0700 (PDT) From: Jeff Roberson X-X-Sender: jroberson@10.0.0.1 To: Marc Fonvieille In-Reply-To: <20071001185454.GA72080@abigail.blackend.org> Message-ID: <20071002010703.D6669@10.0.0.1> References: <20070916061932.GA93480@underworld.novel.ru> <20070918061806.GA85425@blazingdot.com> <20070918004027.G558@10.0.0.1> <20071001101525.GA1530@gothic.blackend.org> <20071001112845.N583@10.0.0.1> <20071001185454.GA72080@abigail.blackend.org> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-1571468418-1191312477=:6669" Cc: freebsd-current@freebsd.org, Roman Bogorodskiy Subject: Re: SCHED_ULE on desktop system 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: Tue, 02 Oct 2007 08:05:28 -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. --0-1571468418-1191312477=:6669 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed On Mon, 1 Oct 2007, Marc Fonvieille wrote: > On Mon, Oct 01, 2007 at 11:30:16AM -0700, Jeff Roberson wrote: >>> I have the same problems as Roman: once I compile something, most of X >>> applications become slow as hell with lagging screen refresh. That's on >>> -CURRENT (with all debug, malloc, invariant things disabled) with ULE >>> and Xorg 4.3 (I'll test with the legacy scheduler as soon as possible). >>> This behavior does not occur on 6.2 but with Xorg 7.2, so I really suspect >>> last Xorg release to be guilty. Jeff you often mentioned tests on your >>> laptop, could you check what Xorg version your run? >> >> xorg-7.2 X.Org complete distribution metaport >> xorg-server-1.2.0_2,1 X.Org X server and related programs >> >> If you're running very recent current you can try renicing X negatively. >> If you nice -20 and it doesn't improve then it's probably not the cpu >> scheduler causing the delay. What display driver are you using? How much >> cpu is X using while you're experiencing the lag? >> > > I tried with _4BSD and it gives the same behavior (I even downgraded > Xorg to 7.2). Renicing X does not really help. > > I use nvidia or nv driver (nvidia one is a bit less worse). The lag can > even appears with 4% of CPU usage according to top(1). > Thanks to your remarks and my tests, I'm now sure it's scheduler > independent. It seems 7-CURRENT is slower than 6.X regarding I/O :( > For info the box is a 1.2GHz Athlon with 1GB of RAM and swap is never > used. Can you try with ULE and the attached diff? sched_yield() behavior changed between 6.x and 7-CURRENT. This has been referenced in other bug reports. Please let me know if this helps. Thanks, Jeff > > -- > Marc > _______________________________________________ > 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" > --0-1571468418-1191312477=:6669 Content-Type: TEXT/x-diff; charset=US-ASCII; name=relinquish.diff Content-Transfer-Encoding: BASE64 Content-ID: <20071002010757.E6669@10.0.0.1> Content-Description: Content-Disposition: attachment; filename=relinquish.diff SW5kZXg6IHNjaGVkX3VsZS5jDQo9PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09DQpS Q1MgZmlsZTogL2hvbWUvbmN2cy9zcmMvc3lzL2tlcm4vc2NoZWRfdWxlLmMs dg0KcmV0cmlldmluZyByZXZpc2lvbiAxLjIwOQ0KZGlmZiAtdSAtcjEuMjA5 IHNjaGVkX3VsZS5jDQotLS0gc2NoZWRfdWxlLmMJMjQgU2VwIDIwMDcgMDA6 Mjg6NTQgLTAwMDAJMS4yMDkNCisrKyBzY2hlZF91bGUuYwkyIE9jdCAyMDA3 IDA3OjU5OjUwIC0wMDAwDQpAQCAtMjUwMiw4ICsyNTAyLDEwIEBADQogc2No ZWRfcmVsaW5xdWlzaChzdHJ1Y3QgdGhyZWFkICp0ZCkNCiB7DQogCXRocmVh ZF9sb2NrKHRkKTsNCisjaWYgMA0KIAlpZiAodGQtPnRkX3ByaV9jbGFzcyA9 PSBQUklfVElNRVNIQVJFKQ0KIAkJc2NoZWRfcHJpbyh0ZCwgUFJJX01BWF9U SU1FU0hBUkUpOw0KKyNlbmRpZg0KIAlTQ0hFRF9TVEFUX0lOQyhzd2l0Y2hf cmVsaW5xdWlzaCk7DQogCW1pX3N3aXRjaChTV19WT0wsIE5VTEwpOw0KIAl0 aHJlYWRfdW5sb2NrKHRkKTsNCg== --0-1571468418-1191312477=:6669--