LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 04-27-2008, 04:51 PM   #1
mrmike503
LQ Newbie
 
Registered: Apr 2008
Distribution: Ubuntu/CRUX
Posts: 11

Rep: Reputation: 0
Debian is slow and uses too much RAM


I installed Debian etch from the first DVD and then upgraded to lenny by editing the sources.list and using "apt-get distupgrade". The upgrade took about 90 minutes. My friend tells me it took him about 20 minutes to upgrade when he used Debian Sarge in the past. X takes about 5 minutes to start after startx and everything run in X seems very sluggish. Memory usage is also very high according to /proc/meminfo. Any suggestions?

Code:
mike:/# cat /proc/meminfo 
MemTotal:      1036652 kB
MemFree:         44004 kB
Buffers:        169908 kB
Cached:         653876 kB
SwapCached:         12 kB
Active:         522224 kB
Inactive:       389744 kB
HighTotal:      131008 kB
HighFree:          988 kB
LowTotal:       905644 kB
LowFree:         43016 kB
SwapTotal:     1951888 kB
SwapFree:      1951836 kB
Dirty:              64 kB
Writeback:           4 kB
AnonPages:       88156 kB
Mapped:          48548 kB
Slab:            73432 kB
PageTables:       1216 kB
NFS_Unstable:        0 kB
Bounce:              0 kB
CommitLimit:   2470212 kB
Committed_AS:   115844 kB
VmallocTotal:   114680 kB
VmallocUsed:      3332 kB
VmallocChunk:   111192 kB
mike:/#
 
Old 04-27-2008, 05:48 PM   #2
utanja
Member
 
Registered: Apr 2004
Location: Europe:Salzburg Austria USA:Orlando,Florida;
Distribution: Debian
Posts: 643

Rep: Reputation: 32
Best to install Lenny directly without upgrading from Etch....you should not have a problem.....
 
Old 04-27-2008, 06:11 PM   #3
Dutch Master
Senior Member
 
Registered: Dec 2005
Posts: 1,686

Rep: Reputation: 124Reputation: 124
What does your sources.list look like? Have a look at trhe sticky on this topic for a suitable example you can copy. Mind you, the Debian dev's recommend using aptitude over apt-get. Perhaps you should start again (fresh install is the quickest way as you don't have any data yet) with a bare basic Etch install, edit your sources.list and then get a full system on your machine. Best of luck chap!
 
Old 04-28-2008, 04:54 AM   #4
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,070

Rep: Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897Reputation: 897
Quote:
Memory usage is also very high according to /proc/meminfo. ] X takes about 5 minutes to start after startx and everything run in X seems very sluggish.
Ensure that its not because its running locate (updatedb) or a similar indexing program. Maybe post ps -ef output/is the disk drive working hard at the time?

Quote:
Memory usage is also very high according to /proc/meminfo.
No, its not. Its high according to you, and you seem to be making the usual mistake (see any of the thousands of threads* on the subject).

What you have posted is a system that is using much memory for buffers and cache. This is what a linux system does when it has nothing better to do with the memory. If you look at

Quote:
Buffers: 169908 kB
Cached: 653876 kB
thats 800 M that its using because it has nothing better to do with the ram - the alternative would be not to use the ram in order not to wear it out, and that would be just a bit daft. If you take that away from the total, as the system would do if it was being given something more worthwhile to do with the ram, then you'd see this in a better perspective.

* Actually, I'm probably overstating the case here; it feels like thousands make this error and start threads on the subject, but its probably only a hundred or so.
 
Old 04-28-2008, 11:31 AM   #5
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
My first question would be "What are the system Specs ? "

RAM doesn't mean squat if you are running a 486SX 25 CPU... pretty impossible to diagnose a system performance issue from meminfo alone imho.


Are there any errors showing up in /var/log/dmesg ?

What processes and services do you have starting by default ? MySQL ? Apache ? FTPD ? Do you actually need them or did you just install everything ?

Need more info
 
Old 04-29-2008, 03:10 PM   #6
mrmike503
LQ Newbie
 
Registered: Apr 2008
Distribution: Ubuntu/CRUX
Posts: 11

Original Poster
Rep: Reputation: 0
Sorry it took me so long to respond --

Quote:
Originally Posted by farslayer View Post
My first question would be "What are the system Specs ? "
1 GB Ram
Athlon 64 3400 - 1.8 GB
Nvidia Gforce 7400 - 256MB Vid Card

I hope that's what you're looking for...

Quote:
Originally Posted by farslayer View Post
Are there any errors showing up in /var/log/dmesg ?

What processes and services do you have starting by default ? MySQL ? Apache ? FTPD ? Do you actually need them or did you just install everything ?
Would you prefer me to just copy the log, or reboot and copy the log for this? I don't entirely know everything yet, so I just wanna make sure.
 
Old 04-29-2008, 03:24 PM   #7
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
I would just search for errors, warnings or failures..

it-etch:~# cat /var/log/dmesg | grep -i error
it-etch:~# cat /var/log/dmesg | grep -i warn
it-etch:~# cat /var/log/dmesg | grep -i fail

no need to see the whole thing.
the output of ls /etc/rc2.d would be informative as well as to what you have running on the system at boot time.
Code:
it-etch:~# ls /etc/rc2.d
K08vmware       S17mysql-ndb-mgm  S20cupsys             S20openbsd-inetd  S20winbind     S89atd        S99stop-bootlogd
K20bittorrent   S18mysql-ndb      S20dbus               S20puppet         S21gdm         S89cron       S99webmin
K20firestarter  S18portmap        S20exim4              S20puppetmaster   S21nfs-common  S90vmware
README          S19hplip          S20hotkey-setup       S20samba          S23ntp         S91apache2
S10sysklogd     S19mysql          S20makedev            S20smartmontools  S23ntp-server  S99rc.local
S11klogd        S20acpid          S20nfs-kernel-server  S20ssh            S89anacron     S99rmnologin
all the S## are services that are starting at boot. many of which are not necessary for a regular desktop. this machine is just for testing things so theres a lot of junk loaded I wouldn't have on my normal desktop.. (mysql, apache, puppet, webmin, vmware,) for instance.. easily disabled by running sysv-rc-conf and un-checking the items I don't want to run.. rc2 is the default run level for Debian.
 
1 members found this post helpful.
  


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
Ubuntu too slow - PII, 300Mb RAM TotalLinuxNoob Ubuntu 16 02-02-2007 09:53 AM
slow dvd-ram write since kernel 2.6.8 droebbel Linux - General 1 02-12-2005 07:46 AM
Slow Ram causing I/O errors? Boss Hoss Linux - Hardware 0 07-10-2004 09:10 AM
RAM trouble, linux is slow DAChristen29 Linux - Hardware 4 12-12-2002 01:04 PM
Why is Linux with 64Mb RAM so butt slow? Noerr Linux - Distributions 60 07-11-2002 11:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 01:27 AM.

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