From owner-freebsd-stable@FreeBSD.ORG Mon Mar 11 16:40:22 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id CB67B39B for ; Mon, 11 Mar 2013 16:40:22 +0000 (UTC) (envelope-from nonesuch@longcount.org) Received: from mail-we0-x22d.google.com (mail-we0-x22d.google.com [IPv6:2a00:1450:400c:c03::22d]) by mx1.freebsd.org (Postfix) with ESMTP id 51F95EFA for ; Mon, 11 Mar 2013 16:40:22 +0000 (UTC) Received: by mail-we0-f173.google.com with SMTP id x51so3695919wey.32 for ; Mon, 11 Mar 2013 09:40:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-received:x-originating-ip:in-reply-to:references :date:message-id:subject:from:to:content-type:x-gm-message-state; bh=tzqdtPZlTZQ65Xd7a0PESRNMLdu05GPJGmLJAQ0drzc=; b=ERz2sQ2hLFFB1KF+AduU9hOzsDRvcY5iqrT3Y2XF1r4lnHpERxnoR9L2nEkXZlvyr2 g5SzAWCmXsfob5S4Fqb+p7HJ6zAnxrZaKLJXo3OwAkMr0rstRkDvCe+1TBXVlvlRQ/WN 3M1UFJahQ/UBcRqrhDck+gYEoxFtzbjiJp5qLOWO/4SvgS1Ha/F4YsjGjdZ9ZmCI8vs6 NHuo0bdDUJvN2xJxvgVxqFfUPbfA/R/mGJjPq1KtENqmfGAPWTaACSijZfwCW1QFZqMj tgbZHvqVfqX6X1WqmYzP8BvRrVsgquENkBldS40wEhWL7a2nH8bhJ5Ba4jnm1ljmeWWW WINg== MIME-Version: 1.0 X-Received: by 10.180.81.2 with SMTP id v2mr13967919wix.17.1363020021480; Mon, 11 Mar 2013 09:40:21 -0700 (PDT) Received: by 10.216.33.67 with HTTP; Mon, 11 Mar 2013 09:40:21 -0700 (PDT) X-Originating-IP: [209.66.78.50] In-Reply-To: References: Date: Mon, 11 Mar 2013 12:40:21 -0400 Message-ID: Subject: Re: netisr issues From: Mark Saad To: FreeBSD-Stable ML Content-Type: text/plain; charset=UTF-8 X-Gm-Message-State: ALoCoQnEvg9FtOGnDTWjQXULzPdT/1HDrKJ8fIXhVyDcMFWiiF9NSdm2ywQFTNvgJdLQJuy8AJZx X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Mar 2013 16:40:22 -0000 On Mon, Mar 11, 2013 at 12:26 PM, Freddie Cash wrote: > I seem to recall that the method for setting "direct" changed so that it's > not a binary option (net.isr.direct), but instead is a policy setting now > (net.isr.dispatch). Try: > > net.isr.dispatch="direct" > > That's what's set on our 9.1-STABLE systems: > # sysctl net.isr > net.isr.numthreads: 8 > net.isr.maxprot: 16 > net.isr.defaultqlimit: 256 > net.isr.maxqlimit: 10240 > net.isr.bindthreads: 1 > net.isr.maxthreads: 8 > net.isr.direct: 0 > net.isr.direct_force: 0 > net.isr.dispatch: direct > > # netstat -Q | head > Configuration: > Setting Current Limit > Thread count 8 8 > > Default queue limit 256 10240 > Dispatch policy direct n/a > Threads bound to CPUs enabled n/a > > > > On Mon, Mar 11, 2013 at 9:22 AM, Freddie Cash wrote: >> >> You're right. I was looking at different net.isr oids, not the _direct >> ones. My bad. >> >> >> On Mon, Mar 11, 2013 at 9:17 AM, Mark Saad wrote: >>> >>> On Mon, Mar 11, 2013 at 12:11 PM, Freddie Cash wrote: >>> > Works if you set them in /etc/sysctl.conf. Haven't looked into it, but >>> > I >>> > think there's something in the startup that sets them to 0 after the >>> > kernel >>> > is loaded, so the loader.conf settings are overwritten. >>> > >>> > >>> > On Mon, Mar 11, 2013 at 7:42 AM, Mark Saad >>> > wrote: >>> >> >>> >> All >>> >> I am looking for some guidance on how to turn netisr back on, on a >>> >> 9.1-RELEASE and 9.1-STABLE box. It looks it stopped working as it did >>> >> in >>> >> prior versions of FreeBSD . >>> >> I tested this on 9.1-RELEASE and 9.1-STABLE #0 r247804 built last >>> >> monday. >>> >> >>> >> My question is this. If I enable the direct option in boot/loader.conf >>> >> via >>> >> this >>> >> >>> >> net.isr.direct="1" >>> >> net.isr.direct_force="1" >>> >> >>> >> I do not get any expected result. >>> >> >>> >> root@chambers:~ # sysctl net.isr.direct >>> >> net.isr.direct: 0 >>> >> root@chambers:~ # sysctl net.isr.direct_force >>> >> net.isr.direct_force: 0 >>> >> >>> >> root@chambers:~ # netstat -Q >>> >> Configuration: >>> >> Setting Current Limit >>> >> Thread count 1 1 >>> >> Default queue limit 256 10240 >>> >> Dispatch policy direct n/a >>> >> Threads bound to CPUs disabled n/a >>> >> >>> >> .... >>> >> >>> >> >>> >> Am I missing something ? >>> >> >>> >> >>> >> -- >>> >> mark saad | nonesuch@longcount.org >>> >> _______________________________________________ >>> >> freebsd-stable@freebsd.org mailing list >>> >> http://lists.freebsd.org/mailman/listinfo/freebsd-stable >>> >> To unsubscribe, send any mail to >>> >> "freebsd-stable-unsubscribe@freebsd.org" >>> > >>> > >>> > >>> > >>> > -- >>> > Freddie Cash >>> > fjwcash@gmail.com >>> >>> Freddie >>> When I tried to set them in /etc/sysctl.conf , sysctl stated they >>> were read-only . >>> >>> [root@mkr2 /etc]# sysctl -w net.isr.direct=1 >>> sysctl: oid 'net.isr.direct' is read only >>> >>> >>> [root@mkr2 /etc]# sysctl -w net.isr.direct_force=1 >>> sysctl: oid 'net.isr.direct_force' is read only >>> >>> -- >>> mark saad | nonesuch@longcount.org >>> _______________________________________________ >>> freebsd-stable@freebsd.org mailing list >>> http://lists.freebsd.org/mailman/listinfo/freebsd-stable >>> To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" >> >> >> >> >> -- >> Freddie Cash >> fjwcash@gmail.com > > > > > -- > Freddie Cash > fjwcash@gmail.com Freddie So should I be adjusting the numbers of threads or is this determined somewhere ? -- mark saad | nonesuch@longcount.org