Re: bash question.

2012-04-12 Thread Mark Post
>>> On 4/12/2012 at 11:42 PM, John McKown wrote: > bash has variables, such as $PATH and $HOME and maybe even $i. If a > variable has been the subject of an export command, you find all of them > which are export'd using the printenv command. But is there some way to > find the ones which exist,

bash question.

2012-04-12 Thread John McKown
bash has variables, such as $PATH and $HOME and maybe even $i. If a variable has been the subject of an export command, you find all of them which are export'd using the printenv command. But is there some way to find the ones which exist, but have not been export'd? No, I guess I don't have a rea

Re: pid swap space used

2012-04-12 Thread PHILIP TULLY
It appears my script was not good for a sles10 system as I was informed by IBM tonight that "Determining swap space used by a particular process from smaps doesn't appear to be available until SLES11 kernels" So I'm still looking for a way to see this but that isn't the way. Phil

Re: swap and RedHat kickstart

2012-04-12 Thread Rothman, Peter
< What happens if you try a mkswap on one (or both) of these - can you then "swapon -a" them?> This works and the swap is preserved after a reboot. See below. Seems like the 'ks' process is messing with the pre-formatted swap disks. [root@zhldvztda002 ~]# mkswap /dev/dasdc1 Setting up swapspac

JRE 1.3.1

2012-04-12 Thread Livio Sousa
Hi Folks, Does anybody has JRE 1.3.1 for Linux on z to share with me? Regards. -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit ht

2012 VM Workshop details updated

2012-04-12 Thread David Boyes
Most of the arrangements and information for the 2012 VM Workshop have been posted to http://www.vmworkshop.org. The workshop will be held at the University of Kentucky on Wednesday June 27 to Saturday, June 30 2012. The price is the same as last year: $100 per attendee -- the best bargain o

Re: swap and RedHat kickstart

2012-04-12 Thread Michael MacIsaac
Peter, This definitely looks like an issue: swapon: /dev/dasdd1: read swap header failed: Invalid argument swapon: /dev/dasdc1: read swap header failed: Invalid argument What happens if you try a mkswap on one (or both) of these - can you then "swapon -a" them? "Mike MacIsaac"(845) 433-7061

Re: swap and RedHat kickstart

2012-04-12 Thread Scott Rohling
Is your kickstart file defining the DASD to be used and which should be used as swap? It needs to.. show us the pertinent statements in the ks file if so.. Scott Rohling On Thu, Apr 12, 2012 at 11:14 AM, Rothman, Peter < peter.roth...@travelport.com> wrote: > Our few linux servers have been s

Re: swap and RedHat kickstart

2012-04-12 Thread David Boyes
> Well the PROFILE EXEC is always run and the swap 201/202 are always > defined. > The PROFILE checks if the userid is disconnected and if so assumes it needs > to boot linux with what we have as IPL 100. > The swap dasd definitely is there and shows up in "lsdasd" - its also in > fstab. OK, so f

Re: swap and RedHat kickstart

2012-04-12 Thread Rothman, Peter
Well the PROFILE EXEC is always run and the swap 201/202 are always defined. The PROFILE checks if the userid is disconnected and if so assumes it needs to boot linux with what we have as IPL 100. The swap dasd definitely is there and shows up in "lsdasd" - its also in fstab. Here is the 3270 con

Re: swap and RedHat kickstart

2012-04-12 Thread Michael MacIsaac
Are there two entries in /etc/fstab? "Mike MacIsaac"(845) 433-7061 -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.

Re: swap and RedHat kickstart

2012-04-12 Thread David Boyes
> Our few linux servers have been stable for a few years now. > We are working on installing a few new servers and I noticed something > strange about swap after a kickstart. How are you initiating the kickstart? The PROFILE EXEC doesn't get run until you IPL CMS in the virtual machine, and if

swap and RedHat kickstart

2012-04-12 Thread Rothman, Peter
Our few linux servers have been stable for a few years now. We are working on installing a few new servers and I noticed something strange about swap after a kickstart. We use SWAPGEN to define swap at 201 and 202. The ks completes fine but we don't have any swap - "swapon -s" does not show anyt

Re: pid swap space used

2012-04-12 Thread Mark Post
>>> On 4/12/2012 at 10:18 AM, PHILIP TULLY wrote: > From the looks of this system, I suspect an overnight backup process > utilizing the full memory allocation and populating swap. That process > then finishes but swap doesn't' clear because of it's "lazy" attributes. If you're collecting SAR d

Re: pid swap space used

2012-04-12 Thread PHILIP TULLY
Rob/Shane, I appreciate your overnight assistance, I did modify the script to look at all pids, with the same result. I do realize that linux memory mgmt is lazy (delayed cache writes) and that is why I was wondering if I can't find which current pid has swap allocations, is there a way to run t

Re: pid swap space used

2012-04-12 Thread Shane G
On Thu, Apr 12th, 2012 at 8:37 PM, Rob van der Heij wrote: > With 22 processes having this mapped, I would count it as 22 times 8 > kB while it really is just 8 kB on swap? And how come part of this is > private when it's read-only? Note the last sentence of my previous post. That applies (partic

Re: pid swap space used

2012-04-12 Thread Rob van der Heij
On Thu, Apr 12, 2012 at 11:02 AM, Shane G wrote: > No, by lazy in this context I meant that freed memory (pages) are not > immediately moved to the free list. This even extends to task termination. > If memory pressure ramps up sufficiently, kswapd will get kicked to balance > out the trees. Coul

Re: pid swap space used

2012-04-12 Thread Shane G
No, by lazy in this context I meant that freed memory (pages) are not immediately moved to the free list. This even extends to task termination. If memory pressure ramps up sufficiently, kswapd will get kicked to balance out the trees. Could take a while - like forever. In addition to what Rob men

Re: pid swap space used

2012-04-12 Thread Rob van der Heij
On Thu, Apr 12, 2012 at 4:09 AM, PHILIP TULLY wrote: > I was using the following to show how much swap space was being used it > is either not working or there is nothing allocated to swap. > > for pid in `ps -ef|grep  ora| awk '{print $2}'`; do echo -n "Pid: $pid > "; cat /proc/$pid/smaps |grep