From owner-freebsd-embedded@FreeBSD.ORG Mon May 18 04:02:20 2015 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id ADFA1E98; Mon, 18 May 2015 04:02:20 +0000 (UTC) Received: from mail-ie0-x236.google.com (mail-ie0-x236.google.com [IPv6:2607:f8b0:4001:c03::236]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7A0FD185B; Mon, 18 May 2015 04:02:20 +0000 (UTC) Received: by iesa3 with SMTP id a3so73912015ies.2; Sun, 17 May 2015 21:02:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=BzDSa/MSQorJIBcTwYYC+QSDzUZ8uHEZqcEjQNm9hoE=; b=VGhVxZmYJ90LB9Osi2Y5BNObtRfYZYDA7nwik/ycPcNjz+G5ysZpwRcXCTO7XSInvX OYBJMwdvEv9bYAnZXHRQozbZeJg7VNms9it4GRLcYQBHYNs1s7vW0UnRe7bpjjma3eFI 1V4mHeKGedS/oz2zsIapa/AaeqAZ7Cc1HH/fA2OQxMx8BjDANiMsMvZFRTuNQtI/Eukt F5wa0xnqFlFpY8UTrjZJspMjbTWMmvqTf0qorvLbwXegBoiq2nUj0KOpK/AX9pIaiAyJ IeZKZBS13BlWB7nmB7DLI11aMhXQdlMbKuH6yoHBhGZYuVC/U4NA2VmskN8GbvZRKK0T T3BQ== MIME-Version: 1.0 X-Received: by 10.50.114.9 with SMTP id jc9mr11795562igb.49.1431921739933; Sun, 17 May 2015 21:02:19 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.36.38.133 with HTTP; Sun, 17 May 2015 21:02:19 -0700 (PDT) Date: Sun, 17 May 2015 21:02:19 -0700 X-Google-Sender-Auth: quWqS572srV3PHz7N2wwYMjELYE Message-ID: Subject: Updates to freebsd-wifi-build From: Adrian Chadd To: "freebsd-mips@freebsd.org" , "freebsd-embedded@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 May 2015 04:02:20 -0000 Hi! I've churned out some changes to freebsd-wifi-build. The supported list is here: https://github.com/freebsd/freebsd-wifi-build/wiki/Supported-Boards (I'd like to add more hardware to the list, so just let me know if you have a favourite router.) The top level build instructions are here: https://github.com/freebsd/freebsd-wifi-build/wiki * it now checks for required packages before running * it installs into ../tftpboot/ instead of requiring the user to create /tftpboot/. I still have /tftpboot/ and I just 'cp -fv ../tftpboot/* /tftpboot/ after a build so I can use TFTP. * There's basic templating support now for rc.conf - because some boards (eg carambola2) don't have arge0 hooked up to anything useful. So to make the default build work, now the carambola2 uses arge1. * there's now VLAN and etherswitch support in the configuration file format. https://github.com/freebsd/freebsd-wifi-build/wiki/Config-Overview I have it up and running on my carambola 2 with the internal switch configuration. It's running with two VLANs, one on each ethernet switch port, coming back to arge1 and arge1.2 (VLAN 2.) I'm now going to throw it on the rest of my test hardware and tidy up whatever issues arise. It also was a good test experience - I finally have wraped my head around what Stefan and others did with etherswitch and the various different things that each switch type supports. Hopefully this leads to me writing some more documentation. I'd appreciate any and all testing that people may do with this stuff. All of my home APs are FreeBSD and have been for a couple of years. Next up - adding configuration language to configure ipfw and routing. -adrian From owner-freebsd-embedded@FreeBSD.ORG Wed May 20 16:28:25 2015 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 478E3F3F; Wed, 20 May 2015 16:28:25 +0000 (UTC) Received: from mail-ig0-x231.google.com (mail-ig0-x231.google.com [IPv6:2607:f8b0:4001:c05::231]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 14E121FED; Wed, 20 May 2015 16:28:25 +0000 (UTC) Received: by igbpi8 with SMTP id pi8so106863545igb.1; Wed, 20 May 2015 09:28:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=vGknbsLFhoIWTytJ0ju/8RQvjYAVTtqhOX7I55ad2O8=; b=gBee1G6D84l3g8ppruw9h3S5YJRRiQcuYyoR3pfpuYuovzrtZUJ/NuTwZ4N4WrCvNL +lzIr5CNzVAub61MtX5pwkT8bC6gEPI9gm9yVEfAMfMT0lqeiWLgXMr3BEoHL7ZSN3Is ZYtQJXGTzT6UEs4hwf077CqhhhFCM2WStbJuOGibO4Xa021WYM6x6fDdO9leniAy0Kcj SQUZPAWoFsYQMxiUiS9yYKm3WYOhjrKym8uFsOBLRd6SX7mYgIOhdB1uo7S5rt6Wivf4 8o6YLyFzzUMpOYb8mfqKY80FJJSHxtAny3HQOqAJf1985aJlBLGSII+6vAXjBao42LJk okWA== MIME-Version: 1.0 X-Received: by 10.43.163.129 with SMTP id mo1mr46067270icc.61.1432139304456; Wed, 20 May 2015 09:28:24 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.36.38.133 with HTTP; Wed, 20 May 2015 09:28:24 -0700 (PDT) Date: Wed, 20 May 2015 09:28:24 -0700 X-Google-Sender-Auth: heknrg_gRX8vsFxF9vYZyv8DXNw Message-ID: Subject: RFC: make UMTX hash table size configurable From: Adrian Chadd To: "freebsd-arch@freebsd.org" , "freebsd-embedded@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 May 2015 16:28:25 -0000 Hi, This patch makes the umtx hash table size configurable. It saves ~40k of footprint from embedded images. (I can't seem to get phabricator to create a diff based on a set of files, rather than the whole tree. Sigh.) adrian@lucy-11i386:~/work/freebsd/head-embedded/src % svn diff sys/kern/ sys/conf/options Index: sys/kern/kern_umtx.c =================================================================== --- sys/kern/kern_umtx.c (revision 282934) +++ sys/kern/kern_umtx.c (working copy) @@ -29,7 +29,7 @@ __FBSDID("$FreeBSD$"); #include "opt_compat.h" -#include "opt_umtx_profiling.h" +#include "opt_umtx.h" #include #include @@ -184,7 +184,11 @@ PRI_MAX_TIMESHARE : (td)->td_user_pri) #define GOLDEN_RATIO_PRIME 2654404609U +#ifdef UMTX_NUM_CHAINS +#define UMTX_CHAINS UMTX_NUM_CHAINS +#else #define UMTX_CHAINS 512 +#endif /* UMTX_NUM_CHAINS */ #define UMTX_SHIFTS (__WORD_BIT - 9) #define GET_SHARE(flags) \ Index: sys/conf/options =================================================================== --- sys/conf/options (revision 282934) +++ sys/conf/options (working copy) @@ -209,7 +209,8 @@ SYSVSHM opt_sysvipc.h SW_WATCHDOG opt_watchdog.h TURNSTILE_PROFILING -UMTX_PROFILING +UMTX_PROFILING opt_umtx.h +UMTX_NUM_CHAINS opt_umtx.h VFS_AIO VERBOSE_SYSINIT WLCACHE opt_wavelan.h From owner-freebsd-embedded@FreeBSD.ORG Wed May 20 16:35:45 2015 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 94CAA58E; Wed, 20 May 2015 16:35:45 +0000 (UTC) Received: from smtp.vangyzen.net (hotblack.vangyzen.net [199.48.133.146]) by mx1.freebsd.org (Postfix) with ESMTP id 79CCB1162; Wed, 20 May 2015 16:35:44 +0000 (UTC) Received: from marvin.lab.vangyzen.net (c-73-147-253-17.hsd1.va.comcast.net [73.147.253.17]) by smtp.vangyzen.net (Postfix) with ESMTPSA id F29C056467; Wed, 20 May 2015 11:35:43 -0500 (CDT) Message-ID: <555CB7F7.5070409@vangyzen.net> Date: Wed, 20 May 2015 12:36:07 -0400 From: Eric van Gyzen User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Adrian Chadd , "freebsd-arch@freebsd.org" , "freebsd-embedded@freebsd.org" Subject: Re: RFC: make UMTX hash table size configurable References: In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 May 2015 16:35:45 -0000 Adrian, Good idea. Looks good to me. Eric On 05/20/2015 12:28, Adrian Chadd wrote: > Hi, > > This patch makes the umtx hash table size configurable. It saves ~40k > of footprint from embedded images. > > (I can't seem to get phabricator to create a diff based on a set of > files, rather than the whole tree. Sigh.) > > adrian@lucy-11i386:~/work/freebsd/head-embedded/src % svn diff > sys/kern/ sys/conf/options > Index: sys/kern/kern_umtx.c > =================================================================== > --- sys/kern/kern_umtx.c (revision 282934) > +++ sys/kern/kern_umtx.c (working copy) > @@ -29,7 +29,7 @@ > __FBSDID("$FreeBSD$"); > > #include "opt_compat.h" > -#include "opt_umtx_profiling.h" > +#include "opt_umtx.h" > > #include > #include > @@ -184,7 +184,11 @@ > PRI_MAX_TIMESHARE : (td)->td_user_pri) > > #define GOLDEN_RATIO_PRIME 2654404609U > +#ifdef UMTX_NUM_CHAINS > +#define UMTX_CHAINS UMTX_NUM_CHAINS > +#else > #define UMTX_CHAINS 512 > +#endif /* UMTX_NUM_CHAINS */ > #define UMTX_SHIFTS (__WORD_BIT - 9) > > #define GET_SHARE(flags) \ > Index: sys/conf/options > =================================================================== > --- sys/conf/options (revision 282934) > +++ sys/conf/options (working copy) > @@ -209,7 +209,8 @@ > SYSVSHM opt_sysvipc.h > SW_WATCHDOG opt_watchdog.h > TURNSTILE_PROFILING > -UMTX_PROFILING > +UMTX_PROFILING opt_umtx.h > +UMTX_NUM_CHAINS opt_umtx.h > VFS_AIO > VERBOSE_SYSINIT > WLCACHE opt_wavelan.h > _______________________________________________ > freebsd-arch@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arch > To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org" > From owner-freebsd-embedded@FreeBSD.ORG Wed May 20 16:57:44 2015 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 3317D33A; Wed, 20 May 2015 16:57:44 +0000 (UTC) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9DC011447; Wed, 20 May 2015 16:57:43 +0000 (UTC) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.14.9/8.14.9) with ESMTP id t4KGvcN7002926 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Wed, 20 May 2015 19:57:38 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.9.2 kib.kiev.ua t4KGvcN7002926 Received: (from kostik@localhost) by tom.home (8.14.9/8.14.9/Submit) id t4KGvcws002925; Wed, 20 May 2015 19:57:38 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 20 May 2015 19:57:38 +0300 From: Konstantin Belousov To: Eric van Gyzen Cc: Adrian Chadd , "freebsd-arch@freebsd.org" , "freebsd-embedded@freebsd.org" Subject: Re: RFC: make UMTX hash table size configurable Message-ID: <20150520165738.GL2499@kib.kiev.ua> References: <555CB7F7.5070409@vangyzen.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <555CB7F7.5070409@vangyzen.net> User-Agent: Mutt/1.5.23 (2014-03-12) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tom.home X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 May 2015 16:57:44 -0000 On Wed, May 20, 2015 at 12:36:07PM -0400, Eric van Gyzen wrote: > Adrian, > > Good idea. Looks good to me. > > Eric > > On 05/20/2015 12:28, Adrian Chadd wrote: > > Hi, > > > > This patch makes the umtx hash table size configurable. It saves ~40k > > of footprint from embedded images. > > > > (I can't seem to get phabricator to create a diff based on a set of > > files, rather than the whole tree. Sigh.) > > > > adrian@lucy-11i386:~/work/freebsd/head-embedded/src % svn diff > > sys/kern/ sys/conf/options > > Index: sys/kern/kern_umtx.c > > =================================================================== > > --- sys/kern/kern_umtx.c (revision 282934) > > +++ sys/kern/kern_umtx.c (working copy) > > @@ -29,7 +29,7 @@ > > __FBSDID("$FreeBSD$"); > > > > #include "opt_compat.h" > > -#include "opt_umtx_profiling.h" > > +#include "opt_umtx.h" > > > > #include > > #include > > @@ -184,7 +184,11 @@ > > PRI_MAX_TIMESHARE : (td)->td_user_pri) > > > > #define GOLDEN_RATIO_PRIME 2654404609U > > +#ifdef UMTX_NUM_CHAINS > > +#define UMTX_CHAINS UMTX_NUM_CHAINS > > +#else > > #define UMTX_CHAINS 512 > > +#endif /* UMTX_NUM_CHAINS */ > > #define UMTX_SHIFTS (__WORD_BIT - 9) > > > > #define GET_SHARE(flags) \ > > Index: sys/conf/options > > =================================================================== > > --- sys/conf/options (revision 282934) > > +++ sys/conf/options (working copy) > > @@ -209,7 +209,8 @@ > > SYSVSHM opt_sysvipc.h > > SW_WATCHDOG opt_watchdog.h > > TURNSTILE_PROFILING > > -UMTX_PROFILING > > +UMTX_PROFILING opt_umtx.h > > +UMTX_NUM_CHAINS opt_umtx.h > > VFS_AIO > > VERBOSE_SYSINIT > > WLCACHE opt_wavelan.h It makes more sense to make the hash size a tunable. The hash mask would also need to be a variable.