SMP processor management

From: Michel Bardiaux (mbardiaux_at_peaktime.be)
Date: 10/29/03


Date: Wed, 29 Oct 2003 11:53:10 +0100

This is about a video grab application; to simplify, it has 3 processes:
one handles the low-level video operations, one ditto for audio, one
does MPEG formatting. They communicate via a circular list of buffers in
shared memory. And we run 2 grabbers on a P4/2.4 uniprocessor with
little trouble. On an P3/800 biprocessor, however, things do not go
smoothly.

The audio and video processes have to respond quickly to video sync and
audio-read-is-complete events, so they should be on the boot processor
since (IIRC) that is the one running the kernel. The compression
processes, OTOH, should be on the other processor (contrary to naive
expectations, MPEG compression is NOT a CPU hog, not with a P3/800; the
most intense CPU activity comes from the audio process, trying to tweak
the samples to correct for funky soundboard frequencies - and 101% of
all the soundboards I have used had funky xtals!)

So, I have been looking for a way to force association of a process with
a CPU on an SMP machine, running Linux Debian 3 (woody), kernel 2.4.18.
Havent found anything, and google is not very good with keywords like
thread, process or processor...

-- 
Michel Bardiaux
Peaktime Belgium S.A.  Bd. du Souverain, 191  B-1160 Bruxelles
Tel : +32 2 790.29.41


Relevant Pages

  • Re: Recording Audio for a DVD
    ... break your video. ... videos I've seen that sound like they were recorded with a consumer ... video is gorgeous, if the audio stinks, it cheapens the value of the ... whatever you plug into this microphone jack, ...
    (rec.video.desktop)
  • Re: WMP11 stops playing files that played fine in wmp10
    ... Audio Codecs ... DMO WMAPro over S/PDIF DMO 0162 wmadmod.dll 11.0.5358.4827 DMO WMA Voice Decoder DMO 000A, 000B wmspdmod.dll 11.0.5358.4827 DMO Pixela Sampling Rate Regulator DMO 0001 ... ICM Intel IYUV codec IYUV iyuv_32.dll 5.1.2600.2180 ICM Microsoft RLE MRLE msrle32.dll 5.1.2600.2180 ICM Microsoft Video 1 MSVC msvidc32.dll 5.1.2600.0 ICM Microsoft YUV UYVY msyuv.dll 5.3.2600.2180 ICM Toshiba YUV Codec Y411 tsbyuv.dll 5.1.2600.0 ICM Microsoft YUV UYVY msyuv.dll 5.3.2600.2180 ...
    (microsoft.public.windowsmedia.player)
  • FS DSR-80 DVCAM VTR very very LOW hours. Unit in NY $3400
    ... jog audio and digital slow functions. ... * Built-in SMPTE Time Code Generator/Reader ... * The DVCAM digital recording format for video ... provides a recognizable picture at various speeds over a ...
    (rec.video.desktop)
  • FS DSR-80 DVCAM VTR very very LOW hours. Unit in NY $3400
    ... jog audio and digital slow functions. ... * Built-in SMPTE Time Code Generator/Reader ... * The DVCAM digital recording format for video ... provides a recognizable picture at various speeds over a ...
    (rec.video.marketplace)
  • FS DSR-80 DVCAM VTR very very low hours. Unit in NY $3400
    ... jog audio and digital slow functions. ... * Built-in SMPTE Time Code Generator/Reader ... * The DVCAM digital recording format for video ... provides a recognizable picture at various speeds over a ...
    (rec.video.production)