Issues with Dual-Core CPU's and SMP+Generic Kernel...?
perikillo
perikillo at gmail.com
Wed Oct 25 17:38:39 UTC 2006
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 at 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<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
Features2=0x649d<SSE3,RSVD2,MON,DS_CPL,EST,CNTX-ID,CX16,<b14>>
AMD Features=0x20000000<LM>
Logical CPUs per core: 2
real memory = 1063841792 (1014 MB)
ACPI APIC Table: <INTEL D945GTP >
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
cpu0: <ACPI CPU> on acpi0
cpu1: <ACPI CPU> 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! <This doesn't tell me that he just is going to use
1 CPU...?>
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!!!
More information about the freebsd-questions
mailing list