From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 10 17:21:57 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9CADA106564A for ; Tue, 10 Apr 2012 17:21:57 +0000 (UTC) (envelope-from sushanth_rai@yahoo.com) Received: from nm25-vm0.bullet.mail.sp2.yahoo.com (nm25-vm0.bullet.mail.sp2.yahoo.com [98.139.91.228]) by mx1.freebsd.org (Postfix) with SMTP id 711478FC08 for ; Tue, 10 Apr 2012 17:21:57 +0000 (UTC) Received: from [98.139.91.70] by nm25.bullet.mail.sp2.yahoo.com with NNFMP; 10 Apr 2012 17:21:57 -0000 Received: from [98.139.44.66] by tm10.bullet.mail.sp2.yahoo.com with NNFMP; 10 Apr 2012 17:21:57 -0000 Received: from [127.0.0.1] by omp1003.access.mail.sp2.yahoo.com with NNFMP; 10 Apr 2012 17:21:57 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 186529.38023.bm@omp1003.access.mail.sp2.yahoo.com Received: (qmail 71065 invoked by uid 60001); 10 Apr 2012 17:21:56 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1334078516; bh=NK22YYV5N9tBpfdPmHjRo2iYSribMSWIlO8q+zHEtMg=; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=vH47c4wZA2V6RrbLHLnRgB/fMEXgzcgEoZRUUGqHevB1SUH+45n7JRoAUn8uPnW72piipG/sZIBFdrqMZ2prKoUw4J9EsxygA3HUWUKtqHPylmXkGr1n7kXvp2YcZ3HVnYbkl67841ypzVWXz6VJKNIMH7KFFbD0kZyksHTqrvA= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Message-ID:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=e2Ch2lvAz5jc7Trj5P9jkzqFMGYmAi26KSq9CBeXBnMYkyx4AR9g+10ctJHX0+QRIUNwpwglRX6ljWBvYBNE/NGbBVrnFOXiPAHGnluW6VF3j/5K4PvYh9z8GeQGB6X+MGG/Ue0EpzKPoype68SuDJKzC7z8tBBMpmB8JHuePZI=; X-YMail-OSG: UFFLeRIVM1kbO6WKRRaHa1jy7EFrZWhB8pGjQBWlUjz83VH _cmFc8jks6S15TZqkcqgzztDVt6ojSomM.QQ6VfYcQKNl8YfL6_BhebwQZHk VhPatYPnIN9bzzVFPAKyDnLkuLhpM_Wk5zaHrz6iRAdYSsEY64kXHZRYpHvn B0z.DExioEO7bZflWtK7dxCifPwl2UAlwdGdhSAovqycruF0FdL.RFY81o9M edIPi3fMEkyt7IJVTkOqkAnhL_J3kJOgSPMM9.ykjdeX1wiEFzFOMCouv9U6 6TR59g0BiwNJrhdQzaQizlcXEcVOcU8yc9tvSu.igq1cWqHNh04t4RKkvbpG SvyUFyHZP8tzLpGKcSVuRIrkcZTve7IESTtsUQMS0A56akL6a3JOVnqij6Rn kCACbu.RLW_ITy3qBeML4LIpSDO73CSIj.xq9ul_AlMVjlMemfXj0Z4Y1iHX XsNWk Received: from [75.62.238.5] by web180014.mail.gq1.yahoo.com via HTTP; Tue, 10 Apr 2012 10:21:52 PDT X-Mailer: YahooMailClassic/15.0.5 YahooMailWebService/0.8.117.340979 Message-ID: <1334078512.27271.YahooMailClassic@web180014.mail.gq1.yahoo.com> Date: Tue, 10 Apr 2012 10:21:52 -0700 (PDT) From: Sushanth Rai To: John Baldwin In-Reply-To: <201204100957.39465.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-hackers@freebsd.org Subject: Re: Startvation of realtime piority threads 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: Tue, 10 Apr 2012 17:21:57 -0000 Thanks. I'll try to back port locally.=0A=0ASushanth=0A=0A--- On Tue, 4/10/= 12, John Baldwin wrote:=0A=0A> From: John Baldwin =0A> Subject: Re: Startvation of realtime piority threads=0A> To:= "Sushanth Rai" =0A> Cc: freebsd-hackers@freebsd.or= g=0A> Date: Tuesday, April 10, 2012, 6:57 AM=0A> On Monday, April 09, 2012 = 4:32:24 pm=0A> Sushanth Rai wrote:=0A> > I'm using stock 7.2. The prioritie= s as defined in=0A> priority.h are in this range:=0A> > =0A> > /*=0A> >=A0 = * Priorities range from 0 to 255, but differences=0A> of less then 4 (RQ_PP= Q)=0A> >=A0 * are insignificant.=A0 Ranges are as=0A> follows:=0A> >=A0 *= =0A> >=A0 * Interrupt threads:=A0 =A0 =A0 =A0=0A> =A0=A0=A00 - 63=0A> >=A0 = * Top half kernel threads:=A0=0A> =A0=A0=A064 - 127=0A> >=A0 * Realtime use= r threads:=A0 =A0=0A> =A0=A0=A0128 - 159=0A> >=A0 * Time sharing user threa= ds:=A0=A0=A0160=0A> - 223=0A> >=A0 * Idle user threads:=A0 =A0 =A0 =A0=0A> = =A0=A0=A0224 - 255=0A> >=A0 *=0A> >=A0 * XXX If/When the specific interrupt= thread and=0A> top half thread ranges=0A> >=A0 * disappear, a larger range= can be used for user=0A> processes.=0A> >=A0 */=0A> > =0A> > The trouble i= s with vm_waitpfault(), which explicitly=0A> sleeps at PUSER.=0A> =0A> Ah, = yes, PUSER is the one Pxxx not in "top half kernel=0A> threads".=A0 You can= patch=0A> that locally, but you may have better lucking using 9.0 (or=0A> = backporting my=0A> fixes in 9.0 back to 7 or 8).=A0 They were too invasive= =0A> to backport to FreeBSD=0A> 7/8, but you could still do it locally (I'v= e used them at=0A> work on both 7 and 8).=0A> =0A> -- =0A> John Baldwin=0A>= _______________________________________________=0A> freebsd-hackers@freebs= d.org=0A> mailing list=0A> http://lists.freebsd.org/mailman/listinfo/freebs= d-hackers=0A> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe= @freebsd.org"=0A>