How to have a soft-real-time process in presense of heavily swapping IO-intensive background load?

Posted by Vi on Super User See other posts from Super User or by Vi
Published on 2011-03-13T11:21:37Z Indexed on 2011/03/14 0:12 UTC
Read the original article Hit count: 251

Filed under:
|
|
|
|
schedtool: PID 32301: PRIO   4, POLICY R: SCHED_RR      , NICE -20, AFFINITY 0xf
ionice: realtime: prio 4

But the music is stumbling anyway.

Background load is low prio (SCHED_IDLEPRIO, idle ionice), but uses a lot of memory (more than is physically available) and does a lot of IO and calculations.

Latencytop shows about 1500ms for:

Following symlink
Writing buffer to disk (sync) 
Page fault
Writing a page to disk

both for the bg load and for unrelated processes. Load average is 10 and counting.

Why cannot it allocate, for example, 200MHZ of one of the cores and 32M of memory and not less than once per second opportunity for IO for mplayer to make it happy while continuing calculations on the background?

Or: why it cannot leave background task and swap loving each other but keeping the rest of the system as if there were no background load?

How to have RT processes AND heavy bg load simultaneously (without of virtual machines)?

© Super User or respective owner

Related posts about linux

Related posts about mplayer

  • Physics like asteroides

    as seen on Game Development - Search for 'Game Development'
    I try to make a ship that has the physic properties like asteroides. I have this for now(All in Java): Ship.class public class Ship { public static final float sMaxHealth = 0.1F; public static final float sMaxMoveVelocity = 5.0F; public static final float sMaxAngleVelocity… >>> More

  • mplayer audio desync

    as seen on Super User - Search for 'Super User'
    I have and avi file and an ac3 file that contains an alternate audio stream. I run mplayer like: mplayer -audiofile foo.ac3 bar.avi mplayer takes the audio stream from the ac3 file as expected, but when I try to scroll the video using arrows or pgup/pgdown keys, the audio gets desynced: mplayer… >>> More

  • Mplayer no sound when playing some movies

    as seen on Super User - Search for 'Super User'
    Ok, that's a bit of a strange problem, that somehow crept into my system. It used to work fine. Here is the problem as far as I can identify it. When I try to play certain video files with mplayer, there is no sound. As far as I can tell, it is only an issue with ac3 and dts sound tracks (using the… >>> More

  • Problems with freetype on OSX 10.7.4

    as seen on Super User - Search for 'Super User'
    I'm trying to install mplayer with OSD using homebrew. I've added both --enable-menu and --with-freetype-config=/usr/local/Cellar/freetype/2.4.10/freetype-config to the brew recipe. ==> Downloading http://www.mplayerhq.hu/MPlayer/releases/MPlayer-1.1.tar.xz Already downloaded: /Library/Caches/Homebrew/mplayer-1… >>> More

  • Conquer Video on Linux with MPlayer

    as seen on Internet.com - Search for 'Internet.com'
    <b>Linux.com:</b> "MPlayer is not your run-of-the mill video player. It's a multi-platform codec-chewing monster truck of a video player for the connoisseur of video players. It has options galore and has the flexibility to play almost anything under the sun." >>> More