Presentation is loading. Please wait.

Presentation is loading. Please wait.

Velocity Software, Inc - XIP for Linux1 XIP (eXecute In Place) for Linux on z/VM Implementation and Analysis

Similar presentations


Presentation on theme: "Velocity Software, Inc - XIP for Linux1 XIP (eXecute In Place) for Linux on z/VM Implementation and Analysis"— Presentation transcript:

1 Velocity Software, Inc - XIP for Linux1 XIP (eXecute In Place) for Linux on z/VM Implementation and Analysis Tony Noto Velocity Software 196-D Castro Street Mountain View, CA (650) Phone (650) Fax November 2005

2 Velocity Software, Inc - XIP for Linux2 Agenda zImplementation procedures for XIP zTargeting processes / libraries zPerformance Analysis

3 Velocity Software, Inc - XIP for Linux3 XIP Implementation zReference: yHow to use Execute-in-Place Technology with Linux on z/VM (SC ) ySHARE 2005 presentation 9266 by Dr. Holger Smolinski y VM Shared Kernel Support (http://www.vm.ibm.com/linux/linuxnss.html)http://www.vm.ibm.com/linux/linuxnss.html yWatch this space for new RedBook zTwo environments yFlex system, z/VM 4.3, 512Meg, SLES9 31-bit service-pack 2 yZ990 z/VM, 5.1, 20Gig, SLES9 64-bit service-pack2

4 Velocity Software, Inc - XIP for Linux4 XIP Implementation zSLES9 has an older but still valid XIP version built in zThe current XIP is delivered in source as diffs apparently need the kernel tree to compile it. zDownload the XIP shell scripts from yhttp://www.ibm.com/developerworks/linux/linux390/april2004_documentation.htmlhttp://www.ibm.com/developerworks/linux/linux390/april2004_documentation.html yhttp://awlinux1.alphaworks.ibm.com/developerworks/linux390/src/xip-howto-scripts-v1.tgzhttp://awlinux1.alphaworks.ibm.com/developerworks/linux390/src/xip-howto-scripts-v1.tgz

5 Velocity Software, Inc - XIP for Linux5 XIP Implementation zCase 1 – z/VM 4.3 SLES9 31-bit yVirtual machine size – 256M yMoving NETSNMP to DCSS yFile specific Sharing

6 Velocity Software, Inc - XIP for Linux6 zThe Process -This process follows, pretty closely, the procedure as defined in SC How to use Execute-in-Place Technology with Linux on z/VM -Download the XIP scripts into the /root directory -Shutdown the linux server: shutdown –h now XIP Implementation

7 Velocity Software, Inc - XIP for Linux7 XIP Implementation zThe Process (Continued) -Define the DCSS: defseg netsnmp fff sr -Failed: The virtual machine didn’t have CP class E -Could have been done from some place like MAINT -Due to the amount of testing, gave the virtual machine class E -Save the DCSS: saveseg netsnmp -Failed: The virtual machine size wasn’t large enough -Increased virtual storage: def stor 1024m -This causes a “system reset” so re-ipled CMS then re-issued the saveseg netsnmp -Side effect: PAGE space utilization shot way up -Reboot LINUX

8 Velocity Software, Inc - XIP for Linux8 XIP Implementation zProcess (continued) -Build the list of files for overmounting: xip-howto-scripts/copylibs.sh –f snmpd –d /dcss -Calculate the required DCSS space: du –sk /dcss -This was actually done prior to creating the DCSS -Determine the number of files that are going into the DCSS: find /dcss –print | wc -l -This was done to obtain overhead - approximately 4k per file -Guess what … it all fit in 64 meg -Copy the init script to /sbin: cp /root/xip-howto-scripts/xipinit-fw.sh /sbin/xipinit –fw -This test was for “file sharing” so we used the xipinit-fw.sh script instead of xipinit.sh script -Alter the xipinit-fw.sh script to point to the mount point and recognize the DCSS name -Vi /sbin/xipinit-fw -#mount point of xipimage -MPXIPIMAGE=“/xip” -#name of xipimage -XIPIMAGE=“NETSNMP”

9 Velocity Software, Inc - XIP for Linux9 XIP Implementation zProcess (continued) -Load the DCSS driver: modprob dcssblk -Get the major number of dcssblk: cat /proc/devices -Check if devices were created: ls –l /dev/dcss* -First time through they probably aren’t so: mknod /dev/dcssblk0 b Do this for each “device” you want within the DCSS -Load the DCSS: echo “NETSNMP” > /sys/devices/dcssblk/add -This failed because the memory was not adjusted to encompass the DCSS -Change the zipl.conf file to define the memory: parameters = “root=/dev/dasda1 selinux=0 TERM=dump elevator=cfg mem=576M” -Danger Will Robinson!! -Encountered trouble with mem=2G, so used mem=2047M -Reboot Linux

10 Velocity Software, Inc - XIP for Linux10 XIP Implementation zProcess (continued) -Load the DCSS driver: modprob dcssblk -Load the DCSS: echo ‘NETSNMP” > /sys/devices/dcssblk/add -Results are echoed onto the virtual console -Set the DCSS for exclusive use: echo 0 > /sys/devices/dcssblk/NETSNMP/shared -Put the ext2 file system on a DCSS mapped device: mke2fs –b 4096 /dev/dcssblk0 -Mount the device: mount /dev/dcssblk0 /mnt -Copy the files: cp –va /dcss/* /mnt -Save the DCSS: echo 1 > /sys/devices/dcssblk/NETSNMP/save -Unmount the DCSS: umount /mnt -This is required to finalize the save of the DCSS -Remove the DCSS: echo “NETSNMP” > /sys/devices/dcssblk/remove

11 Velocity Software, Inc - XIP for Linux11 XIP Implementation zProcess (continued) -Change kernel parms (zipl.conf) to init XIP. -parameters = "root=/dev/dasda1 selinux=0 TERM=dumb elevator=cfq mem=576M init=/sbin/xipinit-fw" -Shutdown Linux: shutdown –h now -Redefine virtual storage if necessary -Reboot LINUX

12 Velocity Software, Inc - XIP for Linux12 Targeting zIdentify large processes zIdentify frequently used processes zEliminate non-shareable processes

13 Velocity Software, Inc - XIP for Linux13 Targeting Storage Processes

14 Velocity Software, Inc - XIP for Linux14 Targeting Storage Processes

15 Velocity Software, Inc - XIP for Linux15 Targeting Frequent Processes

16 Velocity Software, Inc - XIP for Linux16 Targeting Frequent Processes

17 Velocity Software, Inc - XIP for Linux17 LINUX Evaluation Establish Base - Two Suse servers - Each defined as 256M - Base is no DCSS sharing

18 Velocity Software, Inc - XIP for Linux18 LINUX Evaluation Test 1 - Two SUSE servers - Each defined as 256M - SUSELNX1 has a 16M DCSS at the 1.5G mark, mem=1556M - SUSELNX2 has no DCSS - Note Storage usage

19 Velocity Software, Inc - XIP for Linux19 LINUX Evaluation Test 2 - Two Suse servers - Each defined as 256M - Each has a 16M DCSS at the 1.5G mark, mem=1556M - Note Storage usage

20 Velocity Software, Inc - XIP for Linux20 LINUX Evaluation Test 3 - Two Suse servers - Each defined as 256M - Each has a 16M DCSS at the 1G mark, mem=1040M - Note Storage usage

21 Velocity Software, Inc - XIP for Linux21 LINUX Evaluation Test 4 - Two Suse servers - Each defined as 256M - Each has a 16M DCSS at the 256M mark, mem=272M - Note Storage usage

22 Velocity Software, Inc - XIP for Linux22 LINUX Evaluation Back to base - Note Storage usage as compared to “TEST 4”

23 Velocity Software, Inc - XIP for Linux23 z/VM Evaluation VM Storage - Note resident pages as well as working set

24 Velocity Software, Inc - XIP for Linux24 z/VM Evaluation VM Storage - Note resident pages as well as working set

25 Velocity Software, Inc - XIP for Linux25 More Testing zCase 2 – z/VM 5.1 SLES9 64-bit yVirtual machine size – 2G yDCSS defined in “storage hole” yMoving 512M of Oracle 10g to DCSS yDirectory Sharing yResults NYA (Watch for upcoming REDBOOK)

26 Velocity Software, Inc - XIP for Linux26 Summary zReduction in system storage requirements zIncrease in LINUX system storage zpotential reduction in paging zReduction in disk space (DASD to us VMers) zBenefits are best realized in installations running many instances of LINUX with “common” functionality


Download ppt "Velocity Software, Inc - XIP for Linux1 XIP (eXecute In Place) for Linux on z/VM Implementation and Analysis"

Similar presentations


Ads by Google