General :: Pinning Process To A CPU?
Mar 24, 2011I wish to pin a process to a CPU1 in my dual CPU machine - how can I do it in Linux - any pointers ?
View 2 RepliesI wish to pin a process to a CPU1 in my dual CPU machine - how can I do it in Linux - any pointers ?
View 2 RepliesI want to install php 5.3 on debian wheezy
/etc/apt/sources.list
Code: Select alldeb http://http.debian.net/debian wheezy main
deb http://http.debian.net/debian wheezy-updates main
deb http://security.debian.org wheezy/updates main
/etc/apt/preferences.d/preferences
[Code] .....
I don't know why apt pinning not working.
I am thinking about upgrading, again, from Wheezy to Jessie. When I had Jessie installed, prior to a crash, I noticed that some of the Gnome games in Jessie are not as esthetically pleasing as they were in Wheezy. Also, some of the games (eg. mines) were slower and seemed to use a lot more CPU resources. So my questions are:
1. If I pin those programs that I want to keep will that also pin the dependencies for those programs?
2. If those dependencies are pinned, how might that impact other programs, in Jessie, that might depend on later packages?
3.If I don't pin those programs that I want to keep is it possible to install those programs from Wheezy after I upgrade to Jessie, without causing issues with Jessie?
I keep on trying to upgrade iceweasel on Jessie for a few months now and apt-listbugs always finds some scary bug so I pin the package. About 3 times I pin the package, wait a month or so, delete the apt-listbugs file and try again and it finds another grave bug. Right now it's this one:
Code: Select allgrave bugs of iceweasel (31.8.0esr-1~deb8u1 → 38.3.0esr-1~deb8u1) <Outstanding>
b1 - #789955 - devscripts: [bts] "bts show" command displays error: (process:29614): GLib-CRITICAL **: g_slice_set_config: assertion 'sys_page_size == 0' failed
So I see my iceweasel version is "31.8.0esr-1~deb8u1" now and it looks a bit old. Is there any security issues I need to be aware of?
I want to pull a couple of packages from Debian Testing, but I can not get apt pinning to lower the testing repo's priorityI add the testing repo to the bottom of /etc/apt/sources.lst.I then add this in /etc/apt/preferences but when I do 'sudo aptitude update' and then 'sudo aptitude full-upgrade', it wants to upgrade all packages to the versions in debian testing.
View 5 Replies View RelatedI'm using Debian testing but I want Shotwell (and nothing else) from experimental. I also like to be notified when there is an update to Shotwell in experimental. Will that be achieved if I add experimental to sources.conf and the following to preferences?
Package: shotwell
Pin: release a=experimental
Pin-Priority: 600
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 RelatedI 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 Relatedsend 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 RelatedCode:
#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.
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.
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?
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 RelatedI 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 RelatedI'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 RelatedI want to kill parent process after "fork()" method. but if I kill parent process with "exit(0)" method, main() thread is terminated as well so child prosess doesn't work anymore. Is there any way to kill only parent process without affecting to child process?
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
[code]....
I've some file with .sh extensions that runs some softwares.Now,how do I stop running that filesI know we run the command ./start_tomcat.sh to start the apache.Is there any command to stop that file/process or is it just kill the process to stop the process
View 2 Replies View RelatedI need a command to get the process name by process id.
View 2 Replies View RelatedI have a shell script to identify whether the process is running or not. If the process is not running, then I execute another script file to run my application. Below is my script and saved this script as monitorprocess.sh Code: #!/bin/bash
result=$(ps -ef | grep -v grep | grep "applicationname.sh" | awk '{print $2}')
echo $result
if [ "$result" == "" ];
[code]...
Is there any difference in cpu usage for process in init.rc(runs automatic when boot is happened) and manually running process. Will these both have same priority by default...?
View 1 Replies View RelatedI tried googling but didn't get any answer for this.I have a process called "abc" and it is running with PID "123".I have a putty session opened with PID "999".I am giving kill -TERM 123 from putty session.My process "abc" before dying it should catch the PID of the terminal which provided TERM signal to it.Is there any way to find this out
View 2 Replies View RelatedMy Ubuntu system is occasionally becoming very sluggish. I'm running many things simultaneously and it's very difficult to tell which program is the culprit.
I suspect that the sluggishness is due to disk activity since the CPU usage is consistently under 50% on each of the 4 cores of the CPU, and over 30% of the 6GB of RAM are free.
Is there a tool that can show me in real time the number of disk IO operations per second and the amount of data read/written per second? Can all this info be broken down and displayed per process?
I have a shell script to identify whether the process is running or not. If the process is not running, then I execute another script file to run my application. Below is my script and saved this script as monitorprocess.sh
Code:
#!/bin/bash
result=$(ps -ef | grep -v grep | grep "applicationname.sh" | awk '{print $2}')
[code]...
Given the pid of a process that's running on a x64 linux, how do I tell if it's running a 32 or 64 bit binary? I can look at the binary it's running out of 'ps' and do a file on that but I was wondering if there's a way to tell by looking at /proc/ or something like that.
View 2 Replies View RelatedI am developing a node application and there is an option to set the process title (process name). This only sets it in some tools (like ps and top), but not in htop or netstat.
I found this article that explained how most applications do it, but it doesn't change in netstat.
That lead me to wonder where those programs are getting the process name. Would they be getting it from /proc/##/cmdline? (## being the PID of the process)
I figure messing with things in /proc is a bad idea (and probably not possible), so if this is where those programs are getting it, is there a way to change it?
From previous post I have a netbook from work that I have Debian Squeeze running on and did a full disk encryption (minus the minimal boot loader in /boot) in case it gets stolen. However, with a laptop/netbook it has a battery and I believe the encryption protocol (LUKS - correct me if I'm wrong) uses RAM to store the decrypt key. So if someone is quick they can dump RAM and analyze it until they get the key. Or even if the key is not stored there they could dump RAM which would have recent files cached unecrypted.
Is there an easy process of encrypting RAM while still using as RAM? What I mean by that is I know you could make a ramdisk sort of like how Live CDs do and encrypt that, but at best (that I know of) I can only mount it as swap space.
i have ported linux into arm and i want to run two background process on target
i have two c programs a.c and b.c
i have cross compiled them as
arm-linux-gcc -o a a.c
[code]...
I am using centos 5, Kernel 2.6.18-53.el5. I am using 2 quad core processor with 4gb of ram
I am trying to figure out the significance of %CPU in the ps command.
My astreisk process %CPU is very high at the moment, at 115. I want to know if it is a cause for concern? If I do a top then the load of the box is very low.
Code:
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 2872 115 1.4 628664 58372 ? Sl 14:56 190:30 /usr/sbin/asterisk -f -vvvg -c
I am currently writing a JAVA script to monitor certain unix processes through JConsole. Upon having lots of trouble with runtime.exec, i decided to bypass the top/ps command call and just get the information straight from /proc/*pid*/whatever.Now i can pull back any information from any of the files I want, and the current way i determine the CPU usage of a process is as follows:Add the UTime and STime of that process from /proc/pid/stat then divide my pidCpu by UTime + STime + NTime from /proc/stat, then multiply that by 100, should give me the % cpu usage a process is using, right?Theory being if I get the jiffies assigned to my process, I can divide that by the total jiffies the cpu assigns.
However, my results seem to vary from the ones gathered from top and ps. What am I doing wrong?
I would like to limit any process from using more than 500 MB of RAM. AFAIK this is done using RSS in /etc/security/limits.conf but the process called gnome-panel apparently is using 618436 kB of VmRSS. How can this be ?
Quote:
/etc/security/limits.conf
* hard rss 512000
Quote:
username@debian:~$ cat /proc/3002/status
Name:gnome-panel
State:S (sleeping)
Tgid:3002
[code]....