From owner-freebsd-questions@FreeBSD.ORG Wed Oct 25 17:38:39 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6FAE316A40F for ; Wed, 25 Oct 2006 17:38:39 +0000 (UTC) (envelope-from perikillo@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.190]) by mx1.FreeBSD.org (Postfix) with ESMTP id A022A43D5E for ; Wed, 25 Oct 2006 17:38:28 +0000 (GMT) (envelope-from perikillo@gmail.com) Received: by nf-out-0910.google.com with SMTP id p77so669157nfc for ; Wed, 25 Oct 2006 10:38:28 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=q9JSDTog0h6HWuOa12fWpDWuFMkCTj1n5OwB7C4y+agSCEoasT+h5JGZw84/g2v65G6kjWVdZrxoKYvF3Mrsm+3IInN7OmDAX5hAw8uY2b6MClUq/YA7TqvBc83L3YHJprjKYI1H5wveKZMGsbzVZbCOIeB8dHbG1UzM9gsQ9OE= Received: by 10.82.101.3 with SMTP id y3mr207464bub; Wed, 25 Oct 2006 10:38:27 -0700 (PDT) Received: by 10.82.178.5 with HTTP; Wed, 25 Oct 2006 10:38:27 -0700 (PDT) Message-ID: <51d7a5160610251038t55f68f63id3044a81dc6a53b3@mail.gmail.com> Date: Wed, 25 Oct 2006 10:38:27 -0700 From: perikillo To: "FreeBSD Mailing List" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Issues with Dual-Core CPU's and SMP+Generic Kernel...? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Oct 2006 17:38:39 -0000 Hi people. Yesterday i was trying to setup another backup server with FreeBSD 6.1 and Bacula. This is my first time that i work with one Dual Core system and FreeBSD. This is the system: FreeBSD 6.1-RELEASE #0: Sun May 7 04:42:56 UTC 2006 root@opus.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP Preloaded elf kernel "/boot/kernel/kernel" at 0xc0afd000. Preloaded elf module "/boot/kernel/acpi.ko" at 0xc0afd19c. Calibrating clock(s) ... i8254 clock: 1190820 Hz CLK_USE_I8254_CALIBRATION not specified - using default frequency Timecounter "i8254" frequency 1193182 Hz quality 0 Calibrating TSC clock ... TSC clock: 3006012457 Hz CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (3006.01-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0xf43 Stepping = 3 Features=0xbfebfbff Features2=0x649d> AMD Features=0x20000000 Logical CPUs per core: 2 real memory = 1063841792 (1014 MB) ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs cpu0: on acpi0 cpu1: on acpi0 SMP: AP CPU #1 Launched! cpu1 AP: ID: 0x01000000 VER: 0x00050014 LDR: 0x00000000 DFR: 0xffffffff lint0: 0x00010700 lint1: 0x00000400 TPR: 0x00000000 SVR: 0x000001ff timer: 0x000200ef therm: 0x00010000 err: 0x00010000 pcm: 0x00010000 Trying to mount root from ufs:/dev/ad4s1a start_init: trying /sbin/init SMP: AP CPU #1 Launched! The hard disk is one WD 320GB SATA, which just see 305GB but this is another history!! The layout i was trying to setup for the disk was: / 512MB SWAP 2000MB /usr 20480MB /var 8192 MB /home 2048MB /tmp 1024MB /backups 264GB With this layout the system didnt in boot multi-user enviroment, just single-user, and the error was: start_init: trying /sbin/init .:Out of File Descriptors The system just let me go into single-user mode. I modify /boot/loader.conf kern.maxfiles="" # Set the sys. wide open files limit kern.maxproc="" # Set the maximum # of processes kern.maxssiz="" # Set the max stack size kern.maxusers="" # Set size of various static tables I play with this values, the last value that i use was kern.maxusers = 8192 which crash my system with a Kernel Trap 12, I couldnt recover my system, doesnt even let go to Single-User Mode. Ok for this i googling around but nothing clear, i setup freebsd about 10 times, i use GENERIC and SMP kernel and the same problem, different settings, a lot of time invest. After a will, i decide to setup the disk with the "Automatic" Layout and GENERIC kernel only and WOW my system boot in Multi-User enviroment, no more"Out of File Descriptor". Them i decide to boot with SMP kernel and again, a success!!! Them i start working with the disk, i use the same layout except for /home: / 512MB SWAP 2000MB /usr 20480MB /var 8192 MB /tmp 1024MB /backups 267GB Load both GENERIC && SMP kernels, and everything is working right now, i just want to know if thereis a problem between the Disk Setup or Layout and the Kernels...? Why and how i fix this problem of "Out of file descriptors"...? Right now, i will customize my kernel, i wouldnt do the BuildWorld stuff, because this is a remote system, until next week will visit this system and rebuild everthing. Thanks all for your time, greetings!!!