General :: Can Not Change 'ulimit -n'

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


ADVERTISEMENT

Software :: Ulimit -s 40960 Versus Ulimit Ulimit -s 10240

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

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

General :: Alternatives For The Ulimit Command?

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

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 :: Ulimit To Set The Time Of Login?

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

Server :: Ulimit Does Not Seem To Be Working

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

Fedora :: Can't Set Max Stack With Ulimit In Rc.local

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

Programming :: How To Extract Output Ulimit Under Popen

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

CentOS 5 Server :: Set Ulimit Open Files Permanently?

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

Fedora :: Bash - Ulimit: Core File Size - Can't Modify Limit: Operation Not Permitted?

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

General :: What Config File Do You Change To Change Default Run Level?

Aug 5, 2009

What config file do you change to change default run level???

View 3 Replies View Related

OpenSUSE :: Installed Webilder Application To Automatically Change Wallpaper - Can't Change Background

Mar 30, 2010

I installed the webilder application to automatically change the wallpaper, preferences you've specified the directory where the images but I can not change the background. Does anyone know why not change?

View 5 Replies View Related

Ubuntu :: Graphics - Change To A Warped Mix Of Colors And Pixels When Change The Background Image

May 19, 2010

I recently installed Ubuntu 10.04 Netbook Remix on my Gateway LT3103u. I noticed shortly into using it that it has a graphics bug every so often. Especially when I change the background image. Everything will change to a warped mix of colors and pixels. Everything is affected. My mouse, the bar at the top of the screen, text and all. My netbook runs on an AMD Athlon 64-bit processor with ATI Radeon X1270 HyperMemory up to 256MB graphics.

So far I have tried reinstalling, and even the 64bit desktop edition which had the same problem. Ive noticed that it freaks out when i scroll too quick, when changing background images, and on certain websites. Then other times its completely random. When it happens it looks similar to these: [URL]

View 4 Replies View Related

Ubuntu Installation :: Unable To Change BIOS Settings Due To Which Can"t Change Boot Preference?

Mar 24, 2011

I currently have a Windows XP OS which i want to dual-boot with Ubuntu Linux 10.10 . I put the disk in the drive and chose the option to install Linux through Windows. But it hangs in the middle. I am also unable to change my BIOS settings due to which i can"t change my boot preference. My first Boot is the HDD. I want to change it to CD-ROM. Any suggestion? I also have another PC where i can boot through the CD...I tried installing there by booting from the CD but i get this error message after seeing the purple Linux screen with the loading dots. "(Process:286):Glib warning**:getpwuid:failed due to unknown user id (0)

P.S.- I am not able to see any options while the boot is going on

View 5 Replies View Related

Ubuntu :: Change File Permissions To Change Background Screen?

Feb 21, 2010

I'm new to Ubuntu Linux but have many years on windows platform. Please can someone help me with how to change the following items.

No.1 I would like to change the HORRIBLE!! YAK!! brown background color behind the word Ubuntu in the start up screen when the machine loads up (before the login). I have located the image file for this which I have found to be: /usr/share/images/xsplash/bg_2560x1600. jpg but the OS says that root is the owner and that I don't have permission to change this. So how can I change this for a color I do like.

No.2 I would also like to change the login dialogue screen style. I know this is possible but again I'm fumbling to see how I can do this. I have tried with the start up manager but every attempt fails, the settings don't take. Once again I suspect permissions are at the bottom of the problem?

No.3 Would like to have a colorful splash screen image on boot up, I've managed to remove the old one (small white 3 ring ubuntu logo on black background) but havent been able to install or replace with a new one. Its been incredibly frustrating, I'm feel sure I'm missing something simple here. Wondering if its permissions yet again?

Anyone who can offer help on any of the above, guidance or advise me would be much appreciated. Please bear in mind that I'm still very much feeling my way with Linux so keep it simple.

View 3 Replies View Related

Ubuntu :: Menu Bar Won't Change Color When Change Panel Background

Oct 23, 2010

I changed it and got it working a long time ago but i installed 10.10 (great work BTW ) and have forgotten completely.

View 6 Replies View Related

General :: How To Change The Permissions

Nov 2, 2010

How do I set all *.java files in the current directory and all its sub directories to have read permission to all users?

I also want to set all files of at least 1 kilobyte in size in the current directory and all sub directories to have a group of admin.

View 4 Replies View Related

General :: Change PS1 When SH (Shell) Out Of VIM

May 19, 2010

I've had my prompt change whenever I :sh (:shell) out of VIM, but can't for the life of me remember how?. The idea is to change the prompt to something like [SH] <your usual prompt here>, so that I know that VIM is running in the background.. I often logout of the shell, because I think VIM is open.

View 3 Replies View Related

General :: Anyway To Change That To Float

Nov 16, 2010

Its a huge waste of space. Is there anyway I can change that to float i.e output = .500000

View 6 Replies View Related

General :: Change UID For A User ?

Mar 4, 2010

I have a uid that I need to change however I need to know the process of doing so as this user is a vital user that has ownership of several running pids on this server. (webserver)

This user (admin) has a uid of 1003 on this server (server-A). However, on all our other servers (server-B-G)the uid is 1001. The reason for changing the uid is that the nfs mount that is mounted on server-A and on all the servers does not work right due to the uid difference. We have diagnosed to this point.

My question ... admin is the owner of several running pids.

So in order to change the uid, do I need to:
- stop ALL pids owned by admin
- >usermod -u 1001 admin
- then start back up the jobs that admin runs

I have verified that there are no files/dirs owned by uid 1003 but the ownership is admin.

I can run a find >find / -uid 1003 - to locate any orphaned files/dirs before I start back up any jobs that require admin ownership.
Then >chown the file/dir.

Does this appear to be a viable plan to get this uid corrected?

View 5 Replies View Related

General :: Cp - Mv Destination Name Change

May 26, 2010

When I use the cp or mv command to copy/move files is there a way for me to have the destination file assume the same name of the source file, however add an additional suffix.

For example

Code:

Now what if I wanted this...

Code:

Do I have to type the destination file out manually everytime? or is there a quick way for the cp or mv command to assume the source file name and add the .bak

View 5 Replies View Related

General :: GID / UID Change After FTP Upload?

Mar 10, 2011

I have CENTOS server with suPHP installed. The user (UID) and group (GID) are different for PHP files. But when I upload any file using FTP, it makes user:user and suphp fails to parse it. I then change the ownership (using ssh) as user:group for the php file and it works.

View 1 Replies View Related

General :: How To Change The 'Open With'

Sep 7, 2010

I'm having two problems with 'Open With':

1st:
I want to open jrxml's with iReport, but when I do;
'Open With' > 'Other Application'

[code]....

View 1 Replies View Related

General :: How To Change Default?

Jul 20, 2010

I don't know what is up with our servers, but each time I upgrade Linux or switch back to Windows it seems that the default providers have changed,and as such I'm having trouble finding out how to change the default run level from 5 to 3 in Ubuntu 10.4. I had tried the /fstab file, and although the last time I made this configuration was under Suse, I'm not even sure that's how I did it for OpenSuse. I did find how to pass the text argument to the kernel but I don't want to disable GDM so that I have to renable it everytime I login. I'm unsure of how this will affect the startx command, at which point I'll be stuck sifting through books for random commands that might perform the task I would like.To elaborate, the reason I'd like to switch my default run-time level is so that I can configure an nvidia proprietary driver, which requires that the x server not be running and I could switch tty's but that doesn't shutdown the x server and although someone had given me a key combination to the effect of ctrl-alt-backspace,backspace I was advised against using it as it might cause damage to the integrity of the data used to load gdm.

View 1 Replies View Related

General :: Change Resolution In Kde 2.1.1?

Feb 15, 2011

I have Redhat 7.0 and kde 2.1.1 I've been looking for a way to change the resolution. I've found many ways to do it, but nothing can fix my problem. 1.If you configure your monitor in the KDE Control center under peripherals you may be able to fix this problem. There are two items in peripherals, mouse and keyboard. I don't see anything about resolution.

I can simply do it like this in KDE 3.4: right click the desktop, choose "configure desktop", then "display", then choose one of the resolutions in the dropdown menu. I see configure desktop, but there is no "display" item**you could change settings in your /etc/X11/xorg.conf file. There is no xorg.conf file in that folder.

View 13 Replies View Related

General :: Change To Possible User ID?

Feb 26, 2011

I have installed tftpd on Ubuntu, but I think it not secure very much. So I read its manual, and it says: The server should have the user ID with the lowest possible privilege. I find the server has the root UID:

[code]...

View 3 Replies View Related

General :: Make Change In Tcp.cc Over NS-2.34?

Jan 15, 2011

I have problem when I add another case in linear increase cogestion avoidance algorithm in tcp.cc why can't it work out when I run it?In the tcl code I have set windowOption_ to '9' (where I put my additional change).It seems that any change I've made doesn't take effect at all.What am I suppose to do to make it work? I make change like this :

void TcpAgent:pencwnd()
{
double increment;
if (cwnd_ < ssthresh_) {
/* slow-start (exponential) */
cwnd_ += 1;
code....

View 2 Replies View Related

General :: Sed Script To Change The Value?

Jun 17, 2011

I am trying to alter the value of one configuration file from XML to LDAP.(Oracle Application Server)

sed -e 's/XML/LDAP/g' $ORACLE_HOME/j2ee/${OC4J_INSTANCE}/application-deployments/SPLWebApp/orion-application.xml

Oracle Home and OC4J Instance Values would be passed to script. The actual node in file(orion-application.xml) look's like this,

<jazn provider="XML" /> so this is to be change to <jazn provider="LDAP" />

View 11 Replies View Related

General :: Ssh Keys After The IP Change?

Apr 8, 2010

I needed to change the openSUSE's 11.2 static IP and now I am having trouble ssh'ing to it. Is there something I have to do to regenerate or update the ssh keys?

View 2 Replies View Related







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