LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-09-2017, 04:55 AM   #1
igadoter
Senior Member
 
Registered: Sep 2006
Location: wroclaw, poland
Distribution: many, primary Slackware
Posts: 2,717
Blog Entries: 1

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
Setting real-time priority by non-root user for Squeak


Hi,

I am trying to run Squeak - system for Smalltalk development, but
Code:
piotr[Squeak5.1]$ ./squeak.sh 
Using /home/piotr/Squeak5.1/bin/squeak...
pthread_setschedparam failed: Operation not permitted
Read e.g. https://github.com/OpenSmalltalk/opensmalltalk-vm/releases/tag/r3732#linux
I did everything as in this tag, but it doesn't solved the problem. I googled around but all I found concern mostly kernel programming. I can run squeak as root but of course it is last resort solution. Is there a way common user to obtain permission to change process scheduling? If not in general then for this particular process.

EDIT: at this moment I started to use Pharo Smalltalk like language environment as replacement for Squeak. But nonetheless I want to understand the issues about that lack of permission.

I solved this problem with 'set_rlimits' command (found on SB). I followed man page for 'set_rlimits' added entry for squeak, then this command
Code:
$ set_rlimits -r=5 ./squeak.sh
works. Note that solution provided here https://github.com/OpenSmalltalk/ope...ag/r3732#linux requires in fact PAM.

Last edited by igadoter; 03-09-2017 at 05:08 PM. Reason: Changing context, problem solved
 
  


Reply

Tags
setschedparam squeak



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux pthread priority real time scheduler (SCHED_RR) doesn't seem work properly Jia Hong Programming 4 04-30-2014 07:16 AM
Linux pthread priority real time scheduler (SCHED_RR) doesn't seem work properly Jia Hong Linux - Kernel 1 04-29-2014 01:26 AM
[RTAI] Real time thread priority in user space Aquarius_Girl Linux - Kernel 4 04-20-2012 08:31 AM
Kernel scheduler - Maximum Real time priority reg13 Linux - Kernel 7 07-27-2011 02:49 PM
which value is for highest priority for real-time processes icoming Linux - Software 3 12-19-2009 10:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration