10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hello,
I am running ubuntu 14.04 in a server with 32GB ram.
Due to receiving "high load" errors during ssh connection, I took a look at what's happening from command line. I detected that 20GB of total memory was allocated to a program.
Below you can see some initial part of installation... (4 Replies)
Discussion started by: baris35
4 Replies
2. Red Hat
So we have a RHEL 7.6 workstation with 128 gigs of ram. The OS sees all the ram and 80 cors (40 HT)
We have 1 guest with 8 CPUs and 32gigs of ram running RHEL 7.6 workstation as well. We are trying to create another guest with 64 CPUs and 80 gigs of ram. We setup the system using... (0 Replies)
Discussion started by: joeg1484
0 Replies
3. Shell Programming and Scripting
I have nginx web server logs with all requests that were made and I'm filtering them by date and time.
Each line has the following structure:
127.0.0.1 - xyz.com GET 123.ts HTTP/1.1 (200) 0.000 s 3182 CoreMedia/1.0.0.15F79 (iPhone; U; CPU OS 11_4 like Mac OS X; pt_br)
These text files are... (21 Replies)
Discussion started by: brenoasrm
21 Replies
4. Shell Programming and Scripting
This basic code works.
I have a very long list, almost 10000 lines that I am building into the array. Each line has either 2 or 3 fields as shown in the code snippit. The array elements are static (for a few reasons that out of scope of this question) the list has to be "built in".
It... (5 Replies)
Discussion started by: sumguy
5 Replies
5. Shell Programming and Scripting
Hello
I have the following files
VOICE_hhhh
SUBSCR_llll
DEL_kkkk
Consider that there are 1000 VOICE files+1000 SUBSCR files+1000DEL files
When i try to tar these files using
tar -cvf backup.tar VOICE* SUBSCR* DEL*
i get the error:
ksh: /usr/bin/tar: arg list too long
How can i... (9 Replies)
Discussion started by: chriss_58
9 Replies
6. HP-UX
Hi,
Am new to HP UX , is there a way to find out the size of memory allocated to a pointer on hp ux?
For example we can use the _msize() on windows to find the size of memory allocated to a pointer .
#include <stdio.h>
#include <malloc.h>
void main()
{
void *buffer; ... (0 Replies)
Discussion started by: Wkdunreal
0 Replies
7. Programming
Actually for a process to run it needs text, stack , heap and data segments. All these find a place in the physical memory.
Out of these 4 only heap does exist after the termination of the process that created it. I want to know the exact reason why this happens. Also why the other process need to... (20 Replies)
Discussion started by: karthiktceit
20 Replies
8. Programming
Hi,
I'm trying to figure out the best solution to the following problem, and I'm not
yet that much experienced like you. :-)
Basically I have to read a fairly large file, composed of "messages" , in order
to display all of them through an user interface (made with QT).
The messages that... (3 Replies)
Discussion started by: emitrax
3 Replies
9. Linux
Hi,
I'm developing a data processing pipeline with multiple stages, with data being moved between the stages using shared memory segments. The size of the data is typically of the order of hundreds of megabytes, and there are typically a few tens of main shared memory segments each of size... (2 Replies)
Discussion started by: theicarusagenda
2 Replies
10. Solaris
Hi,
How to find out what is the maximum memory allocated to TOMCAT server in SunOS 5.8?
The Tomcat server crashes down during peak times....
Regards (1 Reply)
Discussion started by: baanprog
1 Replies
mincore(2) System Calls mincore(2)
NAME
mincore - determine residency of memory pages
SYNOPSIS
#include <sys/types.h>
int mincore(caddr_t addr, size_t len, char *vec);
DESCRIPTION
The mincore() function determines the residency of the memory pages in the address space covered by mappings in the range [addr, addr +
len]. The status is returned as a character-per-page in the character array referenced by *vec (which the system assumes to be large enough
to encompass all the pages in the address range). The least significant bit of each character is set to 1 to indicate that the referenced
page is in primary memory, and to 0 to indicate that it is not. The settings of other bits in each character are undefined and may contain
other information in future implementations.
Because the status of a page can change between the time mincore() checks and returns the information, returned information might be out-
dated. Only locked pages are guaranteed to remain in memory; see mlock(3C).
RETURN VALUES
Upon successful completion, mincore() returns 0. Otherwise, -1 is returned and errno is set to indicate the error.
ERRORS
The mincore() function will fail if:
EFAULT The vec argument points to an illegal address.
EINVAL The addr argument is not a multiple of the page size as returned by sysconf(3C), or the len argument has a value less than or
equal to 0.
ENOMEM Addresses in the range [addr, addr + len] are invalid for the address space of a process or specify one or more pages which are
not mapped.
SEE ALSO
mmap(2), mlock(3C), sysconf(3C)
SunOS 5.11 12 Aug 1990 mincore(2)