LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-09-2004, 10:46 AM   #1
tricky_linux
Member
 
Registered: Jul 2003
Distribution: Red Hat Linux 9.0; Old and Solid
Posts: 674

Rep: Reputation: 30
1GB Memory? Why Sluggish???


I have a homebuild computer with red hat 9.0
cpu: athlon 2500+
ram: 1GB DDR2700
swap: 1GB
IN linux, as long as i don't move big files around. It runs fine.
when i move a bunch of stuff which weight around 1GB, my computer's performance become sluggish.
even my mouse don't even move right.
the problem is every time i move something, my memory become 99.9% in use.
swap only used around 800KB?
what's wrong here?
 
Old 08-09-2004, 10:48 AM   #2
druisgod
Member
 
Registered: Jun 2004
Location: Maine
Distribution: LFS Mint OS, LFS, CENTos,
Posts: 119

Rep: Reputation: 18
Hiya,

Open a terminal and run top. Move something to cuse the problem again, and post back what top was displaying


Druisgod
 
Old 08-09-2004, 01:58 PM   #3
shinsplints
LQ Newbie
 
Registered: Jul 2004
Posts: 8

Rep: Reputation: 0
I had a similar problem before, where the issue was the hard drive settings. Look up the hdparm command and all of the options that go with it, you should be able to enable DMA (if it isn't already enabled) and increase performance significantly.

Try this perhaps:
http://www.linuxdevcenter.com/pub/a/...29/hdparm.html
 
Old 08-09-2004, 02:01 PM   #4
tricky_linux
Member
 
Registered: Jul 2003
Distribution: Red Hat Linux 9.0; Old and Solid
Posts: 674

Original Poster
Rep: Reputation: 30
i am not experience sluggish performance becasue of the hard drive.
the problem is why is linux sucking up all my memory.

i will do the top thing right away when i got my hands on my linux box

Last edited by tricky_linux; 08-09-2004 at 02:02 PM.
 
Old 08-10-2004, 06:29 AM   #5
druisgod
Member
 
Registered: Jun 2004
Location: Maine
Distribution: LFS Mint OS, LFS, CENTos,
Posts: 119

Rep: Reputation: 18
Ok. If you run top, we might be able to find out what app, if it is an app, that is causing your issue.


Druisgod
 
Old 08-15-2004, 08:29 PM   #6
tricky_linux
Member
 
Registered: Jul 2003
Distribution: Red Hat Linux 9.0; Old and Solid
Posts: 674

Original Poster
Rep: Reputation: 30
finally got a chance to do it again!!

here are the output when i run top while transfering 3 mandrake isos
memory running 99.9%


20:29:12 up 27 min, 4 users, load average: 1.59, 1.40, 0.89
86 processes: 82 sleeping, 4 running, 0 zombie, 0 stopped
CPU states: 9.1% user 21.5% system 0.0% nice 0.0% iowait 69.2% idle
Mem: 1032100k av, 1016488k used, 15612k free, 0k shrd, 19440k buff
198288k active, 696516k inactive
Swap: 1052216k av, 0k used, 1052216k free 778944k cached

PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND
6052 malibu 14 0 6128 6124 5096 S 16.5 0.5 3:45 0 magicdev
6077 malibu 10 0 11028 10M 7152 R 5.7 1.0 0:03 0 gnome-terminal
5970 root 12 0 32824 23M 2784 S 3.7 2.2 0:58 0 X
6249 root 10 0 20680 20M 10680 S 2.5 2.0 0:25 0 nautilus
1 root 8 0 464 464 416 S 0.0 0.0 0:04 0 init
2 root 9 0 0 0 0 SW 0.0 0.0 0:00 0 keventd
3 root 9 0 0 0 0 SW 0.0 0.0 0:00 0 kapmd
4 root 19 19 0 0 0 SWN 0.0 0.0 0:00 0 ksoftirqd_CPU0
5 root 9 0 0 0 0 SW 0.0 0.0 0:00 0 kswapd
6 root 9 0 0 0 0 SW 0.0 0.0 0:00 0 bdflush
7 root 9 0 0 0 0 SW 0.0 0.0 0:00 0 kupdated
15 root 9 0 0 0 0 SW 0.0 0.0 0:00 0 kjournald
74 root 9 0 0 0 0 SW 0.0 0.0 0:00 0 khubd
3913 root 9 0 0 0 0 SW 0.0 0.0 0:00 0 kjournald
5384 root 9 0 0 0 0 SW 0.0 0.0 0:00 0 knodemgrd_0
5667 root 9 0 580 580 500 S 0.0 0.0 0:00 0 syslogd
5671 root 9 0 428 428 376 S 0.0 0.0 0:00 0 klogd
5722 root 8 0 484 484 436 S 0.0 0.0 0:00 0 apmd
5758 root 9 0 1512 1512 1272 S 0.0 0.1 0:00 0 sshd
5772 root 9 0 932 932 804 S 0.0 0.0 0:00 0 xinetd
5782 root 9 0 444 444 396 S 0.0 0.0 0:00 0 gpm
5791 root 9 0 572 572 508 S 0.0 0.0 0:00 0 crond
5802 root 9 0 2020 2020 1476 S 0.0 0.1 0:00 0 cupsd
5866 xfs 9 0 3120 3120 808 S 0.0 0.3 0:00 0 xfs
5875 root 8 0 2036 2036 1424 S 0.0 0.1 0:00 0 smbd
5879 root 9 0 1812 1812 1248 S 0.0 0.1 0:00 0 nmbd
5888 root 19 19 616 616 536 S N 0.0 0.0 0:00 0 anacron
 
Old 08-15-2004, 11:02 PM   #7
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
AS others have said, check your dma on the drives. linux always uses all memory. The lack of dma controller will cause sluggish PC on large file transfer. Show the hdparm -d output on the drive(s)... also show the results of free to see what memory is actually tied up in processes.
 
Old 08-16-2004, 03:50 PM   #8
tricky_linux
Member
 
Registered: Jul 2003
Distribution: Red Hat Linux 9.0; Old and Solid
Posts: 674

Original Poster
Rep: Reputation: 30
it will try "free" asap.
i am sure my dma is enabled because when it's not.
hdparm -Tt /dev/hda doesn't go up to 50mb/s.
but what is free for?
 
Old 08-16-2004, 04:09 PM   #9
Ebel
Member
 
Registered: May 2004
Distribution: Slackware 10
Posts: 63

Rep: Reputation: 15
It seems to show how much memory and swap are being used at the time.
 
Old 08-16-2004, 05:15 PM   #10
mykrob
Member
 
Registered: Jun 2004
Location: Jackson, TN
Distribution: Kubuntu Feisty
Posts: 606

Rep: Reputation: 31
hey-
i may be missing the point, and am admittedly new to Linux, but from what little i understand, Linux uses memory totally different from Windows. In windows, it is abnormal to have that much memory use, but in Linux, the theory is "Unused memory is not good use of memory." Is it just the numbers that are buggin you, or is everything really running slow? I had the same question when i first started using it, because my memory usage was always high.

Thanks for clarifying.

-myk
 
Old 08-16-2004, 05:25 PM   #11
tricky_linux
Member
 
Registered: Jul 2003
Distribution: Red Hat Linux 9.0; Old and Solid
Posts: 674

Original Poster
Rep: Reputation: 30
yes, it is bothering me.
because whenever that happens, my cursor doesn't even move smooth anymore!
application runs really slow.
 
Old 08-16-2004, 06:41 PM   #12
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
Why we ask about the dma is because this is a symptom of no dma - the jerky cursor, sluggishness etc. The hdparm test makes it sound like it's working, but a result of

hdparm -d /dev/hda

would make us feel better.

also the results of the command

free

would tell us how much memory is actually used and how much is just being used as cache an buffers. Linux doesn't waste memory. If apps aren't using the memory, linux will just use it for cache and buffers. You paid for it, so why not use it...

Also what cpu are you using, just out of curiousity?
 
Old 08-16-2004, 07:11 PM   #13
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86_64; Gentoo PPC; FreeBSD; OS X 10.9.4
Posts: 3,760
Blog Entries: 4

Rep: Reputation: 78
He stated above that he is running an athlon 2500+

I agree with many of the posts above. Having 90+% of your memory in use is not a bad thing...it shows your memory is being used efficiently. I think that if you run the free command (use free -m for output in MB) you will find that 50-60% is being used as cache.

I am pretty sure that your problem is from a disk i/o logjam, especially since you don't have this problem unless moving large files around. Running hdparm /dev/hda will show if you are using DMA and other options to speed up disk thruput such as multcount, 32-bit IO_support, and readahead.

Last edited by bulliver; 08-16-2004 at 07:12 PM.
 
Old 08-16-2004, 08:31 PM   #14
tricky_linux
Member
 
Registered: Jul 2003
Distribution: Red Hat Linux 9.0; Old and Solid
Posts: 674

Original Poster
Rep: Reputation: 30
here are the commands who wants to convenice ya

# hdparm -tT /dev/hda

/dev/hda:
Timing buffer-cache reads: 128 MB in 0.32 seconds =400.00 MB/sec
Timing buffered disk reads: 64 MB in 1.13 seconds = 56.64 MB/sec

# hdparm /dev/hda

/dev/hda:
multcount = 16 (on)
IO_support = 1 (32-bit)
unmaskirq = 1 (on)
using_dma = 1 (on)
keepsettings = 0 (off)
readonly = 0 (off)
readahead = 8 (on)
geometry = 14946/255/63, sectors = 240121728, start = 0

# hdparm -d /dev/hda

/dev/hda:
using_dma = 1 (on)


because i don't really have time right now, i will post the free -m tomorrow when i get my linux drunk again! with full memory
 
Old 08-16-2004, 09:01 PM   #15
amosf
Senior Member
 
Registered: Jun 2004
Location: Australia
Distribution: Mandriva/Slack - KDE
Posts: 1,672

Rep: Reputation: 46
That's good. Knowing that dma is on eliminates that so we can look further.
 
  


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
Swapped memory with 1GB? gmontag79 Red Hat 0 02-09-2005 12:33 PM
Back to 1GB memory lex0429 Mandriva 15 10-04-2003 02:51 PM
memory > 1GB a1penguin Linux - Newbie 10 07-22-2003 11:19 PM
kernel for 1GB memory nuzzy Linux - Software 1 06-02-2003 07:14 PM
1GB Memory RH7.3 kbhadsten Linux - General 4 08-17-2002 12:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:56 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