Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to run a command (to open a Konsole session telnetted to multiple devices) at a higher priority. what is happening is every time I run the command the Konsole opens but only opens a few (there are 9 total that I need) of the sessions and gives a message "interrupted system call". well I don't know quite how to fix this or what the error means but I figured I would try to run the /usr/bin/konsole (in fedora 10) at a higher priority. well my book says that a lower nice value means a higher priority for the process. so in other words if I am getting it, the command "nice -n -10 /bin/Konsole" should run konsole at a higher priority which is what I want to try. perhaps it is doing that I don't know but when I then run ps axl and look at the 5th and 6th columns (PRI and NI) I see the following
you can see my pri value is now 10 and my ni is -10. however when I don't run the command starting with nice -n -10 the columns read 20 (pri) and 0 (ni). so shouldn't nice -n -10 command, make the pri value go above 20 (higher) not down to 10 (lower).
so what is actually happening here? I have read on the internet and in my book that starting a command with a nice -n -x (negative value up to -20) should raise the priority of the process and that I should see the priority (pri in the ps command output) up and not down.
help me out please. oh and the command being run is from within gns3 a cisco emulator so I am trying to open multiple telnet session in tabs using /bin/konsole. the complete command run from within the gns3 app is...
got the command from the gns3 linux documentation, the exact command they give is the above minus the "nice -n -10" which is what I am putting in.
thank you much in advance, it would be great to
1) solve the "interrupted system call" message that pops up when I run the command (which again only opens a few of the connections not all thus defeating the overall command purpose) and
2) regardless of if I can fix the above issue, get a clear answer as to what effect "nice -n +-x command"
should have on that commands priority and how that will be displayed by the ps command.
I know that's a lot but I wanted to provide as much info as I could again thanks much in advance.
oh also in my fedora 10 I am running the gnome desktop but I know the Konsole is a kd3 app..I don't know if that would be messing things up a bit as well, just thought I'd ask. I would love to simply use the gnome-terminal to open multiple tabs but I am not that advanced would need someone to show me the appropriate commands
Generally, you should never try to run things at a "higher" priority. Instead, "be nice" whenever you can.
The scheduler will endeavor to keep the CPU always as busy as possible. If there's work to be done it will do it. Process priorities come into play when "something's gotta give."
The "nice" command volunteers to run a command at an inferior dispatching priority ... "go ahead, I'll be nice, you can play through if you need to." That's it.
Strange as it may seem: instead of trying to tell the scheduler "what's urgent," help it to identify "what's really not."
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.