General :: Change The SIGNAL Done When Ulimit Is Reached?
Mar 30, 2011
I would like to use ulimit -St <some number> to stop a process form running once the process has exceeded the amount of CPU time specified in the ulimt arg.
I have been able to get ulimit -t (or -Ht) to kill my process, but I need the signal to be something other than 9 and other than SIGXCPU.
Is there a way to have ulimit issue a kill -<somthing else> when the cpu time specified has been exceeded?
View 1 Replies
ADVERTISEMENT
Jan 20, 2011
I wrote this because i was able to use openmpi to run mpirun on my 12-core workstation rather happily since day 1 I setup the system a few months ago. Yesterday when I tried to run a big job under mpirun, the job crashed rather quickly, the error message was something like mpirun process exited blah blah with signal 11 (Segmentation fault). Interestingly (or annoyingly) a job required less memory ran okay.
Since I never had this problem before, I thought it was the hardware failure. I called my IT guy to explain the problem and he is kind
enough to suggest to put a line
ulimit -s 40960
in my .bashrc. And it works! But I have no clue why mpirun misbehaves out of a sudden, and that ulimit setting solves the problem completely. I would like to learn from this incident.
View 1 Replies
View Related
Aug 23, 2010
I want to change number of open files. I can not change it neither in user nor sudo modes.
View 9 Replies
View Related
Jul 9, 2010
I'm using Fedora 13 , wireless card:Intel 512AN_MMW kernel version:2.6.33.6-147.fc13.i686 below is my problem: when i finished install F13,i can use Wireless card surfing internet i have multiple ap's , and if the ap set with same ssid and different channel, i can roaming between ap's if i'm accessing the internet ,
otherwise, it won't change to greater signal ap if i'm not using the internet , does this condition normally ?
The other question is , if i'm using different ssid , like "wlan01" "wlan02", can i roaming between this two ap's automatically?
View 4 Replies
View Related
Mar 31, 2010
i have both windows XP and suse linux installed in my hp pc with monitor HPL1710. when i in stalled Scientific LInux (cern) in the unallocated space using default partirtion it is in stalled. unfortunatately i have choosen the screen resolution to be 1600*1400. So when i try to reboot it says:
Code:
Input signal out of range change settings to 1280*1024-60Hz I have no idea what to do ? I dont find any scientific linux sub forum . so i am sending the thread here.
View 14 Replies
View Related
May 26, 2010
I want to call/run an .exe file from a perl file as so:
Code:
my $cmd=`runner.exe`;
I want to limit the time I want it to run (say 20 seconds).
ulimit should do it as so:
Code:
my $cmd=`ulimit -t 20; runner.exe`;
but I get this:
Quote:
sh: line 0: ulimit: cpu time: cannot modify limit: Operation not permitted
any alternatives that can do the same thing as ulimit? even if it's just for this one process (runner.exe)
View 5 Replies
View Related
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
Mar 11, 2010
Is it possible to set a user to login only during 3rd week of every month using ulimit ?
I searched in man page of ulimit. Turned out with no luck.
If its not possible by ulimit, is there any other way to accomplish this ?
View 3 Replies
View Related
Jun 4, 2010
The following recipient(s) cannot be reached:
Im using slack ware 10.2 for may mail server.
View 8 Replies
View Related
Mar 8, 2011
When I try to delete a file, ( move to trash ) It says , The trash has reached It's maximum size! clean the trash manually. When I click on the trash icon on desktop it is empty. Where is the trash? Where can I delete these files ?
View 2 Replies
View Related
Feb 17, 2011
I have standalone Suse 10 SP3 that when I run
Code: # hostname webserver but when I run host command
Code: # host webserver;; connection timed out; no servers could be reached I would like to get the IP when I issue
[Code]....
View 3 Replies
View Related
Jun 18, 2010
I have a Linux server running CentOS with 2GB RAM. I am searching in google and also in this forum but could not find any luck yet. I am searching the way that we can receive notification by system to a specified email when the memory reached a specified value we defined.
Is there any tool or sort of shell script we set via crontab every minute to check that?
View 2 Replies
View Related
Mar 22, 2010
We are using a hadoop server & we dont want the server memory to overload. So, I have set the ulimit for max memory size and for some time it was working fine but memory was overloading before EOD. I came to know about soft & hard limits and set the hard limit for the maximum memory size in /etc/security/limits.conf file. But, the limits were not shown in ulimit -a command ouput. So, I restarted the server. Then, the limit was shown in the ulimit command output. But, memory is still getting overloaded as you can see the memory used is more than the limit set. Anyone kndly suggest me on this issue.
[menon@265430-vm1 ~]$ top
top - 09:55:30 up 5:37, 1 user, load average: 0.04, 0.03, 0.00
Tasks: 117 total, 1 running, 116 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.3%us, 0.7%sy, 0.0%ni, 99.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
[code]....
View 15 Replies
View Related
Jul 4, 2011
I'd like to set the max stack size at boot time, preferably as early as possible. I had thought there's a kernel parameter for this, but I cannot find any reference to one.Adding "ulimit -s" to rc.sysinit was not effective; I've grepped /etc/init.d but it is not used subsequently. So what I currently have is my default runlevel set to 1, with no services except udev-post, then in rc.local:
Code:
ulimit -s 1024
telinit 3
3 being my normal runlevel with all necessary services. However, again that ulimit is being ignored, because after login it is still set to 8192. If after login I manually set the limit and change from 3 to 1 and back again (to restart all services), everything is copacetic.
Does anyone know why ulimit -s is ineffective prior to login or how I can set the max stack size at boot time? I'm just noticing that under "upstart" runlevel services are not controlled by rc.d content. Preuming:
#1 My desire to make F14 work without upstart, using ye olde sysinitv which weren't broke so I don't need it fixed, is going to be like p'sing up a rope.
#2 That systemd is replacing upstart so I might as well try to learn about that.
how can I get "rc.local" functionality under systemd?
View 1 Replies
View Related
Feb 5, 2011
i have configured dns but error always appear server could not be reached .my ip add 192.168.10.2 and files are named.conf,192.168.10.zone and server.home.com(hostname)and home.com.zone
View 1 Replies
View Related
Jan 7, 2010
I am using xterm and sometimes when typing long commands into a small window, the command extends beyond the end of the line. On my old uni setup, when this happens, the cursor moves to the line below and you can see what text you have typed above however on my slack 13 setup, it overwrites the current line so you cannot see what you have typed! How can I set xterm to move onto the next line instead of overtyping?
View 14 Replies
View Related
Apr 28, 2011
I just installed Ubuntu Natty on my desktop which uses an nVidia GeForce 7+ chipset. After installing Ubuntu, I noticed that when the GRUB boot menu should show up, my monitor says "Input signal out of range, change settings to 1600 x 900 - 60Hz", and it stays that way until the Ubuntu desktop shows up. The Ubuntu desktop shows up just fine. It's just that GRUB and Plymouth don't show up and my monitor gives me the aforementioned message.Here's my xorg.conf configuration after I ran the nVidia X Server Settings app:
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 270.29 (buildd@allspice) Fri Feb 25 14:42:07 UTC 2011
Section "ServerLayout"
[cdoe]...
View 5 Replies
View Related
Jan 30, 2011
A strange question, I guess. I'm running processes called from a c main program. The calling is performed (for now) as: FILE * res=popen(ulimit -t 1; prg args); So I can read the stdout of the process as a file and analyze it. The time limit is important for me.
2 questions:
1. How do I get to know if the process terminated on its own or by the ulimit?
2. How do I limit to times that are less than 1 sec (I have many of those).
I know that setrlimit exists, just before I change my whole approach I wanted to see if I can deal with these things from the outside.
View 2 Replies
View Related
May 4, 2011
Newbie here! Our website CMS is a Tomcat webapp, which runs on a CentOS 5.6 release (Final). The webapp needs a permanent increase of the max. open files value. Currently, the site is "crashing" frequently due to continuous "Too many open files" exceptions that eventually will occur when traffic increases.
This is what I've done to try to increase the max. open files value code...
But still, when I log in (as any user, incl. root), ulimit -n shows 1024, not 16384. Am I missing something here? And, more importantly; Will Tomcat be able to open > 1024 files after my changes mentioned above?
(PS: I also tried rebooting, but no difference.)
View 1 Replies
View Related
Jul 10, 2011
I can reach the internet just fine with OpenSuSE but when i try to dig mx gmail.com
;<<>> DiG 9.7.3-P3 <<>> mx gmail.com
;; global options: +cmd
;; connection timed out; no servers could be reached
I don't know what to do, YaST always seems like it'll time out but eventually it reaches the internet. Can anyone give me some diagnostic commands to see what is slowing down the network on the server I'm running?
I can't connect to imap or smtp ports remotely.
Edit: I left out one thing, this is a mail server and a web server. Both are not currently being used as this is a fresh install of OpenSuSE
All other devices work fine with dig. Its just the server.
View 1 Replies
View Related
Apr 14, 2010
I have very strange problem with kernels 2.6.33 and 2.6.34. I have a wireless card Linksys WMP200 using rt61pci. It connects just fine using WPA2 and works, but in less than 20 minutes I still can reach any machine on my network, but this machine cannot be reached by the others (i.e. before these 20 minutes others can ping me). With default kernel 2.6.26 (Lenny) all is OK. I do not use any firewall. When this happens logs do not change - wpa_supplicant's log is normal (associated), syslog is fine, dmesg shows no errors. Sofar I have tried this:
1. acpi=off as boot parameter
2. both new kernels 2.6.33 and 2.6.34 are compiled with CONFIG_CF80211_DEFAULT_PS disabled
3. iwconfig wlan0 power off
4. Tried ndiswrapper. The device is up and scans fine but wpa2 is not working...
5. Compiled a kernel without ACPI
This is all I did without any luck and I really need the new kernels because I have a quatech device attached to the machine...
View 10 Replies
View Related
Feb 18, 2010
In the last week or so, I've frequently been running out of X server client connection slots and getting "Maximum number of clients reached" errors. For example, I'm getting it right now and I'm running 3 pterms, Chrome, and Thunderbird; I've even killed my panel. 'xwininfo -root -children' produces what seems to be an absurd number of X clients (150-ish, when it's able to make a connection), even immediately after Gnome/Xfce startup.
It doesn't take long. A day at most. I've had this system up and running for months, and this just started happening. I did install some X development libraries (x11proto-core-dev, libmotif-dev, x11proto-print-dev, and x11proto-xext-dev plus their dependencies) about two weeks ago, but this problem has not been happening that long. I've installed other packages, but nothing that would seem to have any relation to this problem. I've logged out and in, rebooted, and changed from Gnome to Xfce, and none of the changes helped.
View 9 Replies
View Related
Feb 21, 2011
I have done nothing with the system, but starting this morning, i experienced a strange condition on my desktop. I'm unable to open any applications at all. It will close instantly.
When i tried to run from terminal, it will give me an error like this:
Quote:
I checked using
Code:
And i got around 234 which is too much that it takes almost all of the open files allowed. Logging out to text and brings back X will solve the problem, but it's only a temporary solution until X opens more sockets again. I'm running -Current (32 bit)
It seems that there's a hackish solution in here: [url]. Dunno whether it's a nice solution or not, but i'm willing to try it.
View 5 Replies
View Related
Dec 7, 2009
Fedora 12 gcc 4.4.1 I am doing some programming, and my program gave me a stack dump. However, there is no core file for me to examine.
So I did:
Code:
ulimit -c unlimited
and got this error message:
Code:
bash: ulimit: core file size: cannot modify limit: Operation not permitted I also tried setting ulimit to 50000 and still got the same error. The results of ulimit -a:
Code:
$ ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
[Code]...
View 3 Replies
View Related
Feb 3, 2010
I've installed Ubuntu Server 9.10 on a small VIA C7 pc. Every now and then (it can take days or hours) the server goes to sleep. It can't be reached by network. If I hit the keyboard it comes to life within a second.I've looked in the bios and I cannot find any option that would prevent this. I used to run Debian Lenny on the same machine and never experienced the problem.
View 6 Replies
View Related
Mar 28, 2011
I have 2 different networks :the first one is gateway machine (eth0), and the second is a private machine (eth1). So, I've configured the iptables and forwarding stuff and when I try to ping [url]..... on the gateway machine, it works, while it doesn't work on the private network. Note: I am using VmWare 7, CentOS 5.
I could say that the problem in DNS:because when I use this command in the private network machine: [url]...., it says connection timed out; no servers could be reached ,while in the public one, it works properly.....
View 1 Replies
View Related
May 4, 2009
I tried ubuntu for a few weeks, but I couldn't get the nvidia drivers to work, I tried everything. So, I got sick of that, and went to download OpenSuse, which seems to be even nicer (..... ) I downloaded the 11.1 liveCD (gnome) from here. I nicley got the welcome screen, and the option screen (liveCD, check errors etc.). I chose LiveCD and it started booting, I got the splash screen with the loading bar, and after it completely loaded, the screen turns black with a lot of messages and at the end:
Code:
GdmLocalDisplayFactory: Maximum number of X display failures reached: Check X server log for errors.
Great, I hoped for better luck after Ubuntu..
My sys. specs:
Asus F3Sc 32bit
Intel CentrinoDuo
[Code]...
View 2 Replies
View Related
Dec 7, 2010
I have centos 5.2.....i get this error while booting...the total hard disk is about 1160 GB....This server is used for file share....it has lots of datas........is it recommended to run fsck.....i am afraid that i will lose datas....is there any way to sort this issue....logs and fstab details are as follows
error on boot
FSTAB
View 7 Replies
View Related
Nov 6, 2010
Ever since upgrading to Fedora 14, my system has been almost unusable. I can only have a few windows of anything open before I start getting messages about:
Maximum number of clients reachedMaximum number of clients reachedMaximum number of clients reachedMaximum number of clients reachedxwininfo: unable to open display ':0.0'
I am unable to open any new windows then and lots of programs crash.
When things are still running correctly.
A few minutes later:
View 3 Replies
View Related
Mar 25, 2011
I am using a Hauppauge HVR-950Q and have the device installed and setup in Linux. I cannot however watch over-the-air broadcasts. If I reboot to Windows, I can watch tv (about 15 - 20 stations).I am using tvtime and get 'No Signal'.The device node /dev/video0 is created, what else am I missing?
View 1 Replies
View Related