LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 07-26-2004, 12:23 PM   #1
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
FreeBSD low memory performance


I recently installed FreeBSD 5.2.1 on an old machine I have here and updated it to -CURRENT with cvsup. The machine has a 400 MHz Celeron and 64 MB of RAM (I know -- yuck). I thought I might try using it as a lightweight workstation with X.org and Fluxbox. I got both of those installed, but when I try to run Mozilla or Firefox, the system slows to a crawl. Checking 'top', it doesn't look like Mozilla is using an obscene amount of memory (at least not enough to justify the amount of thrashing I witness), and swap usage does spike by a fair bit (although not as much as when trying to make something big out of ports).

Does anyone have any ideas about what I can do to increase performance? I tried Dillo, a lightweight Web browser, and it performs well but doesn't have some features that I need. Ideally, I'd like to use Mozilla or Firefox, but I'm open to suggestions a good lightweight browser. I'm also interested in streamlining the kernel -- this being -CURRENY I left a lot of the debug stuff enabled when I rebuilt it, along with a lot of other stuff I probably don't need -- but my question is how much memory is this likely to save me?

Any advice would be greatly appreciated.
 
Old 07-26-2004, 07:44 PM   #2
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
When you run an app in X, most of the memory usage (someone correct me if I'm wrong) is shared memory, which is allocated by X. That means that the Mozilla process won't look very big, but X will balloon. Quite simply, Mozilla is too big for a machine with 64MB of RAM. You only choice is a very lightweight browser, which would be Dillo, or Links, or something like that.

As for ripping pieces out of the kernel, it's unlikely to help. You'll only shrink your kernel but a few hundred KB. The only part of a custom kernel that will boost your performance would be removing the debugging crud. I don't think removing the debug code will save much memory, but it should lower the processing overhead.
 
Old 07-27-2004, 01:19 AM   #3
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Original Poster
Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Thanks, Chort, I was afraid the answer would be something like that. Looks like I'll either need to resign myself to using Dillo or invest in more RAM.
 
Old 07-27-2004, 03:11 AM   #4
newpenguin
Member
 
Registered: Sep 2002
Location: lahore pakistan
Distribution: slackware,redhat, FreeBSD,openbsd
Posts: 219

Rep: Reputation: 30
using 32mb ram 200mhz cpu machine at home for caching,DNS,Firewall.
squid is running on it.
normally it only reboots due to electricity problem.
i never rebooted it because of any performance issue.
 
Old 02-18-2005, 12:17 AM   #5
cajunman4life
LQ Newbie
 
Registered: Jan 2005
Location: Nebraska, USA
Distribution: Debian (Sarge), Fedora Core 3, FreeBSD
Posts: 4

Rep: Reputation: 0
I've got an old box (we're talking old... Pentium I (that's one) 200 MHz, 64MB RAM) that I currently run FreeBSD 5.3 on. I've got X.org and FluxBox installed, and have no problems. In fact, currently I'm running two compile processes in two seperate xterms, and my system is still as happy as a clam. I love *nix
 
Old 02-18-2005, 07:36 AM   #6
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 47
I'll note that neither of you mention which browser you use, which was the root of the OPs question ...

The days of using a 64MB machine for much running X are largely gone unless you're going to run one thing at a time or don't mind hitting swap all the time. When xterm weighs in at ~5MB, it doesn't take a long time to chew up 64MB.

I use firefox, but all my machines have >768MB. In your position though, I'd be using links, and often do anyway.

Last edited by sigsegv; 02-18-2005 at 07:39 AM.
 
Old 02-18-2005, 07:53 AM   #7
-X-
Member
 
Registered: Oct 2003
Location: Tx,USA
Distribution: Slackware, Red Hat, CentOS
Posts: 495

Rep: Reputation: 30
links in graphical mode works ok.
links -g
 
Old 02-18-2005, 08:54 AM   #8
cajunman4life
LQ Newbie
 
Registered: Jan 2005
Location: Nebraska, USA
Distribution: Debian (Sarge), Fedora Core 3, FreeBSD
Posts: 4

Rep: Reputation: 0
Sorry, got a tad bit off course last night when I posted. I haven't gotten much sleep lately. Anyways, I do use Firefox, and it works pretty well (granted usually when I'm surfing the web, the only other thing running might be a make process in an xterm behind firefox). I also am experimenting with Amaya and Dillo (though neither really do the trick for me). But this box is also my "toy" box. It's something just to play around with (unless my webserver needs to go down for some reason, in which case I exit out of X, start up Apache and make sure I have the most recent backup loaded).
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FC4 X Performance low oglop Linux - Software 3 09-15-2005 09:52 PM
Very low performance trebek Linux - Newbie 9 08-04-2005 11:18 AM
Low OpenGL performance with Voodoo 4500 PCI Avenger Slackware 2 07-20-2004 03:22 AM
Low performance on Athlon platform?! ognjen Linux - Hardware 0 11-17-2003 12:01 PM
Low Performance in Half Life, winex and Slack9.0 tr4nce Slackware 1 04-18-2003 12:06 PM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 06:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration