DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD General

FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 18th February 2012
LightBit LightBit is offline
New User
 
Join Date: Feb 2011
Posts: 1
Thanked 0 Times in 0 Posts
Default Kernel memory usage

I compared memory usage of FreeBSD and OpenBSD kernel (only base stuff running like init, ttys ...).

FreeBSD:
uncompressed kernel size: 13.8MB ( + 46.3MB of modules)
memory usage: 20MB

OpenBSD:
uncompressed kernel size: 8.6MB (no modules)
memory usage: 34MB

Why FreeBSD with bigger kernel uses less memory than OpenBSD?
Reply With Quote
  #2   (View Single Post)  
Old 19th February 2012
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

Use ps(1) and/or top(1) to see where the memory is going.

On FreeBSD, you can also use kldstat(1) to get some info on the kernel, use the -v flag, I *think* the size column in the size in bytes (Values seem about right on my system, but I didn't check it!).
OpenBSD doesn't have kldstat, I'm not sure how to get this information on OpenBSD.
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
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
Ram usage on default installations libertas General software and network 7 21st January 2012 04:46 PM
Forum usage: How to thank? Greg_Morgan Off-Topic 2 9th October 2009 12:49 AM
dd and split usage problem paul-lkw FreeBSD General 4 31st January 2009 08:13 PM
memory usage monitoring using net-snmp ducu_00 FreeBSD Ports and Packages 2 11th October 2008 03:12 PM
pagedaemon 100% cpu usage fenrisW0lf NetBSD General 14 5th June 2008 12:31 PM


All times are GMT. The time now is 10:17 AM.


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