|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
How much memory can I save by configging a kernel?
I'm running OpenBSD 5.0 in a KVM VPS. The VPS has 128MB of memory.
I'd like to squeeze as much RAM out of the kernel as possible to free memory. I've already turned off services I don't use. I'm wondering if I'm wasting my time or if I would be able to actually recover a usable amount. If I'm likely to free 50K, I won't bother. If it might free 5MB, I'll give it a shot. The VPS is only using one NIC, for example, has no audio, etc. Code:
OpenBSD 5.0 (GENERIC) #43: Wed Aug 17 10:10:52 MDT 2011 deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC cpu0: QEMU Virtual CPU version (cpu64-rhel6) ("GenuineIntel" 686-class) 3.40 GHz cpu0: FPU,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,MTRR,PGE,MCA,CMOV,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3,CX16 real mem = 133742592 (127MB) avail mem = 121569280 (115MB) |
|
|||
Quote:
Culturally, the project severely frowns upon kernel squeezing & customization (covered in Section 5.6 of the FAQ...) to the point that the developers will not even talk to anyone filing problem reports using custom kernels. Unless you are intimately knowledgeable about kernel internals is this worth the effort. Personally, I wouldn't bother. It goes too far against the project's recommendations, & I have found that the project's dictates are well grounded. |
|
|||
Quote:
I wasn't talking about building a custom kernel, just using config to change GENERIC. Quote:
Code:
real mem = 133742592 (127MB) avail mem = 121569280 (115MB) |
|
|||
I'm not sure I understand you about video memory.
That message about memory happens very early in boot: Code:
rebooting... OpenBSD 5.0 (GENERIC) #43: Wed Aug 17 10:10:52 MDT 2011 deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC cpu0: QEMU Virtual CPU version (cpu64-rhel6) ("GenuineIntel" 686-class) 3.70 GHz cpu0: FPU,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,MTRR,PGE,MCA,CMOV,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3,CX16 real mem = 133742592 (127MB) avail mem = 121569280 (115MB) mainbus0 at root Code:
vga1 at pci0 dev 2 function 0 "Cirrus Logic CL-GD5446" rev 0x00 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) Code:
-rw-r--r-- 1 root wheel 8948527 Apr 14 22:58 bsd Is there a command to see how much memory the running kernel uses? More for curiosity than anything else. |
|
|||
Quote:
In the end it worked but I had some issues with PCMCIA cards that I think may have been related to my 'choices'. |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kernel memory usage | LightBit | FreeBSD General | 1 | 19th February 2012 12:33 AM |
save entropy problem | map7 | FreeBSD General | 1 | 30th August 2010 06:47 AM |
PLEASE HELP SAVE BSD MAGAZINE | Kruzer | Off-Topic | 14 | 27th August 2009 05:10 PM |
how to save stackoverflow podcasts? | ephemera | Off-Topic | 4 | 19th July 2009 03:32 PM |
Doing a fresh install - what to save? | Bruco | FreeBSD General | 4 | 30th May 2009 01:49 PM |