From owner-freebsd-stable@freebsd.org Mon Feb 12 18:30:35 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 C750FF0FB22 for ; Mon, 12 Feb 2018 18:30:35 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from pmta2.delivery6.ore.mailhop.org (pmta2.delivery6.ore.mailhop.org [54.200.129.228]) (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 5947083B94 for ; Mon, 12 Feb 2018 18:30:35 +0000 (UTC) (envelope-from ian@freebsd.org) X-MHO-User: c231746b-1022-11e8-b951-f99fef315fd9 X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 67.177.211.60 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (unknown [67.177.211.60]) by outbound2.ore.mailhop.org (Halon) with ESMTPSA id c231746b-1022-11e8-b951-f99fef315fd9; Mon, 12 Feb 2018 18:30:11 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id w1CIUWHt035207; Mon, 12 Feb 2018 11:30:32 -0700 (MST) (envelope-from ian@freebsd.org) Message-ID: <1518460232.94819.25.camel@freebsd.org> Subject: Re: FreeBSD on 64MB memory From: Ian Lepore To: Eugene Grosbein , Ask =?ISO-8859-1?Q?Bj=F8rn?= Hansen Cc: freebsd-stable@freebsd.org Date: Mon, 12 Feb 2018 11:30:32 -0700 In-Reply-To: <5A81D72A.7020408@grosbein.net> References: <5FB97479-C49D-4C6E-8416-015ECA656C14@develooper.com> <5A8123CE.9050609@grosbein.net> <5A81D72A.7020408@grosbein.net> Content-Type: text/plain; charset="iso-8859-13" X-Mailer: Evolution 3.18.5.1 FreeBSD GNOME Team Port Mime-Version: 1.0 Content-Transfer-Encoding: 8bit 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: Mon, 12 Feb 2018 18:30:35 -0000 On Tue, 2018-02-13 at 01:04 +0700, Eugene Grosbein wrote: > 13.02.2018 0:38, Ask Bj¸rn Hansen wrote: > > > > > > > > > > > > > > I have an old Soekris system with 64MB memory that I upgraded from 10.3 to 11.1 recently. Since then it˙s started hanging every few days. > > > Please show output of commands: > > > > > > grep memory /var/run/dmesg.boot > > real memory  = 67108864 (64 MB) > > avail memory = 42098688 (40 MB) > > > > The 24MB are for the kernel?  I wonder my 11.1 kernel is less discriminating with what I compiled in... > You should be running custom kernel with absolute minimum. > For example, use "options NO_SWAPPING" to compile out swapping code if your system > cannot have any swap area. > > > > > > > > > top -ores -d1 > > Shortly after boot: > > > > last pid:  1008;  load averages:  0.57,  0.62,  0.53    up 0+00:19:31  06:24:50 > > 8 processes:   1 running, 7 sleeping > > CPU:     % user,     % nice,     % system,     % interrupt,     % idle > > Mem: 9084K Active, 3644K Inact, 29M Wired, 4862K Buf, 492K Free > > Swap: > > > >   PID USERNAME  THR PRI NICE   SIZE    RES STATE    TIME    WCPU COMMAND > >   911 root        1  22    0  8816K  8844K select   0:39   4.20% ntpd > Your Soekris system can live without bloated ntpd, use ntpdate or try sntp > to periodically check your clock with cron, unless you need to re-distribute > NTP to your LAN. > Heh.  I think 1) you don't realize you're saying "you don't need ntpd" to, and 2) you didn't notice the hostname of the system in some of the debugging output (ntp1.us.grundclock.com).  :) 24MB physmem gone before the kernel even starts seems a little much.  I wonder if some amount of that is being eaten up by a video frame buffer that maybe isn't needed on a headless system? -- Ian