LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-13-2004, 10:00 PM   #1
Dr Gutiemouth
Member
 
Registered: Oct 2004
Location: ohio
Distribution: Whitebox, Gentoo, XP,
Posts: 57

Rep: Reputation: 15
ram vs linux use


so how much ram will prevent the skipping of music files when just kinda switching windows? i have 256mb...i used to have 512 but one stick went bad...and the lag is startin to get to me...will more ram fix this or is it a linux thing?
 
Old 10-13-2004, 10:21 PM   #2
Little Dump
LQ Newbie
 
Registered: Sep 2004
Location: London, ON, Canada
Posts: 18

Rep: Reputation: 0
u should have no problems with 256mb ram

i used to run an old version of redhat on a system with 64mb of ram and she ran smooth.
 
Old 10-13-2004, 10:25 PM   #3
Dr Gutiemouth
Member
 
Registered: Oct 2004
Location: ohio
Distribution: Whitebox, Gentoo, XP,
Posts: 57

Original Poster
Rep: Reputation: 15
interesting, the only problem i have and notice is when im playing music. the music will jolt when im surfing the web, changing tabs and windows and ven scrolling.

any ideas on how to fix this?
 
Old 10-14-2004, 11:23 AM   #4
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
you can fix this by giving the process of your player a higher priority. however you'll need to become root to give it a nice less than 0.

# ps aux | grep xmms
mritch 524 0.1 3.2 56876 10304 ? ...............
# renice -10 -p 524
....new priority: -10

another: have a look at your "lspci -v" output and check for latency value of your soundcard. raise it:

# lspci -v
0000:01:01.0 Multimedia audio controller: ...........
<-------skip------>
Flags: bus master, slow devsel, latency 32, IRQ 7
<-------skip------>
# /usr/bin/setpci -s 01:01.0 latency_timer=40

the latency_timer value is in hex (20=32, 40=64, 60=96) and tells the card how long it is allowed to transfer data along the (pci)bus in a interrupt run (use multiple of 8). setting these values optimal is quite a hassle so lot of people just set them to 32 (with used isa bus) or a value between 64 and 96. some cards like heavily used networkadapters like a setting of 208 (d0).

sl mritch.
 
Old 10-14-2004, 12:57 PM   #5
Dr Gutiemouth
Member
 
Registered: Oct 2004
Location: ohio
Distribution: Whitebox, Gentoo, XP,
Posts: 57

Original Poster
Rep: Reputation: 15
hey thanks for your reply, i did what you said, but it still lags....if i move the terminal window i was working in, it would lag, nad the window would trial...

any other ideas?

i have no clue!
 
Old 10-14-2004, 01:49 PM   #6
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
hmm.
try a nice of "-19" and a latency of "d0"

what player is it? maybe tweaking your (pre)puffering will help.
and what are you playing? local files or stream/files over a network.
what driver do you use? alsa or oss.
how "nice" is your x server running?
whats you cpu?


sl mritch.
 
Old 10-14-2004, 01:53 PM   #7
Dr Gutiemouth
Member
 
Registered: Oct 2004
Location: ohio
Distribution: Whitebox, Gentoo, XP,
Posts: 57

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by mritch
hmm.
try a nice of "-19" and a latency of "d0"

what player is it? maybe tweaking your (pre)puffering will help.
and what are you playing? local files or stream/files over a network.
what driver do you use? alsa or oss.
how "nice" is your x server running?
whats you cpu?


sl mritch.
its xmms, i dont know what that is let alone how to tweak it
im just playin mp3s i have stored on my HD
i use oss
im not sure how nice it is or what you mean by that
and my CPU is an atholon T-bird 1.4Ghz
 
Old 10-14-2004, 02:06 PM   #8
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 47
hmm, i wonder if it's a DMA issue? as root type hdparm /dev/hda (if that's your linux disk) and see if DMA is enabled.
 
Old 10-14-2004, 02:42 PM   #9
mritch
Member
 
Registered: Nov 2003
Location: austria
Distribution: debian
Posts: 667

Rep: Reputation: 30
in the xmms configscreen choose the config button from the oss driver. then puffer.
here can be the problem. if your window managers soundsystem comes in conflict with your oss. what wm are you running and do you use it's sound subsystem (kde-arts/gnome-esd)?

oss is (still) the driver i use and performance is imho better than alsa. and you unlikely have a performance prob with 1.4GHz. the dma thing might be helpful if not activ, but playing mp3's isn't very (disk-)io intense.
most x servers run with a nice value of -10.

do a lspci -v and post the output. maybe there is a irq assingment problem. also "dmesg | grep acpi".

sl mritch.
 
Old 10-14-2004, 03:42 PM   #10
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Increase the buffer cache in xmms. Something like 9000 ms will be good. In the old days, Windows has the same problem.
 
  


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
RAM: Does linux require as much ram as Windows XP? hanzj Linux - Newbie 48 04-18-2007 12:14 AM
Win98SE Pentium166MMX/64MB RAM vs Linux AthlonXP+ 3000/512MB RAM : Lucent LT WinModem t3gah Linux - Software 2 04-22-2005 01:01 PM
How Linux uses RAM lel800 Linux - Newbie 6 10-26-2004 07:44 AM
Linux Does not see the RAM voitel Linux - Software 3 07-15-2001 06:13 PM
How much RAM can I use under Linux? shane664 Programming 1 04-02-2001 06:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:35 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration