- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- script performance with gzip, wait and background ...
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
тАО12-30-2008 07:37 PM
тАО12-30-2008 07:37 PM
Re: script performance with gzip, wait and background commands
who > /tmp/who.1 & wait who > /tmp/who.2 &
Only the first who command will generate output; the second who command generates an empty file. However, the use of:
who > /tmp/who.3 & wait; who > /tmp/who.4 &
will result in both commands working.
I assume that the use of the wait command, after a group of background gzip's, is to wait until all of these have finished; before proceding to the next group. If the sizes of the logs is similar, then the gzip processes might all finish at around the same time. However, if there is a considerable difference between the log sizes, then the concatenated gzip's would not be the most efficient techique.
Excuse my previous attempt at structured English; I am a bit out of practice.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-30-2008 11:19 PM
тАО12-30-2008 11:19 PM
Re: script performance with gzip, wait and background commands
Right, that's what I said. But there is NO second who command, there is only a wait.
>who > /tmp/who.3 & wait; who > /tmp/who.4 &
Why propagate silliness? Put them all on separate lines.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-30-2008 11:27 PM
тАО12-30-2008 11:27 PM
Re: script performance with gzip, wait and background commands
gzip... &
gzip... &
gzip... &
gzip... &
wait
gzip...
and so on.
So, this will spawn several gzip processes and then when it hits the wait, the script will not continue until all prior background processes have completed.
Still monitoring the system, but I can see that free memory is decreasing by about 400-500mb per day.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-30-2008 11:38 PM
тАО12-30-2008 11:38 PM
Re: script performance with gzip, wait and background commands
Have you found a process that is increasing in memory use? Does "swapinfo -tam" show an increase in total swap use?
- Tags:
- swapinfo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-31-2008 12:16 AM
тАО12-31-2008 12:16 AM
Re: script performance with gzip, wait and background commands
I do have access to Glance and can get info from there, but am not an expert at reading the data nor how to locate a memory leak issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-31-2008 12:40 AM
тАО12-31-2008 12:40 AM
Re: script performance with gzip, wait and background commands
I'm confused. Only old broken versions of swapinfo fail to let anyone run them. What OS version are you using? What error do you get?
>but am not an expert at reading the data nor how to locate a memory leak issue.
Well, you can look at top and see if the size value is increasing. gpm's process display should have something similar.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-31-2008 11:36 AM
тАО12-31-2008 11:36 AM
Re: script performance with gzip, wait and background commands
me--> $ /usr/sbin/swapinfo -tam
ksh: /usr/sbin/swapinfo: cannot execute
me--> $ ll /usr/sbin/swapinfo
-r-xr--r-- 1 bin bin 20480 Nov 9 2000 /usr/sbin/swapinfo
me--> $ model
9000/800/S16K-A
It's an hp-ux 11.11 machine.
From top:
Memory: 2305944K (1189060K) real, 3826496K (2605988K) virtual, 2410436K free
That free memory was at about 2850000K yesterday morning, and at about 3250000k the morning before. After a reboot, it is around 6550000K
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-31-2008 11:52 AM
тАО12-31-2008 11:52 AM
Re: script performance with gzip, wait and background commands
> I guess our SysAdmin doesn't like to play fair
So it would seem, since on an 11.11 system of mine:
# ls -l /usr/sbin/swapinfo
-r-xr-xr-x 1 bin bin 20480 Sep 7 2004 /usr/sbin/swapinfo
At the least, have your syaadmin 'chmod' the binary as above. Then tell him/her and the DBA that an open dialog and some cooperation goes a long way to finding a solution.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-31-2008 12:01 PM
тАО12-31-2008 12:01 PM
Re: script performance with gzip, wait and background commands
...and if you have 'glance' available you can see swap utilization with 'w'. Use '?' to see other available views.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-31-2008 01:40 PM
тАО12-31-2008 01:40 PM
Re: script performance with gzip, wait and background commands
-r-xr--r-- 1 bin bin 20480 Nov 9 2000 swapinfo
This may be HP's fault here. Your sysadmin would have to use swverify to determine it. But getting a latter patch may just fix it.
You might also make a copy of swapinfo and then add execute permission.
>From top: ... 2410436K free
I'm not sure how much you should be trusting top for this critical info.