07-03-2010
Is the OS 32-bit or 64-bit? In a 32-bit program, the per-process maximum memory limit is 4GB no matter how much more the OS may have available.
9 More Discussions You Might Find Interesting
1. Programming
For example if i have the piece of code as follows:
CountryName = (char *)malloc((strlen(CountryName)+1)*sizeof(char));
memset(CountryName, 0, strlen(CountryName)+1);
CountryName = SOME VALUE
Now how do i free the memory after use of this code???? :confused: (3 Replies)
Discussion started by: jazz
3 Replies
2. AIX
Hi,
how to find free memory in aix? for installing oracle,I have used svmon but not getting proper output (1 Reply)
Discussion started by: manoj.solaris
1 Replies
3. Solaris
Hi,
Im working on Solaris 9 on SPARC-32 bit running on an Ultra-80, and I have to find out the following:-
1. Total Physical Memory in the system(total RAM).
2. Available Physical Memory(i.e. RAM Usage)
3. Total (Logical) Memory in the system
4. Available (Logical) Memory.
I know... (4 Replies)
Discussion started by: 0ktalmagik
4 Replies
4. Solaris
Hi all,
Could please let me know how to get the more memory free space (not added the RAM) in local zone.
-bash-3.00# vmstat 2 5
kthr memory page disk faults cpu
r b w swap free re mf pi po fr de sr s0 s1 s1 s1 in sy cs us sy... (3 Replies)
Discussion started by: murthy76
3 Replies
5. Red Hat
hi, I have done the below, but am confused as to how much memory is "free"
please help
thanks
$ free
total used free shared buffers cached
Mem: 132033488 48827536 83205952 0 1007696 45404632
-/+ buffers/cache: 2415208 ... (7 Replies)
Discussion started by: JamesByars
7 Replies
6. Web Development
Any clues on how to get rid of this PHP error?
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 71 bytes) in /website/www/includes/functions_manpages.php on line 58
PHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 71... (4 Replies)
Discussion started by: Neo
4 Replies
7. Shell Programming and Scripting
While running script I am getting an error like
Few lines in data are not being processed.
After googling it I came to know that adding such line would give some memory to it
ini_set("memory_limit","64M");
my input file size is 1 GB.
Is that memory limit is based on RAM we have on... (1 Reply)
Discussion started by: elamurugu
1 Replies
8. Programming
Hi guys.
I've a question, if we are using a syscall that receives a string allocated dynamicaly to a determined size, or NUL and it will allocate the apropriate size. We should free the memory or the OS will do it for us?
If a function returns a pointer we should free that poiter when we are done... (7 Replies)
Discussion started by: pharaoh
7 Replies
9. Shell Programming and Scripting
I have two files:
1. A huge 8 GB text file. (big_file.txt)
2. A huge list of words approximately 8 million of them. (words_file.txt). Each word is separated by a newline.
What I intend to do is to read each word "w" from words_file.txt and search for that word in big_file.txt. Then extract two... (12 Replies)
Discussion started by: shoaibjameel123
12 Replies
LEARN ABOUT OSX
posix_memalign
POSIX_MEMALIGN(3) BSD Library Functions Manual POSIX_MEMALIGN(3)
NAME
posix_memalign -- aligned memory allocation
SYNOPSIS
#include <stdlib.h>
int
posix_memalign(void **memptr, size_t alignment, size_t size);
DESCRIPTION
The posix_memalign() function allocates size bytes of memory such that the allocation's base address is an exact multiple of alignment, and
returns the allocation in the value pointed to by memptr.
The requested alignment must be a power of 2 at least as large as sizeof(void *).
Memory that is allocated via posix_memalign() can be used as an argument in subsequent calls to realloc(3), reallocf(3), and free(3). (Note
however, that the allocation returned by realloc(3) or reallocf(3) is not guaranteed to preserve the original alignment).
NOTES
posix_memalign() should be used judiciously as the algorithm that realizes the alignment constraint can incur significant memory overhead.
RETURN VALUES
The posix_memalign() function returns the value 0 if successful; otherwise it returns an error value.
ERRORS
The posix_memalign() function will fail if:
[EINVAL] The alignment parameter is not a power of 2 at least as large as sizeof(void *).
[ENOMEM] Memory allocation error.
SEE ALSO
free(3), malloc(3), realloc(3), reallocf(3), valloc(3), malloc_zone_memalign(3)
STANDARDS
The posix_memalign() function conforms to IEEE Std 1003.1-2001 (``POSIX.1'').
BSD
April 9, 2008 BSD