Results 1 to 6 of 6

Thread: Unable to assign thread priority/scheduling using pthread_setschedparam on 11.4

  1. #1
    Join Date
    May 2009
    Location
    London
    Posts
    72

    Default Unable to assign thread priority/scheduling using pthread_setschedparam on 11.4

    I have an issue while running my application on openSUSE 11.4 whereas it runs fine on/till 11.3

    This application creates threads with different priorities. When running pthread_setschedparam( ) it returns 1, which is apparently EPREM.

    Though i run this program with sudo command i.e. sudo <app_name>

    I already tried to update my /etc/security/limits.conf file after reading this Post but no joy...

    also tried runing application as root user for command line and even logging in to root user account but

    This is not compile time error this is run time error. (I think above makes this sense but just to be more clear)

    This program was fine till 11.3 now i tried porting it to 11.4 but i dont know if something is broken in 11.4 regarding pthread_setschedparam(), or can anyone tell me how to run this function in 11.4 i presume lot of you guys are already running threaded apps on 11.4

    Thanks in advance

  2. #2

    Default Re: Unable to assign thread priority/scheduling using pthread_setschedparam on 11.4

    I have this exact same issue, I believe. I can run the program fine (as root) on 11.3 and on 11.4 with the 2.6.39 kernel, but 11.4 with 2.6.37, I get the issue you have. Did you ever resolve it?

  3. #3
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    10,730

    Default Re: Unable to assign thread priority/scheduling using pthread_setschedparamon 11.4

    On 10/13/2011 07:46 PM, rob g wrote:
    >
    > I have this exact same issue, I believe. I can run the program fine (as
    > root) on 11.3 and on 11.4 with the 2.6.39 kernel, but 11.4 with 2.6.37,
    > I get the issue you have. Did you ever resolve it?


    i guess there might be better, and more prompt attention were you to
    post in the programming/scripting forum, here: http://tinyurl.com/5v695w4

    --
    DD
    openSUSE®, the "German Automobiles" of operating systems

  4. #4

    Default Re: Unable to assign thread priority/scheduling using pthread_setschedparamon 11.4

    Most recent post there was 4 days ago...not promising. But I'll try it. I just replied to this one since search turned it up. Thanks!

  5. #5
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    10,730

    Default Re: Unable to assign thread priority/scheduling using pthread_setschedparamon 11.4

    On 10/13/2011 09:06 PM, rob g wrote:
    >
    > Most recent post there was 4 days ago...not promising.


    the speed of the reply is not as important as the worth/accuracy of the
    reply..

    there are programmers/hackers who hang out in that forum (but not this
    one) that you _want_ to respond..

    and, they might not come through more than once a week (but _never_
    though here--because they maybe don't enjoy helping folks who are having
    trouble with an application [which they haven't cracked the doc on])..

    _some_ of those hackers _might_ come through here (and there, once a
    week)...and, they might see a question here (which is in the wrong
    forum) and totally ignore it (as they did since last June when the
    unanswered question was posed--maybe because the poster didn't bother to
    read and think about where would be the correct place to ask)..

    make sense?

    for more enlightenment spend some time here: http://is.gd/2BfI3

    --
    DD
    openSUSE®, the "German Automobiles" of operating systems

  6. #6
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    10,943
    Blog Entries
    2

    Default Re: Unable to assign thread priority/scheduling using pthread_setschedparamon 11.4

    Do you really need to assign priorities to individual threads or do you just need to set the process priority of the application?

    If the latter, search these forums for my posts on using nice and re-nice. Re-nice can re-assign priority of a running process/application, whereas nice allows you to set the priority of the process or application before launching. Note that both of these apps set relative priority, not a fixed priority.

    HTH,
    Tony

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •