Solved

ulimit -d <number> does not change the data segment size

Posted on 2002-03-14
7
539 Views
Last Modified: 2013-12-27
Hey guys, I am not that familiar with unix world , please try to explain it as simple as possible:-)

I am trying to increase my data segment size with ulimit -d
right now it is 8192 KB.
Running ulimit -a 780000 does not help it runs but it does not echange any thing.

Help!
0
Comment
Question by:prokni
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 3

Expert Comment

by:UkWizard
Comment Utility
It depends what shell you are using, i believe the syntax is different for different shells.


run /bin/sh first,then retry it.
0
 
LVL 3

Expert Comment

by:UkWizard
Comment Utility
Why do you want to change it anyway, i have never had to in all my years as a unix guy.
0
 
LVL 1

Expert Comment

by:decdragon
Comment Utility
Your message says you are running "ulimit -a 780000". If this is not a typo, you need to do the following:

>sh (or ksh)
>ulimit -d
  (You will get the current data segment value setting)
>ulimit -d 780000
>ulimit -d
  (the returned value should be 780000)

Keep in mind that this setting will only apply to your parent process (shell) and associated child processes. In addition, a process that wishes to increase ulimit values must typically have the appropriate priviledges to do so (meaning sometimes you have to be root).
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 2

Author Comment

by:prokni
Comment Utility
I am root
it was typo
I am runing ulimit -d 780
If I run it under Korn shell it gets effected but under Cshell I can not change it.
0
 
LVL 2

Author Comment

by:prokni
Comment Utility
The reason I want to change it is, We are running chilisoft on Solaris and we are experiencing a problem with their module under apache. they have asked us to change the data segment size and file descriptor.
0
 
LVL 1

Accepted Solution

by:
decdragon earned 50 total points
Comment Utility
Under CSH you would do the following:

>ulimit -d
 (You will get the current data segment value setting)
>limit datasize 780000
>ulimit -d
 (the returned value should be 780000)
Notice that the actual command to set the ulimit in CSH is actually "limit". In addition, under CSH you need to add the "datasize" resource variable.
0
 
LVL 51

Expert Comment

by:ahoffmann
Comment Utility
ulimit is sh and derivates (ash, bash, ksh, pdksh, zsh, etc.), in csh and tcsh the command is limit (as described by decdragon)
To get the current values in csh, simply do a
  limit

But keep in mind that you cannot change the values out of bounds specified by the kernel.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now