General :: RT Process Stuck As Runnable 'R' / But Never Executes

Jul 28, 2011

I have a hard to reproduce (seen a couple times in a month) issue where my program seems like it is hung (not increasing in cputime), however, it is in the runnable state and never gets to run. The cpus are 99% idle according to vmstat and the load is 5 (which is equal to the number of threads in my program that are in the R state) according to ps, and there are no processes on the system in the 'D' state. The other major oddity is that one of the migration threads has a cputime usage almost equal to the uptime of the system. Typically migration threads have a cputime on the order of seconds across hundreds of days of uptime, but in this case the migration thread has DAYS of cputime according to ps.

The last time this happened, I went around saving as much /proc/X information that I could into logs for referring to later, before I had to reboot the box to get it running back to normal. (because in this state, a kill -9 is not heeded by my program)Does anyone have any idea what could cause this? I am not sure if this is a scheduling bug or a bug in my program (the likelier case).I have a wealth of logs to look through if anyone can suggest something specific to look for.

View 4 Replies


ADVERTISEMENT

Ubuntu :: Part Of Boot Process Executes Just Before Login Screen?

Apr 12, 2011

In Ubuntu 10.10 I want to have a shell script execute on bootup after everything else is done, *just* before the computer gets to and sits at the login screen. I find this easy in CentOS/Red Hat. If I place my scripts in /etc/inittab near the end, right after the mingettys, that is PERFECT. But Ubuntu has no /etc/inittab and I have spent the past few days going over and over and OVER more info about Upstart and the rcX scripts and I can't seem to get it. Anything I place in an rcX script runs too late, only after the machine is past the login screen i.e. a human must log in first. And I would rather not have to enable auto-login. I've heard that Ubuntu will honor an /etc/inittab file if you create one, and it does, but that too runs too late, only after a human has logged in. Can anyone tell me where a script should be placed in Ubuntu to execute after all system initialization is done, but before human interaction is required?

View 3 Replies View Related

General :: How To Make A Runnable Thread?

Feb 11, 2011

I wrote a code .sh I want to make it a runnable thread.
Q1: How can I do that in Ununtu?

Q2: I put that file (x.sh) in the "Auto start" program.I choose start at "start up" but it open the code editor page.I want it to be run behind backgroun...Have I convert it to .exe firstly ?!

View 17 Replies View Related

General :: Fedora 14 - Stuck At Post Installation Process

Feb 7, 2011

I am pretty new to Linux OS's, but I have gone through the process of installing linux onto several of my system already. The problem I am having is when I attempt to install Fedora 14 onto my Unbuntu 10.10 (erasing Unbuntu to be specific) I am stuck at the Post-Installation process.
I am using a CD-RW to install Fedora onto my Ubuntu, and I installed Ubuntu onto the computer originally with another CD-R.

I assume this usually takes a few minutes, as the pop-up says that it may take several, but it has been several hours with no progress. I was pretty far into the installation when the pop up appeared, and it said:
"Post-Installation: Performing post-installation filesystem changes. This may take several minutes.".
As I said, it has been several hours.

View 4 Replies View Related

Red Hat / Fedora :: What Happens When A Process Executes Unlink(".");

Feb 19, 2010

What happens when a process executes unlink(".");

What is the current directory of the process ? (Assume superuser permissions are given.)

View 1 Replies View Related

Ubuntu :: Does Not Boot Up Stuck At Logo With Blinking Process Bar

Jun 21, 2011

I have currently installed the ubuntu 11.04 natty narwhal edition through the wubi installer alongside windows 7. I wanted to just check out what the kde environment had to offer differently from the default desktop environment which is gnome unity environment.

I installed the kde environment using some sudo command given by google. After using kde environment for a few hours, I just began to feel, I liked the default gnome environment better (in classic mode) as compared to kde as I was more used to the former.

So I uninstalled kde with another sudo command which I got by googling. At the final step of the uninstallation, I admit I am not sure whether what I did was right or wrong. There was sth related to 'daemon' that popped up eventually and I chose yes for that and kde was uninstalled successfully or atleast that's what I thought.

But to my horror, when i tried rebooting my laptop to ubuntu gnome, the blue coloured kubuntu logo was popping once again and I had to go back to the synaptic package manager and delete sth called the 'plymouth' package to remove the kubuntu logo.

Now after doing all these, when I tried booting ubuntu, I was not able to get to the gnome login screen. The screen was just stuck with the ubuntu logo and the process bar blinking and gnome never started.

When I pressed the Esc key to check out what was happening from behind, I could see that some processes were being checked and there was a [ok] after everything and there was a [FAIL] next to "starting CPU interrupts balancing daemon". And the terminal screen ended with "stopping system V run level compatibility". I am not sure if this might be the root cause of blocking the boot-up. But I couldn't get a screenshot of those intermittent terminal screens as I was not in a position to type in any commands such as fbgrab which can be used to grab a screenshot of the terminal screen.

Eventually after intense googling, I figured how to manually configure gnome to start up. I pressed the Cnt + Alt +F1 as soon as the white ubuntu logo popped up and after logging in into my ubuntu account through the terminal interface, I typed in the following things:

And then voila I got the gnome login screen. I temporarily heaved a sigh of relief. (by the way I saw something flash quickly on the terminal moments before it went to the gnome login screen like "you need not init this way or sth"..I just couldn't catch sight of it properly as it flashed only for a few moments)

But I am not satisfied. Obviously there might be a way to set this problem right isn't it? Kindly someone pls throw some light on this issue. I want gdm to be automatically activated during boot. Its a big pain to manually configure it everytime I boot. Is it possible to do a windows restore to set the ubuntu right? But I saw in some forums mention that something called the boot.ini will botch up if we perform a system restore in win 7.

Method that does not involve uninstalling ubuntu and reinstalling it. This is because I have done a lot of tweaks, optimisations and installed lot of apps in it. I do not have a system image backup as well. So it will be a nightmare to do all these things over and over again. The mistake or rather the drawback from my side is I just have my laptop alone and do not have another standalone desktop to experiment with linux.

View 1 Replies View Related

Programming :: Fork()ing Multi Child Process In C - Stuck

May 12, 2011

i got basic knowledge about creating a single child from a parent using fork(). But when it comes into creating multiple children, i am simply stuck. I am trying to create two processes from a parent and it would wait for both two processes to finish. my attempt is as below

[Code]....

View 3 Replies View Related

Fedora :: 13 Crash - Reboot Laptop And Stuck After Loading Process

Jun 2, 2010

it stuck after loading. should got login window. instead it show me a blank page and a blinking courser i can only press ctrl+alt+del it will reboot my laptop n stuck after the loading process

View 2 Replies View Related

Ubuntu :: 11.04 - Doesn't Boot Up Stuck At Logo With Blinking Process Bar ?

Jun 23, 2011

I have currently installed the ubuntu 11.04 natty narwhal edition through the wubi installer alongside windows 7. I wanted to just check out what the kde environment had to offer differently from the default desktop environment which is gnome unity environment.

I installed the kde environment using some sudo command given by google. After using kde environment for a few hours, I just began to feel, I liked the default gnome environment better (in classic mode) as compared to kde as I was more used to the former.

So I uninstalled kde with another sudo command which I got by googling. At the final step of the uninstallation, I admit I am not sure whether what I did was right or wrong. There was sth related to 'daemon' that popped up eventually and I chose yes for that and kde was uninstalled successfully or atleast that's what I thought.

But to my horror, when i tried rebooting my laptop to ubuntu gnome, the blue coloured kubuntu logo was popping once again and I had to go back to the synaptic package manager and delete sth called the 'plymouth' package to remove the kubuntu logo.

Now after doing all these, when I tried booting ubuntu, I was not able to get to the gnome login screen. The screen was just stuck with the ubuntu logo and the process bar blinking and gnome never started.

When I pressed the Esc key to check out what was happening from behind, I could see that some processes were being checked and there was a [ok] after everything and there was a [FAIL] next to "starting CPU interrupts balancing daemon". And the terminal screen ended with "stopping system V run level compatibility". I am not sure if this might be the root cause of blocking the boot-up. But I couldn't get a screenshot of those intermittent terminal screens as I was not in a position to type in any commands such as fbgrab which can be used to grab a screenshot of the terminal screen.

Eventually after intense googling, I figured how to manually configure gnome to start up. I pressed the Cnt + Alt +F1 as soon as the white ubuntu logo popped up and after logging in into my ubuntu account through the terminal interface, I typed in the following things:

And then voila I got the gnome login screen. I temporarily heaved a sigh of relief. (by the way I saw something flash quickly on the terminal moments before it went to the gnome login screen like "you need not init this way or sth"..I just couldn't catch sight of it properly as it flashed only for a few moments)

But I am not satisfied. Obviously there might be a way to set this problem right isn't it? Kindly someone pls throw some light on this issue. I want gdm to be automatically activated during boot. Its a big pain to manually configure it everytime I boot. Is it possible to do a windows restore to set the ubuntu right? But I saw in some forums mention that something called the boot.ini will botch up if we perform a system restore in win 7.

Method that does not involve uninstalling ubuntu and reinstalling it. This is because I have done a lot of tweaks, optimisations and installed lot of apps in it. I do not have a system image backup as well. So it will be a nightmare to do all these things over and over again. The mistake or rather the drawback from my side is I just have my laptop alone and do not have another standalone desktop to experiment with linux.

View 9 Replies View Related

Fedora :: Yum Update Install New Kernel - Boot Process Stuck

Mar 24, 2010

I'm not sure what caused it, but it happened right after running 'yum update'. It may be because it installed a new kernel, and there are now two kernels listed in my grub.conf and at boot; 2.6.31 and 2.6.32. System boots through a list of things it's starting up and stalls out at ATL or ADL or ADM maybe. It hangs there for a minute or so then flickers. This happens every time at boot. It's a bit difficult to post more information since I can't get past that part of the boot process, and I can't seem to be able to skip it either. It may be worth mentioning that this is a mini-itx motherboard. Intel Atom 330 1.6, 2GB DDR2, onboard GeForce 9400m. It's a zotac ionitx-a-u. I've installed a fresh copy of Fedora 12 lxde.

View 3 Replies View Related

General :: Terminal Executes Mi Script To Create Vector

Dec 6, 2010

I am trying to create a script that creates a vector and displays it. I used the command inivec but it didn't work.

[code]...

How do I make it so the terminal executes mi script to create a vector. I know MV is the name and the output should be aa aa aa, but nothing?

View 3 Replies View Related

General :: How To Create Multiple Children Before Any Child Executes

Aug 27, 2010

Iv got an assignment to complete and I'm stuck at the basic level.

A part of the assigned problem is :

The main process will read the file, and will create N number of child processes (Where N is taken as input) as early as possible before all the children starts its execution. Before creation of each child, the main process should read the file to store all the required data in then corresponding data structure. Child processes should not read the file for getting their information.

As far as my knowledge about this , the child executes before the parent. How do I make the parent not pass the control to it's children before it finishes creating all the children?

View 3 Replies View Related

General :: Unix Script That Executes Sql Query In A While Loop?

Jan 8, 2011

I have a logfile which looks like:

tableabc 1786rows
tabledfg 8374rows
tablefhd 726rows

[code].......

Now i have to writ a script which takes this log as input and quesries the DB for each table. So,I want to: input the logfile
start a while loop.So,while read LINE This variable LINE would store the table name by CUT using a delimiter once the table name is ready it makes a connection to DB and queries the table for its rowcount writes the rowcount to an O/P file.

View 3 Replies View Related

General :: Shell Script That Logs Into Another Machine And Executes Some Commands?

Jan 5, 2011

I am trying to write a script that connects to a server and executes some commands on there. Something like this:

#!/bin/sh
telnet remote_machine
cd /home/some_directory
cat a_file_in_current_directory

Unfortunately after login/password I guess the script doesn't jump past the telnet command, until I exit. What do I need to do to make the script start executing commands in the remote shell?

View 1 Replies View Related

General :: Bash Scripting - Executes A Few Perl Scripts - Create A New Array And Take The Hostname

Apr 4, 2011

I'm writing a bash script that executes a few perl scripts. One of the perl scripts that I need to execute requires two arguments with it. The arguments are stored in a txt file, each line contains a hostname and its corresponding IP address separated by a ":" (colon), the txt file looks like this below:

[Code]...

I'm not sure if it's the best way to accomplish this but here it goes. In the bash file, let's call it getHosts.sh, I create an array and assign each line of the file to an element in that array. I then think I need to create a new array where I take the hostname (which is before the ":") separate it from its IP address and place the IP address on a new line just below the hostname (this way I can reference to it like $hostNames[$x] would be the hostname, and $hostNames[$x+1] would be its IP address). So the new array would now look like this below:

[Code]...

View 4 Replies View Related

OpenSUSE :: The Probing Hardware Process Gets Stuck At The Probing Monitor Phase?

Apr 7, 2010

I am trying to find out what's my soundcard model as my sound is not working very well.I am using YasT2 - > Hardware Information to find out what is the problem. The probing hardware process starts but gets stuck at the probing monitor phase (49%). I have tried to rerun the process after rebooting the pc. I have let the process to run for a few hours but still it was stuck at the 49%What should I try to do to skip this obstacle and get information about my sound hardware.

View 4 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 :: 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

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

Ubuntu :: How To Tell Which Binary Actually Executes

Apr 20, 2010

Is there a command that can tell me which binary actually executes for some program name? "whereis" seems to do something different.

Specifically, I am trying to hunt down and kill a python 2.6 installation that just won't die.

whereis just seems to be returning anything with "python" in its name, but I want to know which binary thinks it is python 2.6.5. (By the way, I've tried all the above manually, and it isn't any of them)

View 6 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

Ubuntu :: Conky Startup Script Never Executes

May 6, 2010

I'm having trouble getting conky to boot friendly-like with the gwm. If I just set conky as a start up program, it floats above other windows, it seems to have loaded before the desktop actually did. So I googled it and found that many people use the conky shell scripts to make it sleep until the desktop load. I created one, made it executable, and restarted to see the effect and found that conky never launched at all (not visible, no running process).

Here is my startup shell script for conky:
Code:
#!/bin/bash
sleep 10 && conky;

This is how it should look if working properly. If I launch conky after login, it looks like this every time. [URL]. This is how it looks if I simply set it to open upon startup with no script. [URL]. If I try to open it with the script, I simply never see anything in conkys place. It seems like the script never executes. I've tried setting longer and shorter sleep times, but I never see so much as a single instance of conky running.

View 8 Replies View Related

Ubuntu :: Secondary Hd Permission Denied On All Executes?

Jun 7, 2011

I completely switched to Ubuntu 6 months ago. I kept my secondary sata hd as ntfs for a while but started having permission problems. I switched it to ext4 and that worked for a while but then it started having permission problems again. Specifically, I can't execute anything on that hd drive. I converted it to ext2 and it still didn't help. I have 2 executable modules that I moved up to the root directory to make this simple and they look like this:

tom@tom-desktop:/media/sda1$ ls -l
total 3088
-rwxr-xr-x 1 tom tom 3099451 2011-04-23 16:36 bochs
-rwxr-xr-x 1 tom tom 26064 2010-09-11 08:48 bzip2

[Code]...

View 6 Replies View Related

Fedora :: Making A Shortcut That Executes A Couple Commands At Once ?

Jul 14, 2011

I want to use a desktop icon shortcut that essentially does this...

Is there a way I can do this? I don't really want to create an alias because I just want it to be an icon I double click to do all of this. But if I have to create an alias in which it does these ocmmands then I use the shortcut to terminal... then it types the alias that is fine also.

View 1 Replies View Related

OpenSUSE :: Make A Shortcut In A Desktop That Executes A Program?

Nov 12, 2010

even though this is a simple task I always have problems to do this.I want to execute the following#!/bin/bashjava -jar JabRef-2.6.jaror in other words this is the command I use in konsole to make the application to launch.Then usully I try to create a desktop in the icon either by using a. create link to locationorb. create link to application.where I select as file the file myfile.sh that contains the two lines of code I posted above (see again below)
"#!/bin/bashjava -jar JabRef-2.6.jar"I do this file executable by using the chmod +x.Sometimes I think this works while others like now I only receive the cursor bouncing for sometime before it dissapears

View 4 Replies View Related







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