02-26-2015
Memory allocation for particular process in UNIX
I want to run a C program on my linux machine. I want to allocate specific heap size for that process (C program) to run.
How can I do that?
I know in Java same can be done using -Xmx option.
There may be some option which I can specify in the C program like Java or may be in linux process.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I would like to know how I could allocate some more memory to a process.
Please note that I am not the root user. (1 Reply)
Discussion started by: sagar
1 Replies
2. UNIX for Advanced & Expert Users
Hello!
First of all, forgive me for bad English.
When I starts new thread (pthread_create), system allocates some memory for it (for example, for thread's stack). I wonder when does it deallocate this memory? The problem is that I have a program which sometimes creates new threads and sometimes... (3 Replies)
Discussion started by: prankster
3 Replies
3. UNIX for Dummies Questions & Answers
Hi all,
I have a HP-UX Server with 4 gigabytes of physical RAM. When I use the 'Glance' utility to see what my memory utilization is, my memory usage shows up maxed out at 99%. I shut off all the known processes that I'm running on that box and the memory utilization is still at 78% (with Swap... (1 Reply)
Discussion started by: dehuang83
1 Replies
4. HP-UX
Hi all,
I have a HP-UX Server with 4 gigabytes of physical RAM. When I use the 'Glance' utility to see what my memory utilization is, my memory usage shows up maxed out at 99%. I shut off all the known processes that I'm running on that box and the memory utilization is still at 78% (with Swap... (3 Replies)
Discussion started by: dehuang83
3 Replies
5. Programming
Hi everyone,
I'm not new to C programming, but I'm having question regarding the memory allocation of a pointer variable which, for instance, will be declared in main(), but its memory will be allocated in subroutine.
To clearify my question, I provide a small working example:
#include... (1 Reply)
Discussion started by: MIB_Maik
1 Replies
6. Programming
Hi Experts
I need some help in static memory allocation in C. I have a program in which I declared 2 variables, one char array and one integer. I was little surprised to see the addresses of the variables.
First:
int x;
char a;
printf("%u %u\n', &x, a);
I got the addresses displayed... (2 Replies)
Discussion started by: unx_freak
2 Replies
7. Shell Programming and Scripting
hello all..
i'm a beginner in shell scripting. I need to know what is really happening when we are creating a variable in shell scripting? how memory is allocated for that variable? (3 Replies)
Discussion started by: aarathy
3 Replies
8. HP-UX
Hi,
I have HP-UX 11i v3 running on ia64. One of my application is 32-bit and I want to increase the memory allocation of this file upto 2GB. I am contentiously receiving an error message of Out of Memory.
Can you please explain the procedure what kernel configuration( like maxdsize or... (1 Reply)
Discussion started by: ahmadamin416
1 Replies
9. Programming
Hello,
I am new to C++ programming, so I'm still getting a feel for things. I recently wrote a simple C++ program (to be used as a ROOT Macro) to conduct a statistical analysis of a varied version of the Monty Hall problem (code below). Basically, the programs runs a few simple calculations to... (7 Replies)
Discussion started by: Tyler_92
7 Replies
10. UNIX for Dummies Questions & Answers
I am using ubuntu. I have written a program to calculate prime factors. it works perfectly fine till entered number is less than 9989 (or so ) but when one enters a number higher than that, for example 15000, it does not work. Can anyone guide me whats the problem ? although new codes are welcome,... (2 Replies)
Discussion started by: Abhishek_kumar
2 Replies
SISC(1) General Commands Manual SISC(1)
NAME
sisc - Second Interpreter of Scheme Code
SYNOPSIS
sisc [ option ... ] [ argument ... [ -- [ program-option ... ] ]
DESCRIPTION
SISC, the Second Interpreter of Scheme Code, is an extensible Java based interpreter of the Scheme language as described in the Revised^5
Report on the Algorithmic Language Scheme and adds numerous extensions including Java integration.
STARTUP FILE AND EXPRESSION OPTIONS
-c name
--call-with-args name
Calls the top-level procedure name with the remaining command-line arguments after the -- delimiter.
-e expr
--eval expr
Evaluates the provided expression.
-x
--no-repl
Instructs SISC to run the command line and then exit without entering the REPL.
-h heap-file
--heap heap-file
Specifies that heap-file should be used as the initial heap image.
-p config-file
--properties config-file
Specifies a Java property file that contains application properties.
-l [<host>:]<port>
--listen [<host>:]<port>
Server Mode. Listen on <host>/<port> for REPL connections.
COMMAND LINE BEHAVIOR
The commandline is processed in the following manner.
First, the entire command line is processed, noting the settings of each switch and accumulating all Scheme source files and arguments
after the end of options sequence.
Second, the heap file is loaded.
Third, each Scheme source file is loaded in the order they occured on the command line. Errors are noted.
Fourth, if present, the expression in an --eval switch is evaluated. Errors are noted.
Fifth, if present, named function in a --call-with-args switch is applied to the arguments after the end of options sequence. Its return
value is noted.
Sixth, --no-repl was not specified, the REPL is invoked.
Finally, if the REPL was run if its return value is an integer, that integer is returned as SISC's overall return code. If the REPL was not
run, and any return code supporting step above was run, the most recent return code is returned. If no return code step was performed, but
a success/failure step was performed, 1 is returned if any failures occured, 0 otherwise.
EXECUTABLE SCRIPTS
SISC supports all the required SRFI-22 bootstraps, consult the body of SRFI-22 for more information about using it to write executable
Scheme programs.
MORE INFORMATION
For further information on SISC, please read the SISC for Seasoned Schemers manual available at
http://sisc.sourceforge.net/manual/
BUGS
Submit bug reports to the SISC Users Mailing List.
AUTHOR
SISC was created by Scott G. Miller (sgmiller@gmail.com) with significant contribution from Matthias Radestock (matthias@sorted.org).
4th Berkeley Distribution June 2005 SISC(1)