From owner-freebsd-hackers@FreeBSD.ORG Wed Jun 27 00:22:44 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 669CE1065673 for ; Wed, 27 Jun 2012 00:22:44 +0000 (UTC) (envelope-from info@martenvijn.nl) Received: from smtp-vbr8.xs4all.nl (smtp-vbr8.xs4all.nl [194.109.24.28]) by mx1.freebsd.org (Postfix) with ESMTP id F1DA98FC15 for ; Wed, 27 Jun 2012 00:22:43 +0000 (UTC) Received: from [192.168.179.22] (vijn.xs4all.nl [80.101.129.129]) (authenticated bits=0) by smtp-vbr8.xs4all.nl (8.13.8/8.13.8) with ESMTP id q5R0M1as061831 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 27 Jun 2012 02:22:07 +0200 (CEST) (envelope-from info@martenvijn.nl) Message-ID: <4FEA5229.2060308@martenvijn.nl> Date: Wed, 27 Jun 2012 02:22:01 +0200 From: Marten Vijn User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by XS4ALL Virus Scanner Subject: Re: Freeze when running freebsd-update X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jun 2012 00:22:44 -0000 On 06/27/2012 12:32 AM, Robert Simmons wrote: > I've run into a totally reproducible freeze in 9.0. There are a > number of variables involved, but I'm able to reproduce this freeze > 100% of the time. > > I'm installing very small servers in a Xen HVM virtualization > environment. Each instance has 128M memory and 4G of disk space. > There is 384M of swap encrypted using geli_swap_flags="-d -l 256 -s > 4096". > > The rest of the disk space is encrypted with "geli init -b -v -a > hmac/sha256 -l 256 -s 4096 /dev/ada0p4". > > After I've installed a VPS in this way, I run the freebsd-update fetch > command and it freezes at: > Applying patches... > > I've been trying to diagnose the problem by running top and watching > what happens during this stage. I noticed the following: > > 1) the box runs out of physical memory at this stage (totally > expected, that's why there is sufficient swap space). > 2) All the processes except 2 sleep: > 31 processes: 1 running, 29 sleeping, 1 waiting > 3) the box is responsive to hitting enter at the console (it produces > another login: prompt) > 4) sshd is asleep, so I can't ssh into the box > 5) if I try to login to the console, it lets me enter a username then > locks up totally, it does not present me with a password: prompt. > 6) it has not run out of swap, nowhere close: > Mem: 54M Active, 9524K Inact, 41M Wired, 24K Cache, 21M Buf, 32K Free > Swap: 384M Total, 6452K Used, 378M Free, 1% Inuse > 7) the moment it runs out of physical memory it begins being unresponsive > > Any idea what might be going on here? no sorry, but I may have encounted the same issue/behavior in a jail setup on freebsd 9.0 some month ago: jails stacked ro-mount and unionfs. In the url below is POC script to build 50 jails. I used (old) i386 hardware. More memory and faster cpu seems to delay this behavior, adding more jails on a bit faster system. http://martenvijn.nl/mk_jail.sh kind regards, Marten > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"