General :: Why Priority Values Of Process Different

Oct 7, 2010

Code:
# ps
22355 pts/3 00:00:00 bash
#
# ps -l 22355
F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD
0 S 519 22355 22354 0 75 0 - 1338 wait4 pts/3 0:00 -bash
#
# ps -o pid,priority,command 22355
PID PRI COMMAND
22355 15 -bash
#

Why are the priority values of the process different? What is the difference? Is the value 15 the "nice" priority? Then, what is the value 75? Please, explain the difference of each result.

View 4 Replies


ADVERTISEMENT

General :: Elevate The Priority Of A Process Without Process Superuser Rights?

Jan 21, 2011

I have a high priority service that I start with sudo nice -n -10 process. This process does not need superuser rights though, except for the priority elevation. But nice requires superuser privileges to elevate priority.

View 3 Replies View Related

Server :: Swap Files Priority Values?

May 14, 2010

As mentioned in "man swapon" priority value is between 0 and 32767. BUT usually if we add swap devices without giving the priority, their priorities are set as -2, -3, -4 and so on; values which does not fall between 0 and 32767.Why is it so ? Any ideas ? However, I know we can change them through "swapon -p". But, if do not wish to do so, it uses -2, -3, -4 only. Like below,

Code:
[root@server ~]# swapon -s
Filename Type Size Used Priority

[code]....

View 2 Replies View Related

General :: View The Priority Of The Process?

Jun 18, 2010

How to view the priority (-20 to 19) of the process in fedora/redhat.

View 10 Replies View Related

General :: X: Warning; Priority Set To -1 Instead Of Requested Priority 0?

Dec 9, 2010

I have BT4 as an iso image and start it up by booting from cd, when i try the command root@bt~:startx it comes up with this fatal error. what can i do to get this work? and of course im new at this.

View 5 Replies View Related

General :: Get The Values For The User Time And System Time For A Process?

Aug 4, 2009

get the values for the user time and system time for a process.i have tried getrusage to get values of ru_utime and ru_stimebut these don't seem to be correct

View 3 Replies View Related

Programming :: Fork() - Variable Values Between Child And Parent Process?

Feb 24, 2010

Code:

int main()
{
int pi;
int i=10;
pid=fork();

[code]....

Q 1. The value of the variable pid returned by the fork() function will be greater than 0 in the parent process and equal to zero in the child process? but during forking, there values are exactly copied so what's went wrong here?

Q 2. "changes to the variable in one process is not reflected in the other process" why it is so? >> Even if we have variable i declared as a pointer or a global it wont make a difference.

Code:

int main()
{
int i, pid;
i=10;
printf("before fork i is %d

[code]....

Q. Through this program it is clear that both process is using the data from the same location, so where's the original value is residing when the child process is in execution.?

View 6 Replies View Related

General :: Raising The Priority Of Ftp?

Jan 10, 2010

I need to ftp all of my Linux server files & folders through FTP Pro . But I can just login as /home/www user and I cannot login as super user that is suitable for my case (as I want to see all of the files) . how can I raise the priority of ftp such that FTP Pro can login to my Linux server as root user ?

View 2 Replies View Related

General :: How To Queue Incoming Downloads And Schedule Them By Priority

Jan 11, 2011

In a office network, how to queue incoming downloads and later, it will be scheduled by priority? Is there any such open source project /tool available? I have heard about squid proxy, but does it allow re scheduling ?

View 1 Replies View Related

General :: Version Of System To Use Main Priority Gaming?

Feb 6, 2011

I dont have eny version or experiance of linux at the moment and im a bit of a neanderthal when it comes to computers. im trying to diside what version of linux to use to reformat my other computer, bearing in mind my main priority is gaming. which version would you think would be best?

View 5 Replies View Related

General :: Ubuntu - Change Swap Disk Priority Permanently?

Aug 8, 2010

I'm using two swap disks. Changing the order they are in in /etc/fstab and using "pri" in fstab doesn't have any effect. This is what it looks like /etc/fstab

#swap on other disk
UUID=90a1550c-84d6-4bde-8bc1-7c15292980f1 none swap sw,pri=-1 0 0
#swap on same disk
UUID=13b70e65-f1c3-4728-920f-9e92467d1df0 none swap sw,pri=-2 0 0

[Code]...

Its opposite of what it is in fstab, and changes to fstab have no effect.

View 1 Replies View Related

General :: How To Give Priority To Task Running In Cron.daily?

Nov 9, 2010

I have two custom tasks running daily. How do you give priority to one over the other?One of them is configured via the logrotate.conf. The other sits directly in cron.daily.I'd like the one in cron.daily to run after the script that is in logrotate.Please can you advise how to do this...

View 3 Replies View Related

General :: Enabling / Disabling Specific Priority In Syslog.conf?

May 11, 2011

Trying to figure out why the following two are treated differently...

Code:
*.warn;
kern.!=debug;auth.none;
authpriv.none;cron.none;mail.none;news.none -/var/log/syslog
and

[Code]....

According to man syslog.conf "You can specify multiple facilities with the same priority pattern in one statement using the comma (``,'') operator. You may specify as much facilities as you want. Remember that only the facility part from such a statement is taken, a priority part would be skipped."

Can someone confirm that this statement means that kern.!=debug is ignored in the first part because it's priority is not the same as the trailing facilities ending in .none?

View 1 Replies View Related

General :: Kills A Process Internally Or From Where It Picks File To Continue Its Process?

Jan 8, 2010

one tell me the internal working of kill command. that is how it kills a process internally or from where it picks file to continue its process.

View 3 Replies View Related

General :: How To Identify Raid Degrade Process / How To Rebuilt Process

Jun 12, 2010

send the details raid configuration how to use in linux el5 and how to indentify the raid degrade process and how to rebuilt the process.

View 4 Replies View Related

General :: Sending Signal From Child Process To Parent Process?

Sep 8, 2010

Code:

#include <stdio.h>
#include <unistd.h>
#include <signal.h>

[code]....

Description of what the code does or what i intended to do:

1. Created a child process from parent process using 'fork()'

2. Sent a signal 'SIGALRM' from child process to parent process using 'sigqueue' function.

(The Third parameter of 'siqueue' function contains the message (message msg) which the child process wants to send to the parent process.'msg' is a stucture instance containing a) pid of child and b) string) 5. Print the 'msg' sent by child process inside the signal handler function 'sig_action_function' of the parent process I am getting some junk value when this line is executed

Code:

printf("%d
",msg->cpid);

I expected to get the pid of child process, which the child process sent to parent process through the signal.

View 3 Replies View Related

General :: Process Scheduler A Part Of Process Queue?

Aug 12, 2010

as we all know Process Scheduler does Process scheduling and its a process as well. I was just wondering that if this happens then the Process "Process Scheduler" should be a part of Process queue as well.

So if there are 5 process are there in Process queue & process scheduler is administrating them then since its also a process, once it puts a process under RUN state it should itself go inside queue because at one instant only one process can get executed on a processor. This is quite confusing for me. Please help me out. I tried to search on this but could not find any relevant topics.

View 1 Replies View Related

General :: Find The Parent Process Of A Zombie Process?

May 4, 2010

How do you find the parent process of zombie processes?

When the child process is something where the parent is not entirely obvious...

Is there some way to list processes in tree format or something?

View 3 Replies View Related

General :: Process Shows Multiple Process Ids(pids)?

Nov 9, 2010

I have a process running on Linux.When i do ps -eaf | grep <myProcess>, it show muliple entries for <myProcess> with different pids for each entry.Kindly tell me what could be the reason for a process having multiple pids?

View 1 Replies View Related

General :: Bash - Use Sed To Get Values From File Name?

May 26, 2011

how to retrive every portion separately from following file name? DSA4020_frontcover_20346501_2011-05.doc

I want to retrieve informations as below;

name = DSA4020
type = frontcover
id = 20346501
date = 2011-05

is it possible to do with sed??

View 4 Replies View Related

General :: Hex Values Converting Inconsistently?

Dec 19, 2010

I couldn't really decide where this should be posted, but this is the most general of the forums. Anyway, I've been playing a wargame on intruded.net in which some of the challenges require me to pass hexvalues into the programs as character values. All is well with this, and usually I would use the shell to pass it in, but most of these programs use the gets() method to get my input.

Here comes the problem... The other day I was using my desktop which runs slackware 64 13.1 to do these challenges. My method was to use "echo -e 'xefxbexadxde'" to print them to the shell's standard output and then highlight and copy the resulting values to paste to the program. This works just fine on slackware, but when I repeated the same processes on Ubuntu 64 10.04 (which runs on my laptop) the 'xde' always turns up to be 'x00'. Then I tried some other levels with similar responses, not all the hex values convert to the correct ASCII characters.

View 2 Replies View Related

General :: Pass Two / Three Values To Grep?

Sep 22, 2010

Is there any way i can pass two / three values to grep. Basically i want to list the lines in the file with three different values. Currently I'm using three grep to get my work done.

EG: more Filename | grep text1 | grep text2 | grep text3
BRs

View 2 Replies View Related

General :: Replace Values In Log File?

May 14, 2010

I have the following values in my log file:

...
2010-05-13 11:00:00 k_TRANSFER OK (11)
2010-05-13 11:30:01 m_TRANSFER OK (21)
2010-05-13 12:00:00 k_TRANSFER OK (12)
2010-05-13 12:30:00 m_TRANSFER OK (32)
2010-05-13 13:00:00 m_TRANSFER OK (13)
...

I want to replace every number with it's decrement. For example, the above values should be:

...
2010-05-13 11:00:00 k_TRANSFER OK (10)
2010-05-13 11:30:01 m_TRANSFER OK (20)
2010-05-13 12:00:00 k_TRANSFER OK (11)
2010-05-13 12:30:00 m_TRANSFER OK (31)
2010-05-13 13:00:00 m_TRANSFER OK (12)

View 5 Replies View Related

General :: How To Set Ulimit Values As Default

Mar 18, 2010

I need to set ulimit values according to
I used
Code:
ulimit -c unlimited
ulimit -s unlimited
ulimit -u unlimited
But after I log again to my session values are set to default. Now can I set this values so they don't change after log out of after reboot?

View 2 Replies View Related

General :: Ran New Process After Sungrid Process Finished?

Mar 23, 2010

I want ro ran new commandy after sungrid finish his task.Exp:qsub -q bla command1; command2 command2 start only when job of command1 finished.

View 9 Replies View Related

General :: Save The Process And Log Out Then Log In And Continue The Process?

Nov 16, 2010

I've been running my shellscript for about half an hour now. It's taking longer than I thought to process all the data. I have the process ID of it. Is it possible to save the process and log out then log in and continue the process? I know how to pause a process using kill -pause pID and continue it using kill -cont pID. But that only work if you don't log out after pausing it.

View 5 Replies View Related

General :: CPU Speed Stepping And Nice Values?

May 25, 2010

My cpu is set via Gnome-power manager to automatically speedstep under demand....

the thing is i have a few nice level 19 processes running most the time that eat up all the idle time, this forces my clock speed up and as such makes the fan noisy and uses more power...

basically what i would like to do is to ignore process load with a nice over a certian level when determining weather to speed step.

View 4 Replies View Related

General :: 'set' Command To Output Vars Without Values?

Sep 3, 2010

I need a list of shell variables without values and without finctions. Can't find an option for set or typeset to print values only

View 4 Replies View Related

General :: What Means Values Of Load Average?

Jan 20, 2011

Anyone know what means the values of Load Average?

load average: 0.00, 0.00, 0.04
load average: 17.50, 13.44, 12.70

Sometime is low and many times is high.

View 1 Replies View Related

General :: Perl On Line To Take Out Select Values?

Jan 22, 2010

This is a Fix message - it is a type of protocol for transmitting financial dataeach number followed by a = sign is a tag - each tag means something. some tage are moe important than other.

8=FIX.4.1^9=0235^35=D^34=10^43=N^49=VENDOR^50=CUSTOME^ 56=BROKER^52=19980930- 09:25:58^1=XQCCFUND^11=10^21=1^55=EK^48=277461109^22= 1^54=1^38=10000^40=2^44=76.750000^59=0^10=165 18

[code]....

View 9 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved