SMP processor management
From: Michel Bardiaux (mbardiaux_at_peaktime.be)
Date: 10/29/03
- Next message: Andrei Voropaev: "Re: TCP socket"
- Previous message: Roger Leigh: "Re: [ANN] Protect you Unix Shell Scripts!"
- Next in thread: Josef Möllers: "Re: SMP processor management"
- Reply: Josef Möllers: "Re: SMP processor management"
- Reply: Pete Zaitcev: "Re: SMP processor management"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: Andrei Voropaev: "Re: TCP socket"
- Previous message: Roger Leigh: "Re: [ANN] Protect you Unix Shell Scripts!"
- Next in thread: Josef Möllers: "Re: SMP processor management"
- Reply: Josef Möllers: "Re: SMP processor management"
- Reply: Pete Zaitcev: "Re: SMP processor management"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|