DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Installation and Upgrading

FreeBSD Installation and Upgrading Installing and upgrading FreeBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 11th April 2013
vinxfc3s's Avatar
vinxfc3s vinxfc3s is offline
New User
 
Join Date: May 2008
Location: Canada
Posts: 4
Thanked 0 Times in 0 Posts
Default help!!! making a optimized kernel conf

I need help on making a kernel conf for my vps box... sorry if this is a newbie question.
Can anyone make me a kernel conf im just confuse right now reading all the tutorials on the net... I'll paste my dmesg below. Please allow ALTQ for pf on the kernel config. Thank you

Code:
root@alvin:/root # cat /var/run/dmesg.boot

Copyright (c) 1992-2012 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 9.1-RELEASE #0 r243825: Tue Dec  4 09:23:10 UTC 2012
    root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
CPU: QEMU Virtual CPU version 0.9.1 (2666.62-MHz K8-class CPU)
  Origin = "GenuineIntel"  Id = 0x623  Family = 6  Model = 2  Stepping = 3
  Features=0x783fbfd<FPU,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,P                                                                AT,PSE36,MMX,FXSR,SSE,SSE2>
  Features2=0x80000001<SSE3,HV>
  AMD Features=0x20100800<SYSCALL,NX,LM>
real memory  = 268435456 (256 MB)
avail memory = 233922560 (223 MB)
Event timer "LAPIC" quality 400
ACPI APIC Table: <QEMU   QEMUAPIC>
ioapic0 <Version 1.1> irqs 0-23 on motherboard
kbd1 at kbdmux0
acpi0: <QEMU QEMURSDT> on motherboard
acpi0: Power Button (fixed)
cpu0: <ACPI CPU> on acpi0
atrtc0: <AT realtime clock> port 0x70-0x71,0x72-0x77 irq 8 on acpi0
Event timer "RTC" frequency 32768 Hz quality 0
Timecounter "ACPI-fast" frequency 3579545 Hz quality 900
acpi_timer0: <24-bit timer at 3.579545MHz> port 0xb008-0xb00b on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci_link0: BIOS IRQ 9 does not match initial IRQ 10
pci_link0: BIOS IRQ 10 for 0.5.INTA does not match previous BIOS IRQ 9
pci0: <ACPI PCI bus> on pcib0
isab0: <PCI-ISA bridge> at device 1.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX3 WDMA2 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376                                                                ,0xc000-0xc00f at device 1.1 on pci0
ata0: <ATA channel> at channel 0 on atapci0
ata1: <ATA channel> at channel 1 on atapci0
uhci0: <Intel 82371SB (PIIX3) USB controller> port 0xc020-0xc03f irq 11 at devic                                                                e 1.2 on pci0
usbus0: controller did not stop
usbus0 on uhci0
pci0: <bridge> at device 1.3 (no driver attached)
vgapci0: <VGA-compatible display> mem 0xf0000000-0xf1ffffff,0xf2000000-0xf2000ff                                                                f at device 2.0 on pci0
em0: <Intel(R) PRO/1000 Legacy Network Connection 1.0.4> port 0xc040-0xc07f mem                                                                 0xf2020000-0xf203ffff irq 11 at device 3.0 on pci0
em0: Ethernet address: 52:54:00:27:21:85
pci0: <memory, RAM> at device 4.0 (no driver attached)
pci0: <old> at device 5.0 (no driver attached)
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model IntelliMouse Explorer, device ID 4
fdc0: <floppy drive controller> port 0x3f2-0x3f5,0x3f7 irq 6 drq 2 on acpi0
fdc0: does not respond
device_attach: fdc0 attach returned 6
uart0: <Non-standard ns8250 class UART with FIFOs> port 0x3f8-0x3ff irq 4 flags                                                                 0x10 on acpi0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
attimer0: <AT timer> at port 0x40 on isa0
Timecounter "i8254" frequency 1193182 Hz quality 0
attimer0: Can't map interrupt.
fdc0: No FDOUT register!
ppc0: cannot reserve I/O port range
ctl: CAM Target Layer loaded
Timecounters tick every 10.000 msec
usbus0: 12Mbps Full Speed USB v1.0
ugen0.1: <Intel> at usbus0
uhub0: <Intel UHCI root HUB, class 9/0, rev 1.00/1.00, addr 1> on usbus0
uhub0: 2 ports with 2 removable, self powered
cd0 at ata0 bus 0 scbus0 target 1 lun 0
cd0: <QEMU QEMU DVD-ROM 0.9.> Removable CD-ROM SCSI-0 device
cd0: 16.700MB/s transfers (WDMA2, ATAPI 12bytes, PIO 65534bytes)
cd0: cd present [351007 x 2048 byte records]
cd1 at ata1 bus 0 scbus1 target 0 lun 0
cd1: <QEMU QEMU DVD-ROM 0.9.> Removable CD-ROM SCSI-0 device
cd1: 16.700MB/s transfers (WDMA2, ATAPI 12bytes, PIO 65534bytes)
cd1: Attempt to query device size failed: NOT READY, Medium not present
ada0 at ata0 bus 0 scbus0 target 0 lun 0
ada0: <QEMU HARDDISK 0.9.1> ATA-7 device
ada0: 16.700MB/s transfers (WDMA2, PIO 8192bytes)
ada0: 20480MB (41943040 512 byte sectors: 16H 63S/T 16383C)
ada0: Previously was known as ad0
Timecounter "TSC" frequency 2666618616 Hz quality 800
Trying to mount root from ufs:/dev/ada0p2 [rw]...

Last edited by J65nko; 11th April 2013 at 07:08 PM. Reason: [code] and [/code] tags added ;)
Reply With Quote
  #2   (View Single Post)  
Old 11th April 2013
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,145
Thanked 182 Times in 149 Posts
Default

If you run FreeBSD in a VPS you will never get the performance of running in on the bare iron, even with an VPS optimized kernel.


The FreeBSD handbook mentions the following in 23.2 FreeBSD as a Guest OS

Quote:
After FreeBSD has been successfully installed on Mac OS X with Parallels, there are a number of configuration steps that can be taken to optimize the system for virtualized operation.
  • Set Boot Loader Variables

    The most important step is to reduce the kern.hz tunable to reduce the CPU utilization of FreeBSD under the Parallels environment. This is accomplished by adding the following line to /boot/loader.conf:

    kern.hz=100

    Without this setting, an idle FreeBSD Parallels guest will use roughly 15% of the CPU of a single processor iMac®. After this change the usage will be closer to 5%.
  • Create a New Kernel Configuration File

    All of the SCSI, FireWire, and USB device drivers can be removed from a custom kernel configuration file. Parallels provides a virtual network adapter used by the ed(4) driver, so all network devices except for ed(4) and miibus(4) can be removed from the kernel.
At http://www.freebsd.org/doc/en_US.ISO...nelconfig.html you find the authoritative source on kernel configuration. I would rather trust that resoource than some outdated, dusty, howto found on a deserted attic on the Internet

BTW If you ever are going to use OpenBSD you have to kick the habit of kernel tuning.
From http://www.openbsd.org/faq/faq5.html#Why :
Quote:
More people have broken their system by trying to tweak their kernel than have improved system operation. There are some people that believe that you must customize your kernel and system for optimum performance, but this is not true for OpenBSD. Only the most advanced and knowledgeable users with the most demanding applications need to worry about a customized kernel or system.
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #3   (View Single Post)  
Old 12th April 2013
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Old man from scene 24
 
Join Date: Apr 2008
Location: Eindhoven, Netherlands
Posts: 2,068
Thanked 198 Times in 156 Posts
Default

Quote:
Originally Posted by J65nko View Post
BTW If you ever are going to use OpenBSD you have to kick the habit of kernel tuning.
From http://www.openbsd.org/faq/faq5.html#Why :

Quote:
More people have broken their system by trying to tweak their kernel than have improved system operation. There are some people that believe that you must customize your kernel and system for optimum performance, but this is not true for OpenBSD. Only the most advanced and knowledgeable users with the most demanding applications need to worry about a customized kernel or system.
IMHO this advice applies to FreeBSD as well. `Tuning' your kernel usually gives you negligible performance gains at best, and while making a custom kernel is easier than on OpenBSD, there are still plenty of things you can do wrong.

If you have performance problems on your VPS, post your problems, perhaps we can help with those.
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #4   (View Single Post)  
Old 12th April 2013
vinxfc3s's Avatar
vinxfc3s vinxfc3s is offline
New User
 
Join Date: May 2008
Location: Canada
Posts: 4
Thanked 0 Times in 0 Posts
Default

Thanks J65nko and Carpetsmoker for the help.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
making many partitions jgisme FreeBSD Installation and Upgrading 1 23rd August 2012 06:27 PM
making STDERR more visible vermaden Off-Topic 5 18th December 2011 10:39 AM
Making your own Distro SL6-A2000 FreeBSD General 4 22nd August 2011 01:50 PM
Z-410: How ZFS is slowly making its way to Mac OS X J65nko News 0 18th March 2011 08:10 PM
[Help] Making the desktop in [BSD 7.0] seadog109 FreeBSD General 15 9th May 2008 05:10 AM


All times are GMT. The time now is 01:38 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick