Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Feb 2017 15:56:46 -0600
From:      Karl Denninger <karl@denninger.net>
To:        wynkoop@wynn.com
Cc:        freebsd-arm@freebsd.org
Subject:   Re: Out of swap - NOT
Message-ID:  <6cf27c78-dc32-6282-d244-9158d89d3694@denninger.net>
In-Reply-To: <assp.0215fa8ec5.20170211164459.1d0af6b1@pearl>
References:  <20170211023050.387b9cc7@pearl> <e4d1a59b-e8f6-78ef-2508-ee5282cd06de@denninger.net> <assp.0215fa8ec5.20170211164459.1d0af6b1@pearl>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]

On 2/11/2017 15:44, freebsd-arm@wynn.com wrote:
> On Sat, 11 Feb 2017 07:54:10 -0600
> Karl Denninger <karl@denninger.net> wrote:
>
>
> > In all probability it's really out.  Remember that RAM allocation has
> > to either come from physical RAM or swap.  If the requested allocation
> > cannot be made then you get this exact situation, and it happens
> > quickly enough that you won't see it most of the time with monitoring
> > tools.
>
> > What's probably biting you is temporary file space, which comes from
> > RAM since it's mounted on a ramdisk, and exhausts it.  I've run into
> > this same situation trying to build on a Pi2.
>
> > My recommendation? Connect a USB disk drive to the system and put a
> > swap partition on there. Or cross-compile (which is what I do) on a
> > nice big AMD64 box since that is MUCH faster.
>
> Greeting-
>
> I find it really hard to believe that I could be running out of swap,
> but I suppose as a test I can stick additional swap on my USB drive.
> There is already as I said 3xRam swap on the sd card.  Yes perhaps my
> pstat did not run at the exact right instant to see the OOM happen, but
> having started on PDP 11/70s running BSD 4.1 I have never seen a kernel
> build actually take that much memory.
>
> This exercise is not really about getting a new kernel built.  Yes I
> could cross on my Mac or one of my FreeBSD servers.  It is about
> beating on the system to see what it can do and how stable it is.  When
> last I beat on USB disks under FreeBSD ARM the disks would just
> disappear as far as the kernel was concerned.  So I see there is much
> improvement between 10 and 12.  
>
> This really begs the question how can my 586 at 133Mhz with 48M of ram
> and 96M  of swap build it's kernel (freebsd) and an arm box with more
> real ram and 3x swap gets OOM issues?
>
> -Brett
>
Where's your temp directory mounted?  By default that's usually on a
ramdisk (md) on these builds, and that will bite you in exactly this
fashion.

That's why I said to connect a USB disk drive; stick your temp (and swap
if you wish) on there and the problem should go away.

tmp on md is a wise selection for any device that has main storage on an
sd card as those things are both (very) slow and relatively fragile in
terms of writes.  However trying to buildworld/buildkernel there
requires a LOT of transient space and if you don't have it... boom-boom.

-- 
Karl Denninger
karl@denninger.net <mailto:karl@denninger.net>
/The Market Ticker/
/[S/MIME encrypted email preferred]/



[-- Attachment #2 --]
0	*H
010
	`He0	*H
\0X0@=0
	*H
010	UUS10UFlorida10U	Niceville10U
Cuda Systems LLC10UCuda Systems LLC CA1"0 	*H
	Cuda Systems LLC CA0
161218194535Z
211217194535Z0W10	UUS10UFlorida10U
Cuda Systems LLC10Ukarl@denninger.net0"0
	*H
0
͍fd`1ie6";fSz`5¹/?{=Ӵowjħ_fnӴMG\ҢҖ4ib}>@mJo&mM;
Q9U cj]p퐆W.2E=
^¢tzĄ'5i7_`~#dY
`]R]N%R}EXzqV@[oN	T>5AwYˡA"\v&YG]+($p:M,T?=mJkMљg*ym
L!J[./d׷?W^LysD'1
+V'~{-SSX=q-f=%&V<m4BeSet|
l2m 6iO{wv
+aHXˈ5=~é*C!?uJr3tb'3`Oe)üLxt&3N526llU
.|Cp[l?007++0)0'+0http://cudasystems.net:88880	U00	`HB0U0,	`HB
OpenSSL Generated Certificate0U/Zi
0GhG0U#0$q}ݽʒm50U0karl@denninger.net0
	*H
b%X%gwq	
ɁэrK[DMJ35W6
sz8d|qB2Cyw2PbV}
â[!W{HD7oD.TZ'w6~g( -,]R8P{*[f<1=7jGj9铚~3f2AʺN	k~@vz^j(>ͺyh2y{/9}4.45#S|<fW!.,Bss*Q+h=}l@	"q "M&6J5*,G {hɫjbNgǠ.ЃXȶ4$O.5evHlZba!4eE!x|Za1򹿈nZ5TuPvW|#G+	DZpI7S'n0 haGa@vZ	e|]Cu+))vRyY100010	UUS10UFlorida10U	Niceville10U
Cuda Systems LLC10UCuda Systems LLC CA1"0 	*H
	Cuda Systems LLC CA=0
	`HeM0	*H
	1	*H
0	*H
	1
170211215646Z0O	*H
	1B@ejs.C0ّŢjcq0r3C:xϓV /S,XɈ%0l	*H
	1_0]0	`He*0	`He0
*H
0*H
0
*H
@0+0
*H
(0	+710010	UUS10UFlorida10U	Niceville10U
Cuda Systems LLC10UCuda Systems LLC CA1"0 	*H
	Cuda Systems LLC CA=0*H
	1010	UUS10UFlorida10U	Niceville10U
Cuda Systems LLC10UCuda Systems LLC CA1"0 	*H
	Cuda Systems LLC CA=0
	*H
Ìt'9Oظ#jͳ=vJ2]u>?v*ei~,I0;("2i
As`H`C7wO.$P$ó>i-ima;Jx&Y-UA+fw]G+$35ZiPVW]#+/_>@VnijmL,U`~`:]uG 'u/xr$Zan:ESIv2H)4.ujiuYُ(;泥Fsӫn|pq]
Bd&Fr*G78H6/`)3>|IQ'aOjPMsAsrmШN6pΧ|0ԎٱFۏQ_8EX2VMm{[fd!(Y	OJDM+5iZϔW^e]p`v2ZIuTNtPEh/i$^(ue=&Ew"L;KEZs`ҒzMHc
help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6cf27c78-dc32-6282-d244-9158d89d3694>