Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Howto - or - Feature Request - Process to Core locking
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
John S  
View profile  
 More options Mar 7 2012, 5:00 pm
Newsgroups: comp.os.linux.development.system
From: John S <john.s43851...@gmail.com>
Date: Wed, 7 Mar 2012 14:00:26 -0800 (PST)
Local: Wed, Mar 7 2012 5:00 pm
Subject: Howto - or - Feature Request - Process to Core locking
  My project is currently developing a DSP application that will run
on a dual-cpu X5670 system - having a total of 12 cores/24 threads.

  We have an issue we have yet to find a solution for.  Our Signal
Processing engines are locked to specific hyperthreads (a total of 8
of the 24 hyperthreads) in an attempt to minimize conflict with other
tasking.  Each engine typically uses about 80% of that threads CPU
time.
  The problem is, during the 20% time that engine is idle, the
operating system schedule sometimes places other tasks on one of the 8
hyperthreads the engines are using - because the current cpu usage is
approx 0%.  This is a problem if the scheduler places another process
on one of the engine's core/hyperthreads while that engine is idle
because when the engine comes out of suspend, it will need the
undivided attention of that core - least it not be able to keep up
with the data stream.
   We have tried cpuset and taskset to control affinity, but these
haven't fully resolved the issues.  The CPU scheduler will still
utilize an engine's core even though other cores are either unused or
have low useage.
   Is there a way to have the CPU scheduler assign processes based on
average CPU usage?  If so, this would keep the scheduler from using an
engine's core.

   Any suggestions or ideas would be greatly appreciated.

  Thanks,
  John


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ersek, Laszlo  
View profile  
 More options Mar 7 2012, 7:17 pm
Newsgroups: comp.os.linux.development.system
From: "Ersek, Laszlo" <la...@caesar.elte.hu>
Date: Thu, 8 Mar 2012 01:17:57 +0100
Local: Wed, Mar 7 2012 7:17 pm
Subject: Re: Howto - or - Feature Request - Process to Core locking

On Wed, 7 Mar 2012, John S wrote:
>   We have tried cpuset and taskset to control affinity, but these
> haven't fully resolved the issues.  The CPU scheduler will still
> utilize an engine's core even though other cores are either unused or
> have low useage.

I may be misunderstanding this: have you tried restricting everything else
to the complement CPU set?

(Eg. find the one script that's used to start "everything" in the system
when it reaches the preferred multi-user runlevel. (On Debian
/etc/init.d/rc seems possible.) Use "taskset -p complement_mask $$" in it;
it's children will inherit the affinity. Use "taskset mask_i engine i"
(like now) to start a given engine instance.)

Laszlo


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John S  
View profile  
 More options Mar 11 2012, 6:02 am
Newsgroups: comp.os.linux.development.system
From: John S <john.s43851...@gmail.com>
Date: Sun, 11 Mar 2012 03:02:56 -0700 (PDT)
Local: Sun, Mar 11 2012 6:02 am
Subject: Re: Howto - or - Feature Request - Process to Core locking

    Will give it a try.  Thanks

    John


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »