- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: script performance with gzip, wait and backgro...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2009 01:44 PM
тАО01-05-2009 01:44 PM
Re: script performance with gzip, wait and background commands
/dev/vg00/lvol2 device,4.0gb avail, 0mb used
pseudo-swap: memory, 9.2gb avail, 6.5gb used
I wrote a little program to display a few things, including dyn_buf.psd_free from pstat_getdynamic and have been capturing that info regularly.
on 12/30, it showed 2624m free and slowly decreased with each day. Today, it shows 1569mb. (We've had little activity over the last two weeks as the plant is shut down for year-end.)
How can I see who's taking up the memory or if there's a leak?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2009 04:07 PM
тАО01-05-2009 04:07 PM
Solution> if there's a leak?
Unbounded growth in the virtual memory (with
no good excuse) would suggest a leak.
A command like:
UNIX95=1 ps -e -o 'pid sz vsz args'
might reveal who's eating the memory. With
a bit of effort, its output could be piped
through an appropriate "sort" command, to
make it easier to find the culprit(s).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-05-2009 07:23 PM
тАО01-05-2009 07:23 PM
Re: script performance with gzip, wait and background commands
Yes. PHCO_27007 fixes it.
>How can I see who's taking up the memory or if there's a leak?
I'm not sure psd_free will give what you want. You could be using that memory for the buffer cache or whatever the kernel needs. It seems that psd_avm would be better.
What you really need to do is look at the size for individual processes and see which is leaking, using ps(1) as mentioned by Steven.
Or you can write another program to look pstat_getproc and these fields:
pst_vtsize; # virtual pages used for text
pst_vdsize; # virtual pages used for data
pst_vssize; # virtual pages used for stack
pst_vshmsize; # virtual pages used for shared memory
pst_vmmsize; # virtual pages used for mem-mapped files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-12-2009 04:22 AM
тАО01-12-2009 04:22 AM
Re: script performance with gzip, wait and background commands
A script like this might do the trick?
#!/bin/bash
num_cpu=12
incl_list="file_with_paths_whitespace_seperated.txt"
output_prefix="file"
binary="/usr/bin/gzip"
options="-c"
x=0
for i in $(cat $incl_list); do
status=1
output_file=$(echo "${output_prefix}_${x}.gz")
while [ $status -ne 0 ]; do
if [ $(ps aux | grep gzip | wc -l) -le $num_cpu ]; then
$binary $options $i $output_file
status=0
else
sleep 10
fi
done
let x=x+1
done
This just makes sure that there never is more then $num_cpus concurrent gzips running.
Hope it gives you some clues :)
Best regards
Fredrik Eriksson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-12-2009 06:42 AM
тАО01-12-2009 06:42 AM
Re: script performance with gzip, wait and background commands
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-20-2009 06:33 PM
тАО02-20-2009 06:33 PM
Re: script performance with gzip, wait and background commands
Sorry for not getting back sooner but wanted to make sure things were running smoothly. Thanks for all of your answers.
Turns out it was a memory issue, but not a memory leak. We've got a lot of things running on the machine and unknown to us, a couple of the database instances SGA sizes were increased.
We changed the dbc_max_pct kernel parm from 50 (default) to 40 and available memory seems to stay stable and enough for our processing. We've been running for almost a month without any issues.
Thanks again,
mike
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО02-21-2009 07:23 AM
тАО02-21-2009 07:23 AM
Re: script performance with gzip, wait and background commands
Unless you have a very small amount of RAM (2 GB or less), then 40% is far too large. Set the value of dbc_max_pct to use about 2-3GB of RAM, perhaps 4-6GB for 11.23 and later. An extremely large DBC is not an efficient use of RAM, especially prior to 11.23. Large SGAs that are setup efficiently will provide a bigger performance improvement than a large DBC. And if Oracle is running raw paritions rather than files, a large DBC is wasted space for Oracle.
Bill Hassell, sysadmin
- « Previous
- Next »