LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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, 01:23 PM   #1
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,141

Rep: Reputation: 322Reputation: 322Reputation: 322Reputation: 322
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, 08: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: 69
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, 02:19 AM   #3
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,141

Original Poster
Rep: Reputation: 322Reputation: 322Reputation: 322Reputation: 322
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, 04: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, 01: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, 08: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: 46
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 08:39 AM.
 
Old 02-18-2005, 08: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, 09: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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 10:52 PM
Very low performance trebek Linux - Newbie 9 08-04-2005 12:18 PM
Low OpenGL performance with Voodoo 4500 PCI Avenger Slackware 2 07-20-2004 04:22 AM
Low performance on Athlon platform?! ognjen Linux - Hardware 0 11-17-2003 01:01 PM
Low Performance in Half Life, winex and Slack9.0 tr4nce Slackware 1 04-18-2003 01:06 PM


All times are GMT -5. The time now is 04:42 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration