How to increase the size of the stack


Login or Register for Dates, Times and to Reply

 
Thread Tools Search this Thread
Top Forums Programming How to increase the size of the stack
# 1  
Question How to increase the size of the stack

Hi!!,
could someone tell me how to increase the stack size in HP-UX?

Thanx
# 2  
The fact that this question is in "c programming" suggests that you want a way for a process to do this. There is a setrlimit(RLIMIT_STACK...) system call, but the soft limit is set to the hard limit by default. Still some shells could crank it back. And a process could reset it back to the hard limit.

But to raise the hard limit you will need to build a new kernel. The easiest way is via sam->kernel configuration->configurable parameters. You need to up maxssiz.
# 3  
hi jyotipg,
You can try this command on unix terminal on HP-UX system.

prompt>limit stacksize 100kb
now check.
prompt> limit
cputime unlimited
filesize unlimited
datasize unlimited
stacksize 100 kbytes
coredumpsize 200000 kbytes
descriptors 200 files
memoryuse unlimited

hope this might help you,
If you have any more, let me know.
Regards
Anent
# 4  
Thanx Anent,
but this doesnt help anyway. There is no command like limit on HP-UX. I have tried to use

ulimit -a

this gives the similar upper limits of resouces as posted by you.

on trying to change the resource limits with ULIMIT, I get the following error message

ulimit stacksize 8192kb
sh: stacksize: The specified number is not valid for this command
Smilie
# 5  
jyotipg,
I used to work in HP-UX 11.00 Workstation.
i had tried out with limit command. Its working fine and hence i suggested you.
ulimit command is an user defined limit command.

Let me know, whether you are working in HP-11.00 or greater system.
If so, you might be getting it right.

Anent
# 6  
anent,
thanx for ur effort. I am using HP-10.2 and this command doesnt woek on this version.
# 7  
try ulimit -f
Login or Register for Dates, Times and to Reply

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Test Your Knowledge in Computers #45
Difficulty: Easy
IEEE 802.11 specifies bluetooth networks.
True or False?

10 More Discussions You Might Find Interesting

1. Red Hat

Increase the filesystem size

Hi I am using oracle linux 6.4. My hard drive capacity is 500 GB. my filesystem size onbly 50GB. I would like to extend my filesystem size to around 100GB. I tried many codes but still I am not able. this is the output of df -h : Filesystem Size Used Avail Use% Mounted on... (6 Replies)
Discussion started by: farshad
6 Replies

2. Red Hat

Increase Font size

Hi friends I want increase font size in linux can anybody help me plese Example:this is my in put Filesystem Size Used Avail Use% Mounted on /dev/mapper/VolGroup00-LogVol00 18G 2.5G 14G 15% / /dev/sda2 ... (1 Reply)
Discussion started by: vasuibm
1 Replies

3. Solaris

How to increase soft stack limit?

:wall:Dear Solaris 10 Specialists, I am having difficulty trying to increase the soft stack limit to 16384 for user george on this Solaris 10 SunFire Sparc server as follows: $ uname -a SunOS galactica 5.10 Generic_141444-09 sun4v sparc SUNW,SPARC-Enterprise-T5220 % id -p ... (3 Replies)
Discussion started by: gjackson123
3 Replies

4. UNIX for Dummies Questions & Answers

Increase size to sd[b-c]

hi guys I am working on my vmware workstation. I have a /dev/sdb which is 5GB. I am using LVM. Now I increase /dev/sdb 2 more GB. fdisk -l shows 7 GB but pvscan still shows 5GB. how do I make my system recognize the new 7GB added and be able to add those to my physical volumen and... (1 Reply)
Discussion started by: kopper
1 Replies

5. HP-UX

Increase of partition Size In HP-UX

Experts, I want to know how to increase partion size in Hp-ux.Actually we installed oracle in separate part ion.As increase of database went to 99% :eek:.What ever data which is in it is important.so i dont want to delete any data in that partion.Now the size of that is 250 GB.I want the same to... (2 Replies)
Discussion started by: naveennella
2 Replies

6. Solaris

increase metadevice size

Hi, I am having two metadevices d50 and d100 which are used to created soft partitions as and when required. d50 and d100 are metadevices formed on different disks. d50 -- disks 0 & 1 d100 -- disks 2 & 3 I have a soft partition d70 os 50 GB on d50. Now there is no free space on d50. ... (1 Reply)
Discussion started by: sag71155
1 Replies

7. UNIX for Dummies Questions & Answers

Increase salt size

Unix protect its password by using salt It that mean larger the salt size the more secure? if the salt size increase greatly, will the password still able to be cracked? thank you for helping (1 Reply)
Discussion started by: cryogen
1 Replies

8. UNIX for Dummies Questions & Answers

How to increase the filesystem size?

Hi.. I want to increase the file system size of any filesystem online, without using the Volume manager like LVMs, is it possible? & if yes then how? (3 Replies)
Discussion started by: Amol21
3 Replies

9. Solaris

how to increase the size of the allotment

Hi all, I have a 130gb HDD of which 95b is taken up by various partitions of windows xp... I partitioned my HDD and gave solaris 10gb of space, but now owing to some development stuff i need to increase the space!!! How do i do it!! Please note that i do have ~20gb of space left still...... (2 Replies)
Discussion started by: wrapster
2 Replies

10. HP-UX

increase size

Hi All, one of the mount point in Hp ux server has reached 95% its a data base file and can not be deleted. so i want to know how to increase the size of mount point i am new to unix ,please help me (1 Reply)
Discussion started by: jyoti
1 Replies

Featured Tech Videos