From owner-freebsd-stable@freebsd.org Tue Jan 30 14:21:07 2018 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1A69AECCFAA for ; Tue, 30 Jan 2018 14:21:07 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8706A6E88B for ; Tue, 30 Jan 2018 14:21:06 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id w0UEKtXC018961 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 30 Jan 2018 16:20:58 +0200 (EET) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua w0UEKtXC018961 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id w0UEKtCp018960; Tue, 30 Jan 2018 16:20:55 +0200 (EET) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Tue, 30 Jan 2018 16:20:55 +0200 From: Konstantin Belousov To: Mike Karels Cc: Eugene Grosbein , freebsd-stable@freebsd.org, Andre Albsmeier Subject: Re: i386 with 4GB RAM: less than 2GB available on A2SAV (Intel Atom E3940) Message-ID: <20180130142055.GG97752@kib.kiev.ua> References: <5A706834.8030405@grosbein.net> <201801301354.w0UDsfeG062401@mail.karels.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201801301354.w0UDsfeG062401@mail.karels.net> User-Agent: Mutt/1.9.2 (2017-12-15) 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-stable@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Jan 2018 14:21:07 -0000 On Tue, Jan 30, 2018 at 07:54:41AM -0600, Mike Karels wrote: > > On 30.01.2018 13:59, Andre Albsmeier wrote: > > > >> Also, I'd like to know reasons that made you stick to 32 bit OS > > >> as we have pretty good support for 32 bit applications running under 64 bit system. > > > > > > I (still) have 32 bit machines and don't want to maintain 2 userlands. > > > Each machine has its own kernel but userland (updated via nfs) must > > > remain 32 bit. > > > > > > Or is it possible to boot a 64 bit kernel and have everything else in > > > 32 bit? > > > I have not tried "everything else in 32 bit", there may be some rough edges > > dealing with run-time linker but you can try. > > > /sbin/init is statically linked and it should work with kernel having option COMPAT_FREEBSD32. > > /bin/sh may be OK too provided /libexec/ld-elf32.so.1 is in place. > > > You should really consider switching to 64 bit kernel for such hardware. > > You definitely cannot run all of userland in 32-bit mode. There are many > sysadin programs that have incompatible syscall interfaces, starting with > mount, ifconfig, ps, route, netstat, etc (probably 50 total). Unless they > were all statically linked, you would have to install the 64-bit shared > libraries, moving the 32-bit libraries to /lib32 and /usr/lib32, and > switching around /libexec/ld-elf*. ps(8) compatibility for compat32 is nearly perfect, mount (in its nmount syscall variant) also works. There is no issue with /libexec/ld-elf.so.1 being 32bit, whatever rumors whoever tried to spread. Yes, networking administrative interfaces are not functional for compat32. This precludes both ifconfig(8) and route(8) from operating. Also, firewall management tools, for all three FreeBSD firewalls, can only work with matching kernel. > > Or, if you really want the userland to be the same, you could use a PAE > kernel. > > Mike > _______________________________________________ > freebsd-stable@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"