From nobody@FreeBSD.org  Wed Jan 30 09:03:38 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	by hub.freebsd.org (Postfix) with ESMTP id 6D4D48F2
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 30 Jan 2013 09:03:38 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 2A39A8CE
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 30 Jan 2013 09:03:38 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r0U93csx063737
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 30 Jan 2013 09:03:38 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id r0U93bk5063736;
	Wed, 30 Jan 2013 09:03:37 GMT
	(envelope-from nobody)
Message-Id: <201301300903.r0U93bk5063736@red.freebsd.org>
Date: Wed, 30 Jan 2013 09:03:37 GMT
From: Alex Verbod <Alexander.Verbod@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [regression]Unknown and undocumented high RAM memory requirement prevent installation and running of FreeBSD 9.1 release on system with RAM less than 256Mb
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         175694
>Category:       kern
>Synopsis:       [regression]Unknown and undocumented high RAM memory requirement prevent installation and running of FreeBSD 9.1 release on system with RAM less than 256Mb
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 30 09:10:00 UTC 2013
>Closed-Date:    Thu Aug 01 13:22:24 UTC 2013
>Last-Modified:  Thu Aug 01 13:22:24 UTC 2013
>Originator:     Alex Verbod
>Release:        9.1 release
>Organization:
>Environment:
FreeBSD xxx.xxx.com 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243826: Tue Dec  4 06:55:39 UTC 2012     root@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386
>Description:
It is impossible to install FreeBSD 9.1 Release on a systems (either on a real hardware or on a virtual machines) that have less than 256 Mb of RAM(random access memory)

To my best knowledge, regression came with r229997 when "device ctl" has been added to default kernel that require abnormal amount of memory and prevent to use FreeBSD as a Virtual Private Server with low memory accounts and in embedded projects.
>How-To-Repeat:
Use a real hardware or any virtual machine(tested on QEMU-KVM, XEN, VMware, VirtualBox) and attempt to install FreeBSD on a system with RAM set to 128 Mb.
>Fix:
Workaround:
To be able to install and run FreeBSD 9.1 release on a system with installed memory less than 256 Mb one need to interrupt booting process by pressing 
"2"([Esc]ape to loader prompt) in the boot menu.

then type:

$ set kern.cam.ctl.disable=1
following by pressing "Enter", then type:

$ boot

and press "Enter" again to continue installation process.

In the end of installation, jump to a shell prompt and execute following lines:

$ echo -e "\n#---\nkern.cam.ctl.disable=1\n#---\n" >> /boot/loader.conf.local


this will allow to start and running installed bare FreeBSD 9.1 Release even on a system with 64 Mb of RAM

Suggestion for a real fix:
- Remove "device ctl" from GENERIC kernel and load "ctl" kernel module dynamicaly on systems that have enough memory installed.
- Set "kern.cam.ctl.disable=1" in the /boot/defaults/loader.conf as default value and overwrite it if a system can afford it.




>Release-Note:
>Audit-Trail:

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: kern/175694: commit references a PR
Date: Thu,  1 Aug 2013 13:19:08 +0000 (UTC)

 Author: marius
 Date: Thu Aug  1 13:18:47 2013
 New Revision: 253860
 URL: http://svnweb.freebsd.org/changeset/base/253860
 
 Log:
   MFC: r249410 (partial)
   
   Remove ctl(4) from GENERIC.
   
   With ctl(4) being built as a module and automatically loaded by ctladm(8),
   this makes CTL work out of the box.
   
   Note that unlike the original r249410, this commit does not remove the
   kern.cam.ctl.disable tunable for POLA reasons.
   
   PR:		174671, 175694, 179112
   Reviewed by:	ken (original version)
   Sponsored by:	FreeBSD Foundation (original version)
   Approved by:	re (hrs)
 
 Modified:
   stable/9/sys/amd64/conf/GENERIC
   stable/9/sys/i386/conf/GENERIC
   stable/9/sys/i386/conf/PAE
   stable/9/sys/ia64/conf/GENERIC
   stable/9/sys/sparc64/conf/GENERIC
 Directory Properties:
   stable/9/sys/   (props changed)
 
 Modified: stable/9/sys/amd64/conf/GENERIC
 ==============================================================================
 --- stable/9/sys/amd64/conf/GENERIC	Thu Aug  1 12:55:41 2013	(r253859)
 +++ stable/9/sys/amd64/conf/GENERIC	Thu Aug  1 13:18:47 2013	(r253860)
 @@ -124,7 +124,7 @@ device		sa		# Sequential Access (tape et
  device		cd		# CD
  device		pass		# Passthrough device (direct ATA/SCSI access)
  device		ses		# Enclosure Services (SES and SAF-TE)
 -device		ctl		# CAM Target Layer
 +#device		ctl		# CAM Target Layer
  
  # RAID controllers interfaced to the SCSI subsystem
  device		amr		# AMI MegaRAID
 
 Modified: stable/9/sys/i386/conf/GENERIC
 ==============================================================================
 --- stable/9/sys/i386/conf/GENERIC	Thu Aug  1 12:55:41 2013	(r253859)
 +++ stable/9/sys/i386/conf/GENERIC	Thu Aug  1 13:18:47 2013	(r253860)
 @@ -131,7 +131,7 @@ device		sa		# Sequential Access (tape et
  device		cd		# CD
  device		pass		# Passthrough device (direct ATA/SCSI access)
  device		ses		# Enclosure Services (SES and SAF-TE)
 -device		ctl		# CAM Target Layer
 +#device		ctl		# CAM Target Layer
  
  # RAID controllers interfaced to the SCSI subsystem
  device		amr		# AMI MegaRAID
 
 Modified: stable/9/sys/i386/conf/PAE
 ==============================================================================
 --- stable/9/sys/i386/conf/PAE	Thu Aug  1 12:55:41 2013	(r253859)
 +++ stable/9/sys/i386/conf/PAE	Thu Aug  1 13:18:47 2013	(r253860)
 @@ -39,8 +39,6 @@ nodevice	ncv
  nodevice	nsp
  nodevice	stg
  
 -nodevice	ctl
 -
  nodevice	asr
  nodevice	dpt
  nodevice	mly
 
 Modified: stable/9/sys/ia64/conf/GENERIC
 ==============================================================================
 --- stable/9/sys/ia64/conf/GENERIC	Thu Aug  1 12:55:41 2013	(r253859)
 +++ stable/9/sys/ia64/conf/GENERIC	Thu Aug  1 13:18:47 2013	(r253860)
 @@ -100,7 +100,7 @@ device		da		# Direct Access (ie disk)
  device		pass		# Passthrough (direct ATA/SCSI access)
  device		sa		# Sequential Access (ie tape)
  device		ses		# Enclosure Services (SES and SAF-TE)
 -device		ctl		# CAM Target Layer
 +#device		ctl		# CAM Target Layer
  
  # RAID controllers
  device		aac		# Adaptec FSA RAID
 
 Modified: stable/9/sys/sparc64/conf/GENERIC
 ==============================================================================
 --- stable/9/sys/sparc64/conf/GENERIC	Thu Aug  1 12:55:41 2013	(r253859)
 +++ stable/9/sys/sparc64/conf/GENERIC	Thu Aug  1 13:18:47 2013	(r253860)
 @@ -107,7 +107,7 @@ device		sa		# Sequential Access (tape et
  device		cd		# CD
  device		pass		# Passthrough device (direct ATA/SCSI access)
  device		ses		# SCSI Environmental Services (and SAF-TE)
 -device		ctl		# CAM Target Layer
 +#device		ctl		# CAM Target Layer
  
  # RAID controllers
  #device		amr		# AMI MegaRAID
 _______________________________________________
 svn-src-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->closed 
State-Changed-By: marius 
State-Changed-When: Thu Aug 1 13:21:54 UTC 2013 
State-Changed-Why:  
Close 

http://www.freebsd.org/cgi/query-pr.cgi?pr=175694 
>Unformatted:
