Sponsored Content
Full Discussion: Finding Cause of Memory Leak
Top Forums Web Development Finding Cause of Memory Leak Post 302758053 by Pokeyzx on Friday 18th of January 2013 11:25:53 AM
Old 01-18-2013
Thanks for the replies.

Corona:
I've posted the output of meminfo below. I don't know what sar is, sorry.

Skrynesaver:
I've managed the first bit of your code, but you've lost me at step 2 sorry, I don't know what the core filename or path to executable are.

MemTotal: 3563324 kB
MemFree: 1827040 kB
Buffers: 53532 kB
Cached: 306200 kB
SwapCached: 0 kB
Active: 1404968 kB
Inactive: 150292 kB
Active(anon): 1195840 kB
Inactive(anon): 4724 kB
Active(file): 209128 kB
Inactive(file): 145568 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 4194288 kB
SwapFree: 4194288 kB
Dirty: 3588 kB
Writeback: 0 kB
AnonPages: 1195520 kB
Mapped: 33712 kB
Shmem: 5040 kB
Slab: 95536 kB
SReclaimable: 65852 kB
SUnreclaim: 29684 kB
KernelStack: 1360 kB
PageTables: 22760 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 5975948 kB
Committed_AS: 1752156 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 299972 kB
VmallocChunk: 34359434188 kB
HardwareCorrupted: 0 kB
AnonHugePages: 917504 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
DirectMap4k: 8832 kB
DirectMap2M: 3821568 kB
 

9 More Discussions You Might Find Interesting

1. Programming

about virtual memory and memory leak

Hi, First of all I appreciate this group very much for its informative discussions and posts. Here is my question. I have one process whose virtual memory size increases linearly from 6MB to 12MB in 20 minutes. Does that mean my process has memory leaks? In what cases does the... (4 Replies)
Discussion started by: shriashishpatil
4 Replies

2. UNIX for Advanced & Expert Users

Memory leak while using pthread_cancel()

I tried to execute a sample pthread program to cancel a newly created one using pthread_cancel(). but using valgrind on my code shows some memory leak. My Code: #include "iostream" #include "unistd.h" #include "pthread.h" #include "signal.h" using namespace std; void handler(int); void*... (4 Replies)
Discussion started by: kcr
4 Replies

3. Programming

Memory LEAK with pthreads

I have this code... #include <stdio.h> #include <iostream> #include <pthread.h> static void* cliente(void *datos); int main() { pthread_attr_t tattr; int ret; size_t size = PTHREAD_STACK_MIN + 0x0100; ret = pthread_attr_init(&tattr); ret =... (8 Replies)
Discussion started by: JEscola
8 Replies

4. UNIX for Advanced & Expert Users

Memory leak in pthread

helo frnds, I am using RHEL5 and C lang for development. I am getting some memory leak problem in pthread. I hav developed a program which creates two threads for listening purpose on two diff ports. both the child threads are doing same job but on diff port no. I am using... (4 Replies)
Discussion started by: mindTeaser
4 Replies

5. IP Networking

memory leak?

Hi All, my client server application can work in two modes: 1) one direction - only client sends msgs to server 2) two directions - server gives 'answers' to client. when program run in the first mode it looks OK, but when server answers to client than client's application exit its... (2 Replies)
Discussion started by: lenna
2 Replies

6. Programming

memory leak problem

hi all Can any one plz explain me about memory leak problem Thankx (5 Replies)
Discussion started by: sonali
5 Replies

7. HP-UX

Problem with memory leak

Hi, This is my 1st post here. I am facing a rather weired problem. I have a C++ binary running on HP-UX. The output of top as well as glance shows periodic increase in memory. But when i use gdb to detect it, i dont get the desired output...gdb says...no leaks found. Just to mention that I have... (2 Replies)
Discussion started by: kshk123
2 Replies

8. Programming

Memory Leak

Hi, I am trying a database server which keeps a B+ plus tree structure and works on it. I am trying to find the memory used/leak while executing this process. I check the memory leak by using ps uax command. When i execute a delete query i am sure that my code frees up the existing... (9 Replies)
Discussion started by: kumaran_5555
9 Replies

9. Red Hat

Memory leak

Hi all I am using RED HAT 5.4, and i am getting memory uses problem. when i use "sync;echo 3 > /proc/sys/vm/drop_cache" command the memory will release after 2,3 hour memory show 95%. pls suggest right way. thanks (37 Replies)
Discussion started by: reply.ravi
37 Replies
parstatus(1)						      General Commands Manual						      parstatus(1)

NAME
parstatus - display information about a hardware partitionable complex SYNOPSIS
username username username username username username username I/Ochassis]... username cell]... username cabinet]... username PartitionNumber]... username username DESCRIPTION
The command displays information about a system complex. If no arguments are supplied, all major components that are physically present in the local complex are listed. A specific component (cell, I/O chassis, cabinet, or partition) may be specified in order to restrict the output to information about that component. Either the option or the option can be specified to access a remote complex. Refer to the for a description of the partition management terms used in this man page. Options and Arguments recognizes the following command line options and arguments: Only display the available resources in the complex. If the option is used with other options, an error occurs except when the option is used with its related options. Show information for all cabinets in the complex. Show information about the specified cabinet. Show information for all cells in the complex. Show information about the specified cell. The cell id can be specified either in the local (cabinet#/slot#) or global (cell_ID) format. For example, the cell located in cabinet 0, slot 1 is locally identified as 0/1 or globally as 1. Allows access to the complex specified by the option. The accessed complex is then considered the target complex. Access is through the service processor's LAN port. The option is required if this option is used. If this option is specified, the command prompts for the password. If an error is reported when you attempt to connect using this option, check to see that IPMI LAN access has not been disabled on the remote service processor. Access to the complex through IPMI over LAN can be enabled or disabled by logging on to the service processor and using the command from the Command Menu. The and options are mutually exclusive. This option should only be used in combination with either the or option. IPaddress|hostname specifies the IP address or hostname of the target partition or complex Show information for all I/O chassis in the complex. Show information about the specified I/Ochassis. The I/Ochassis id can be specified in the form of cabinet#/enclosure#/chassis#. For example, the I/O chassis located in cabinet 0, enclosure 1 and I/O chassis slot 3 is identified as 0/1/3. Produce a machine readable/parseable output, or restrict the output of the option to a partition number. The machine readable output will have the columns separated by a single colon character and will not have a column header. Show information for all partitions in the complex. Show information about the specified partition. PartitionNumber is the unique partition number (integer) which was assigned to the partition when it was created. Display the cell online activation (OLA) and deactivation (OLD) operation status information of all cells in a partition. Indicates if the command is being executed on a hardware partitionable platform. When this option is specified, the command will either succeed or fail (see below) and nothing will be displayed on std- out or stderr. Only display the Hyper-Threading information for supported systems. If the option is used with other options, an error occurs except when the option is used with its related options. If the option is used on a non-supported system, an error occurs. Specifies the required authorization to access a partition other than the local partition (but can also be used as a loopback access to the local partition). If complex attributes are displayed, the complex is the one in which this target partition resides. The option is required if this option is used. If this option is specified, the command prompts for the password. username specifies a configured user name on the target partition. Note: This command is a Web-Based Enterprise Management (WBEM) Client Application. The option accesses the target partition using a Secure Sockets Layer (SSL) connection. If errors are reported, check that the conditions described in the section are satisfied. Verbose mode. Increase the amount of information displayed. Additional information displayed with includes: For Cabinet: * Status of each of the cabinet blower(s) * Status of each of the I/O fan(s) * Status of each of the bulk power supply(s) * Status of each of the backplane power board(s) For Partition: * Primary, alternate and secondary boot path settings * PDC, IODC version numbers * Memory interleaving / local memory settings * Cells summary information * I/O chassis summary information For Cell: * Details of each cpu on the cell * Details of memory on the cell * Memory interleaving / local memory settings Display the local partition number in a full sentence. If the option connects to another partition, that partition number is reported instead. The option restricts the display to just the par- tition number. Display the complex attributes. Mapping of Global Cell Numbers to Local Cell Numbers The cabinets in a complex are numbered starting from 0. The cell slots in each cabinet are also numbered starting from 0. Each cabinet can have a maximum of 8 cells. For example, the cells located in cabinet 0 will have the following cell numbers in global format: 0, 1, 2, 3, 4, 5, 6, 7. The cell numbers in corresponding local format will be 0/0, 0/1, 0/2, 0/3, 0/4, 0/5, 0/6, 0/7. Similarly the cells located in cabinet 1 will have the following cell numbers in global format: 8, 9, 10, 11, 12, 13, 14, 15. The cell numbers in corresponding local format will be 1/0, 1/1, 1/2, 1/3, 1/4, 1/5, 1/6, 1/7. From the above convention the cell located in cabinet 1, slot 0 is identified in the local format as 1/0 or in the global format as 8. The command will display the above cell as "cab1,cell0". The cell located in cabinet 1, slot 4 is identified in the local format as 1/4 or in the global format as 12. The command will display the above cell as "cab1,cell4". Cell Types This sections explains the core and base cell types. Core Cell One cell in each nPartition must serve as active core cell. This active core cell is connected to an I/O chasis that has a core I/O. A core cell controls the nPartition until HP-UX is booted. It also provides the console access for the nPartition. Base Cell A base cell is a cell that the operating system does not guarantee online deletable in terms of how the cell resources are used. Inter- leaved memory can only be allocated from base cells. The HP-UX 11i utilities for managing nPartitions automatically set the cell type to base cell if you do not specify the cell type. RETURN VALUE
The command exits with one of the following values: Successful completion. Error condition occurred. EXAMPLES
Example 1 Display information for all the I/O chassis in the complex: The output format is as shown below. [Chassis] Core Connected Par Hardware Location Usage IO To Num =================== ============ ==== ========== === cab0,bay0,chassis0 Absent - - - cab0,bay0,chassis1 Active yes cab0,cell0 0 cab0,bay0,chassis2 Absent - - - cab0,bay0,chassis3 Active yes cab0,cell4 2 cab0,bay1,chassis0 Absent - - - cab0,bay1,chassis1 Active yes cab0,cell6 1 cab0,bay1,chassis2 Absent - - - cab0,bay1,chassis3 Inactive yes cab0,cell2 1 Example 2 The following example displays information for all major components that are physically present in the local complex. No action is speci- fied for the command; the default behavior is to display all. [Complex] Complex Name : SuperDomeComplex Complex Capacity Compute Cabinet (8 cell capable) : 1 Active MP Location : cabinet 0 Model : 9000/800/SD32000 Original Serial Number : USR4001WXY Current Product Order Number : 12345B Original Manufacturer : HP Complex Profile Revision : 1.0 The total number of partitions present : 3 [Cabinet] Cabinet I/O Bulk Power Backplane Blowers Fans Supplies Power Boards OK/ OK/ OK/ OK/ Cab Failed/ Failed/ Failed/ Failed/ Num Cabinet Type N Status N Status N Status N Status MP === ============ ========= ========= ========== ============ ====== 0 8 cell slot 4/0/N+ 5/0/NA 5/0/N+ 3/0/N+ Active Notes: N+ = There are one or more spare items (fans/power supplies). N = The number of items meets but does not exceed the need. N- = There are insufficient items to meet the need. ? = The adequacy of the cooling system/power supplies is unknown. HO = Housekeeping only; The power is in a standby state. NA = Not Applicable. [Cell] CPU Memory Use OK/ (GB) Core On Hardware Actual Deconf/ OK/ Cell Next Par Location Usage Max Deconf Connected To Capable Boot Num ========== ============ ======= ======== =================== ======= ==== === cab0,cell0 Active Core 4/0/4 2/0 cab0,bay0,chassis1 yes yes 0 cab0,cell1 Active Base 2/0/4 2/0 - no yes 2 cab0,cell2 Inactive 4/0/4 2/0 cab0,bay1,chassis3 yes yes 1 cab0,cell3 Inactive 2/0/4 2/0 - no - - cab0,cell4 Active Core 2/0/4 2/0 cab0,bay0,chassis3 yes yes 2 cab0,cell5 Powered off 0/0/4 ? ? ? no 0 cab0,cell6 Active Core 2/0/4 2/0 cab0,bay1,chassis1 yes yes 1 cab0,cell7 Powering on 0/0/4 ? ? ? - - Notes: * = Cell has no interleaved memory. [Chassis] Core Connected Par Hardware Location Usage IO To Num =================== ============ ==== ========== === cab0,bay0,chassis0 Absent - - - cab0,bay0,chassis1 Active yes cab0,cell0 0 cab0,bay0,chassis2 Absent - - - cab0,bay0,chassis3 Active yes cab0,cell4 2 cab0,bay1,chassis0 Absent - - - cab0,bay1,chassis1 Active yes cab0,cell6 1 cab0,bay1,chassis2 Absent - - - cab0,bay1,chassis3 Inactive yes cab0,cell2 1 [Partition] Par # of # of I/O Num Status Cells Chassis Core cell Partition Name (first 30 chars) === ============ ===== ======== ========== =============================== 0 Active 2 1 cab0,cell0 cup2000 1 Active 3 2 cab0,cell6 cup2006 2 Active 2 1 cab0,cell4 cup2004 [Partition - Multithread] Par Num Multithreading Enabled ======= ====================== 0 no 1 no 2 no DEPENDENCIES
This command uses the Web-Based Enterprise Management (WBEM) product and some of its configuration settings. If you encounter connection errors when using the option, check that the following two conditions are satisfied: o Use the command (see cimconfig(1M) in the WBEM product documentation) to verify (and correct if necessary) the setting of the following two variables: o o o The target partition's digital certificate has been appended to the local partition's Shared Authentication Store. For the nPartition commands, the Shared Authentication Store is stored in the file: This file is used by all the clients, which use SSL based certificates. If these clients trust a target partition, then the nPartition commands will also trust the target partition. Refer to the WBEM documents specified in the section below for further information. AUTHOR
was developed by the Hewlett-Packard Company. SEE ALSO
fruled(1), cplxmodify(1M), frupower(1M), parconfig(1M), parcreate(1M), parmgr(1M), parmodify(1M), parolrad(1M), parremove(1M), parun- lock(1M), partition(5). on on on parstatus(1)
All times are GMT -4. The time now is 07:13 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy