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
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
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
Jun 19, 2011
I have installed lilypond 2.14.1 on my Fedora 14 machine, as per the lilypond instructions for linux. When I run lilypond, it gives the following error message. /usr/local/lilypond/usr/bin/lilypond: error while loading shared libraries: libgmp.so.3: cannot enable executable stack as shared object requires:Permission denied I see several threads here already about executable stacks. I have already tried execstack to set/clear the flag for that shared object. Neither allows lilypond to run.
View 1 Replies
View Related
Aug 3, 2009
I'm trying to set up a Linux box with three ethernet interfaces as a bridge where I can do some packet filtering. I don't want this box to have any IP stack, packets that are allowed through the filter should be forwarded without changes just the way a switch would do it. I have build a kernel with ethernet support but no IP stack. It detects my interfaces, and I can bring them up with the ifconfig or ip commands. But when I try to start a bridge with brctl I get this error message:
can't setup bridge control: Address family not supported by protocol
A google search for that error message gave me no results at all. The command I used was "brctl addbr br", which does work on a full installation. Does brctl require IP support in the kernel? That would be a bit odd I think, since brctl doesn't do anything IP related, everything it does is at lower layers?
Does anybody know what the above message means, and what I might have been doing wrong?
View 3 Replies
View Related
Apr 4, 2011
I tried to run Mupen64 on Fedora 14 and SELinux gave me a message (see title of thread). It sounded like a serious problem. Do I have a corrupted version, is it nothing to worry about?
View 1 Replies
View Related
Aug 17, 2011
I have an firewire Saffire Pro 24 audio interface that I'm trying to get detected.running ffado-diag results in
Code:
ffado-diag
...
[code]....
View 1 Replies
View Related
Apr 16, 2010
i am trying to install xilinx 11.1 on fedora core 12 FEL.i have mounted the image file using mount -o loop and put it in a directory near opt.i am getting the following error: error while loading shared libraries: libSecurity.so: cannot enable executable stack as shared object requires: Permission denied.I already installed this on a standalone fedora 12 KDE and it did install. i need to mention that this time, the fedora 12 is installed on VMware, could this be creating that problem ?
View 2 Replies
View Related
Apr 4, 2009
Just installed a Sparkle GeForce 8400 GS on my Dell Dimension 2350 running FC9. As stated, every time the system goes to start the card, a stack trace occurs. I know the first thing that everyone will ask for is the output from the stack trace, but for the life of me I can't capture it. Tried grabbing the STDOUT and SDTERR from the 'service start' command, but nothing interesting is ever there. If anyone knows if and where such things get stored, just letting me know that would help. I assumed there would be something in /var/log, but no. For some reason, there's a lot of python errors in the output. I imagine I could try to type in as much of the output as possible, but I'm hoping someone has seen this before.
Anyway, I've tried the Nvidia install executable, the nvidia-newest RPMs, the nvidia-96xx RPMs and they all fail the same way. I also can't get the card to come up as the primary device on boot, which I don't think should be a problem since they all boot into VGA mode, don't they? If I disable the internal video setup in the BIOS, the machine freezes on bootup with blinking lights on the keyboard, which I imagine is the BIOS's way of telling me there's no monitor available.
I also tried getting the nv and nouveau drivers going with no luck. They are installed on the machine, but I'm embarrassed to say I don't know how to get them configured. Not really a driver guy, I guess. Also, the reason I installed this card is to get TVOUT, and I don't know if generic drivers will have support for that sort of thing.
At this point, I'm just looking for a way forward. One thing I remember is that when I removed the 'fglrx' drivers (because they conflicted with the NVIDIA stuff) I remember that a few python/fglrx based packages went with it. I'm wondering if that could be at the root of the failure, given the python errors in the stack trace.
View 14 Replies
View Related
Nov 2, 2010
- Newly installed Fedora 14- Firefox 3.6.12- All latest Fedora updates installed- Denial occured after the installation of jre1.6.0_22 from here - Linux (self-extracting file) and creating symbolic links as follows;
Code:
[root@Freedom opt]# ln -s /opt/jre1.6.0_22/lib/i386/libnpjp2.so /usr/lib/mozilla/plugins/
Code:
[code]....
View 3 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
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
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
Sep 9, 2010
if an admin decides this is security feel free to move, at the moment I can't decide where so posted here...On my laptop (msi-u100) my bluetooth stack creates rfcomm0 but is not applying the correct context label to it so selinux is bitching.
View 2 Replies
View Related
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
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
Jan 9, 2010
I'm using f12. My university has recently become a mirror for fedora packages. But i'm facing a trivial problem. I have set proxy for yum so that the packages that are not available on local mirror can be downloaded from other mirrors. But then i don't know how to set no proxy for my local server. Consequently it is not using my local mirror at all. Tell me how to set no proxy for the local mirror. I want my local mirror because it's damn fast. My proxy settings are like this (they go in /etc/yum.conf):
[code]....
View 2 Replies
View Related
Feb 11, 2010
It crash giving this error: "Whoops! the applet crashed. Click to restart it" while i set Layout "curved gui"
And then i try to change its setting by clicking on "Layout settings".
Sometimes im able to get inside "layout settings" but then it crush when i switch
to another tab.
What to do for to solve this issue? Is some other way to configure it (maybe through terminal)
Or exist some better stack applet (mac like)
View 9 Replies
View Related
Nov 8, 2010
İ have nvidia fx 5200. when i was install my driver resolution stack at 640x480 and i cant change to 1024x768.
View 1 Replies
View Related
Aug 19, 2011
I have always in the past installed and configured my own mail server with Postfix, Fetchmail, Procmail and Dovecot. I know that for a while the Ubuntu server team have developed their own server stack and so I decided to give it a go with my new 11.04 installation. However, when I look on Synaptic I see that there are two mail server stacks.
mail-stack-delivery
and
dovecot-postfix
Both are described as
"mail server delivery agent stack provided by the Ubuntu server team"
What is the difference between the two stacks?
View 1 Replies
View Related
Dec 21, 2010
I just encountered an odd network stack glitch and wondered if anyone has seen this before, or knows what could cause it. When I connect to services on localhost (127.0.0.1) if there is a process listening, it works OK as expected. there is no process listening, I should get a NAK and see a connection refused message.With this glitch, that was not happening. And this was with 127.0.0.1 to 127.0.0.1. Nothing was listening, but the SYN attempts were all that were happening. If there was something listening that worked OK. Connections to other hosts worked as expected.
View 2 Replies
View Related
May 19, 2010
would like to install a Bluetooth and my AT&T 3g fob
View 1 Replies
View Related
Sep 6, 2010
I need to call some other functions in "int init_module(void)" and module. So I need a stack. How can I setup a stack (1kB) for my module in C?
View 11 Replies
View Related
Sep 22, 2010
When I set the stack base address of the child thread using the POSIX library function "pthread_attr_setstackaddr()", I am unable to access the memory contents of its parent. The data-structures that are created on the HEAP of its parent using malloc() are either getting destroyed or unaccessible when moving to the context of the child thread. These data-structures are being passed as an argument to the child thread.Even if I make these variables global then also it is not working.pthread_attr_setstacksize(tattr, ...);stackbase = (void *) malloc(...);pthread_attr_setstackaddr(tattr, stackbase);But when I create the child thread without setting its stack base address using that pthread_attr_setstackaddr(), then it is able to access the parent's memory contents.
View 1 Replies
View Related
Mar 1, 2011
If I issue the following and the process doesn't quit, is there a way to view what it's doing with the SIGTERM signal on the stack? Is this done via the pstack command?kill -s SIGTERM <PID>
View 4 Replies
View Related
May 1, 2011
Why is it in Linux that there is a stack size set by default? And why is it so small? (My system is set to 8192 kbytes.) And why is there a default limit on the stack size when the max memory and virtual memory size are, by default, unlimited? (Aren't they both fed from the same place ultimately?)
Reason I ask: I want to use recursive functions in my programming a lot more. Problem is, if the language (or implementation) doesn't happen to support tail-call recursion, then I can be pretty well certain that the first huge problem that gets thrown at my function is going to kill my program because the stack size limit is going to be quickly reached. Obviously, I can change the stack size limit for my own computers, but it doesn't feel so great knowing that most of the people who copy and execute my code will have probably have overlooked this. Anyway, does anyone know: is this small default stack size limit just one of those historical artifacts, or is there some technical reason for it?
View 5 Replies
View Related
Nov 10, 2010
I have updated my computer to Kubuntu 10.10 (which has the new firewire stack enabled by default) and now my firewire application is giving permission related problems. I try to read CSR_CHANNELS_AVAILABLE_HI (defined in libraw1394 which is used by the application) to see which isochronous channels are available to use:
[Code]......
With the old stack (raw1394) there are not problems and it runs fine and I get the octlet back containing the information about the free channels. But with the new stack (firewire_core and friends) I get a 'permission denied' (errno = 1) error. I do have permission to read/write /dev/fw* and I even tried running the application as root without any luck. If I read the config rom of a node (located at CSR_CONFIG_ROM) there are no permission problems and I am able to get the information/ What am I doing wrong? Did something change with the new stack (even though libraw1394 should be compatible with both stacks)? Is it a bug?
View 3 Replies
View Related