re: mbufs on 5.3-STABLE possible bug
-- Forwarded message -- From: Chris <[EMAIL PROTECTED]> Date: Wed, 2 Feb 2005 05:16:00 + Subject: Re: mbufs on 5.3-STABLE possible bug To: Bosko Milekic <[EMAIL PROTECTED]> 0 is supposed to mean unlimited, whilst leaving it blank(commented out) is auto. Or at least the docs say that. If I am wrong the docs need updating and it is defenitly a bug as netstat -m output is different. Chris On Tue, 1 Feb 2005 10:37:18 -0500, Bosko Milekic <[EMAIL PROTECTED]> wrote: > > > On Tue, Feb 01, 2005 at 01:18:38PM +, Chris wrote: > > Sorry, yes have tried it, I am still seeing a negative perofrmance > > difference with the setting on 0 but the gap is greatly reduced and > > its something that is a lot more acceptable, at most it has been 10% > > worse then if left on auto or set to a value. Let me know if there is > > any specific types of tests you want doing. > > > > Chris > > I'm not sure I understand. Setting it to zero _means_ "auto." > > I'll likely commit the patch. Thanks. > > -- > Bosko Milekic > [EMAIL PROTECTED] > [EMAIL PROTECTED] > ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: mbufs on 5.3-STABLE possible bug
On Tue, Feb 01, 2005 at 01:18:38PM +, Chris wrote: > Sorry, yes have tried it, I am still seeing a negative perofrmance > difference with the setting on 0 but the gap is greatly reduced and > its something that is a lot more acceptable, at most it has been 10% > worse then if left on auto or set to a value. Let me know if there is > any specific types of tests you want doing. > > Chris I'm not sure I understand. Setting it to zero _means_ "auto." I'll likely commit the patch. Thanks. -- Bosko Milekic [EMAIL PROTECTED] [EMAIL PROTECTED] ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: mbufs on 5.3-STABLE possible bug
Sorry, yes have tried it, I am still seeing a negative perofrmance difference with the setting on 0 but the gap is greatly reduced and its something that is a lot more acceptable, at most it has been 10% worse then if left on auto or set to a value. Let me know if there is any specific types of tests you want doing. Chris On Mon, 31 Jan 2005 22:15:09 -0500, Bosko Milekic <[EMAIL PROTECTED]> wrote: > > Can you please give an update? > > -Bosko > > On Fri, Jan 21, 2005 at 08:43:10PM +, Chris wrote: > > I apologise I have yet to test the patch, but will try and do so as > > soon as possible by the end of the weekend. > > > > Chris > > > > > > On Fri, 21 Jan 2005 12:52:19 -0500, Bosko Milekic > > <[EMAIL PROTECTED]> wrote: > > > > > > Can you please give an update? > > > > > > -Bosko > > > > > > On Sat, Jan 08, 2005 at 08:43:53PM +, Chris wrote: > > > > thanks I will try this out as soon as possible and report back. > > > > > > > > > > > > On Thu, 6 Jan 2005 17:38:54 -0500, Bosko Milekic > > > > <[EMAIL PROTECTED]> wrote: > > > > > > > > > > Please try the attached patch. It's not exactly perfect but it might > > > > > solve your problem. Let me know. > > > > > > > > > > -Bosko > > > > > > > > > > On Thu, Jan 06, 2005 at 02:12:33PM +, Chris wrote: > > > > > > Hi > > > > > > > > > > > > After reading the release notes and upgrading my server's I had set > > > > > > the following in my /boot/loader.conf. > > > > > > > > > > > > kern.ipc.nmbclusters="0" > > > > > > > > > > > > This is supposed to make the limit to unlimited as I understood from > > > > > > the docs, but a user on one of my server's reported slow download > > > > > > speeds he was testing with wget and fetch, so we compared with > > > > > > another > > > > > > FreeBSD server (5.2.1) on the same network and sure enough there > > > > > > was a > > > > > > massive difference (45mbit on the other server 5mbit on mine), I > > > > > > spent > > > > > > ages checking all my tweaks and changes I made comparing between > > > > > > the 2 > > > > > > server's and ended up checking my loader.conf and tried setting a > > > > > > value and leaving it as auto, both of these changes fixed the > > > > > > download > > > > > > speed issue but setting to "0" introduces the problem. > > > > > > > > > > > > Has anyone else noticed this? > > > > > > > > > > > > Chris > > > > > > ___ > > > > > > freebsd-stable@freebsd.org mailing list > > > > > > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > > > > > > To unsubscribe, send any mail to "[EMAIL PROTECTED]" > > > > > > > > > > -- > > > > > Bosko Milekic > > > > > [EMAIL PROTECTED] > > > > > [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > > > > -- > > > Bosko Milekic > > > [EMAIL PROTECTED] > > > [EMAIL PROTECTED] > > > > > -- > Bosko Milekic > [EMAIL PROTECTED] > [EMAIL PROTECTED] > ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: mbufs on 5.3-STABLE possible bug
Can you please give an update? -Bosko On Fri, Jan 21, 2005 at 08:43:10PM +, Chris wrote: > I apologise I have yet to test the patch, but will try and do so as > soon as possible by the end of the weekend. > > Chris > > > On Fri, 21 Jan 2005 12:52:19 -0500, Bosko Milekic > <[EMAIL PROTECTED]> wrote: > > > > Can you please give an update? > > > > -Bosko > > > > On Sat, Jan 08, 2005 at 08:43:53PM +, Chris wrote: > > > thanks I will try this out as soon as possible and report back. > > > > > > > > > On Thu, 6 Jan 2005 17:38:54 -0500, Bosko Milekic > > > <[EMAIL PROTECTED]> wrote: > > > > > > > > Please try the attached patch. It's not exactly perfect but it might > > > > solve your problem. Let me know. > > > > > > > > -Bosko > > > > > > > > On Thu, Jan 06, 2005 at 02:12:33PM +, Chris wrote: > > > > > Hi > > > > > > > > > > After reading the release notes and upgrading my server's I had set > > > > > the following in my /boot/loader.conf. > > > > > > > > > > kern.ipc.nmbclusters="0" > > > > > > > > > > This is supposed to make the limit to unlimited as I understood from > > > > > the docs, but a user on one of my server's reported slow download > > > > > speeds he was testing with wget and fetch, so we compared with another > > > > > FreeBSD server (5.2.1) on the same network and sure enough there was a > > > > > massive difference (45mbit on the other server 5mbit on mine), I spent > > > > > ages checking all my tweaks and changes I made comparing between the 2 > > > > > server's and ended up checking my loader.conf and tried setting a > > > > > value and leaving it as auto, both of these changes fixed the download > > > > > speed issue but setting to "0" introduces the problem. > > > > > > > > > > Has anyone else noticed this? > > > > > > > > > > Chris > > > > > ___ > > > > > freebsd-stable@freebsd.org mailing list > > > > > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > > > > > To unsubscribe, send any mail to "[EMAIL PROTECTED]" > > > > > > > > -- > > > > Bosko Milekic > > > > [EMAIL PROTECTED] > > > > [EMAIL PROTECTED] > > > > > > > > > > > > > > > > -- > > Bosko Milekic > > [EMAIL PROTECTED] > > [EMAIL PROTECTED] > > -- Bosko Milekic [EMAIL PROTECTED] [EMAIL PROTECTED] ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: mbufs on 5.3-STABLE possible bug
I apologise I have yet to test the patch, but will try and do so as soon as possible by the end of the weekend. Chris On Fri, 21 Jan 2005 12:52:19 -0500, Bosko Milekic <[EMAIL PROTECTED]> wrote: > > Can you please give an update? > > -Bosko > > On Sat, Jan 08, 2005 at 08:43:53PM +, Chris wrote: > > thanks I will try this out as soon as possible and report back. > > > > > > On Thu, 6 Jan 2005 17:38:54 -0500, Bosko Milekic > > <[EMAIL PROTECTED]> wrote: > > > > > > Please try the attached patch. It's not exactly perfect but it might > > > solve your problem. Let me know. > > > > > > -Bosko > > > > > > On Thu, Jan 06, 2005 at 02:12:33PM +, Chris wrote: > > > > Hi > > > > > > > > After reading the release notes and upgrading my server's I had set > > > > the following in my /boot/loader.conf. > > > > > > > > kern.ipc.nmbclusters="0" > > > > > > > > This is supposed to make the limit to unlimited as I understood from > > > > the docs, but a user on one of my server's reported slow download > > > > speeds he was testing with wget and fetch, so we compared with another > > > > FreeBSD server (5.2.1) on the same network and sure enough there was a > > > > massive difference (45mbit on the other server 5mbit on mine), I spent > > > > ages checking all my tweaks and changes I made comparing between the 2 > > > > server's and ended up checking my loader.conf and tried setting a > > > > value and leaving it as auto, both of these changes fixed the download > > > > speed issue but setting to "0" introduces the problem. > > > > > > > > Has anyone else noticed this? > > > > > > > > Chris > > > > ___ > > > > freebsd-stable@freebsd.org mailing list > > > > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > > > > To unsubscribe, send any mail to "[EMAIL PROTECTED]" > > > > > > -- > > > Bosko Milekic > > > [EMAIL PROTECTED] > > > [EMAIL PROTECTED] > > > > > > > > > > > -- > Bosko Milekic > [EMAIL PROTECTED] > [EMAIL PROTECTED] > ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: mbufs on 5.3-STABLE possible bug
Can you please give an update? -Bosko On Sat, Jan 08, 2005 at 08:43:53PM +, Chris wrote: > thanks I will try this out as soon as possible and report back. > > > On Thu, 6 Jan 2005 17:38:54 -0500, Bosko Milekic > <[EMAIL PROTECTED]> wrote: > > > > Please try the attached patch. It's not exactly perfect but it might > > solve your problem. Let me know. > > > > -Bosko > > > > On Thu, Jan 06, 2005 at 02:12:33PM +, Chris wrote: > > > Hi > > > > > > After reading the release notes and upgrading my server's I had set > > > the following in my /boot/loader.conf. > > > > > > kern.ipc.nmbclusters="0" > > > > > > This is supposed to make the limit to unlimited as I understood from > > > the docs, but a user on one of my server's reported slow download > > > speeds he was testing with wget and fetch, so we compared with another > > > FreeBSD server (5.2.1) on the same network and sure enough there was a > > > massive difference (45mbit on the other server 5mbit on mine), I spent > > > ages checking all my tweaks and changes I made comparing between the 2 > > > server's and ended up checking my loader.conf and tried setting a > > > value and leaving it as auto, both of these changes fixed the download > > > speed issue but setting to "0" introduces the problem. > > > > > > Has anyone else noticed this? > > > > > > Chris > > > ___ > > > freebsd-stable@freebsd.org mailing list > > > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > > > To unsubscribe, send any mail to "[EMAIL PROTECTED]" > > > > -- > > Bosko Milekic > > [EMAIL PROTECTED] > > [EMAIL PROTECTED] > > > > > > -- Bosko Milekic [EMAIL PROTECTED] [EMAIL PROTECTED] ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: mbufs on 5.3-STABLE possible bug
thanks I will try this out as soon as possible and report back. On Thu, 6 Jan 2005 17:38:54 -0500, Bosko Milekic <[EMAIL PROTECTED]> wrote: > > Please try the attached patch. It's not exactly perfect but it might > solve your problem. Let me know. > > -Bosko > > On Thu, Jan 06, 2005 at 02:12:33PM +, Chris wrote: > > Hi > > > > After reading the release notes and upgrading my server's I had set > > the following in my /boot/loader.conf. > > > > kern.ipc.nmbclusters="0" > > > > This is supposed to make the limit to unlimited as I understood from > > the docs, but a user on one of my server's reported slow download > > speeds he was testing with wget and fetch, so we compared with another > > FreeBSD server (5.2.1) on the same network and sure enough there was a > > massive difference (45mbit on the other server 5mbit on mine), I spent > > ages checking all my tweaks and changes I made comparing between the 2 > > server's and ended up checking my loader.conf and tried setting a > > value and leaving it as auto, both of these changes fixed the download > > speed issue but setting to "0" introduces the problem. > > > > Has anyone else noticed this? > > > > Chris > > ___ > > freebsd-stable@freebsd.org mailing list > > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > > To unsubscribe, send any mail to "[EMAIL PROTECTED]" > > -- > Bosko Milekic > [EMAIL PROTECTED] > [EMAIL PROTECTED] > > > ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: mbufs on 5.3-STABLE possible bug
Please try the attached patch. It's not exactly perfect but it might solve your problem. Let me know. -Bosko On Thu, Jan 06, 2005 at 02:12:33PM +, Chris wrote: > Hi > > After reading the release notes and upgrading my server's I had set > the following in my /boot/loader.conf. > > kern.ipc.nmbclusters="0" > > This is supposed to make the limit to unlimited as I understood from > the docs, but a user on one of my server's reported slow download > speeds he was testing with wget and fetch, so we compared with another > FreeBSD server (5.2.1) on the same network and sure enough there was a > massive difference (45mbit on the other server 5mbit on mine), I spent > ages checking all my tweaks and changes I made comparing between the 2 > server's and ended up checking my loader.conf and tried setting a > value and leaving it as auto, both of these changes fixed the download > speed issue but setting to "0" introduces the problem. > > Has anyone else noticed this? > > Chris > ___ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "[EMAIL PROTECTED]" -- Bosko Milekic [EMAIL PROTECTED] [EMAIL PROTECTED] Index: src/sys/kern/kern_mbuf.c === RCS file: /home/ncvs/src/sys/kern/kern_mbuf.c,v retrieving revision 1.4 diff -u -r1.4 kern_mbuf.c --- src/sys/kern/kern_mbuf.c20 Sep 2004 08:52:04 - 1.4 +++ src/sys/kern/kern_mbuf.c6 Jan 2005 22:37:34 - @@ -1,5 +1,5 @@ /*- - * Copyright (c) 2004 + * Copyright (c) 2004, 2005 * Bosko Milekic <[EMAIL PROTECTED]>. * All rights reserved. * @@ -85,13 +85,16 @@ int nmbclusters; struct mbstat mbstat; +static int nmbclusters2; + static void tunable_mbinit(void *dummy) { /* This has to be done before VM init. */ nmbclusters = 1024 + maxusers * 64; - TUNABLE_INT_FETCH("kern.ipc.nmbclusters", &nmbclusters); + nmbclusters2 = nmbclusters; + TUNABLE_INT_FETCH("kern.ipc.nmbclusters", &nmbclusters2); } SYSINIT(tunable_mbinit, SI_SUB_TUNABLES, SI_ORDER_ANY, tunable_mbinit, NULL); @@ -141,8 +144,8 @@ NULL, NULL, MSIZE - 1, UMA_ZONE_MAXBUCKET); zone_clust = uma_zcreate("MbufClust", MCLBYTES, mb_ctor_clust, mb_dtor_clust, NULL, NULL, UMA_ALIGN_PTR, UMA_ZONE_REFCNT); - if (nmbclusters > 0) - uma_zone_set_max(zone_clust, nmbclusters); + if (nmbclusters2 > 0) + uma_zone_set_max(zone_clust, nmbclusters2); zone_pack = uma_zsecond_create("Packet", mb_ctor_pack, mb_dtor_pack, mb_init_pack, mb_fini_pack, zone_mbuf); ___ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "[EMAIL PROTECTED]"