I believe that the "best practices" for running Linux as a guest of z/VM is to define 2 swap disks: 1) a primary swap area defined as a v-disk (a ram disk), and 2) a secondary swap disk defined on a real 3390 device. By monitoring Linux's use of the secondary swap area (on real disk), you can see if the amount of swap space defined is appropriate.
A very handy way of creating and using a VM v-disk for Linux swap is to use the SWAPGEN EXEC. It can be found here: http://www.sinenomine.net/products/vm/swapgen Eatherly, John D [EQ] wrote:
I am not positive that it will work. But this is what was passed to us for doing this. Make Swap File Procedure and Activate: 1. There are three different types of swap files. (a.) Swap space on a ramdisk. (b.) Swap space on a partition. (c.) Swap file. 2. It is recommended that we use (c.) Swap file. IBM RedBook "Linux for S/390" chapter 10.3.4.3 has the procedure that I used. 3. Create a directory for the swap file. For example: "mkdir /vol1/swap" Create a swap file of 128 MB: "dd if=/dev/zero of=/vol1/swap/swapfs1 bs=1M count=128" Set up as swap area: "Mkswap -c /vol1/swap/swapfs1" Adjust the access permissions of the file: "chmod 600 /vol1/swap/swapfs1" "chmod 700 /vol1/swap" documented in chapter 5 page 74 Activate the swap file: "swapon /vol1/swap/swapfs1" Make an entry in /etc/fstab: /vol1/swap/swapfs1 swap swap defaults 0 0 Thanks John Eatherly -----Original Message----- From: Linux on 390 Port [mailto:[EMAIL PROTECTED] On Behalf Of Martin, Terry R. (CMS/CTR) (CTR) Sent: Wednesday, November 26, 2008 10:58 AM To: [email protected] Subject: Add a swap file to a running z/Linux guest Hi, Is there a way to add a SWAP file to a running z/Linux guest and have that guest start using the SWAP file while that guest is running? I am running REDHAT 4.6. Thank You, Terry Martin Lockheed Martin - Information Technology z/OS & z/VM Systems - Performance and Tuning Cell - 443 632-4191 Work - 410 786-0386 [EMAIL PROTECTED] ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
-- DJ V/Soft z/VM and mainframe Linux expertise, training, consulting, and software development www.vsoft-software.com ---------------------------------------------------------------------- For LINUX-390 subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
