27.12.2012 Views

The Virtualization Cookbook for SLES 10 SP2 - z/VM - IBM

The Virtualization Cookbook for SLES 10 SP2 - z/VM - IBM

The Virtualization Cookbook for SLES 10 SP2 - z/VM - IBM

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

00: STORAGE = 256M MAX = 1G INC = 1M STANDBY = 768M RESERVED = 0<br />

00: Storage cleared - system reset.<br />

► Answer yes to boot Linux:<br />

DMSACP723I A (191) R/O<br />

DMSACP723I C (592) R/O<br />

DIAG swap disk defined at virtual address 300 (64989 4K pages of swap space)<br />

DIAG swap disk defined at virtual address 301 (129981 4K pages of swap space)<br />

Do you want to IPL Linux from minidisk <strong>10</strong>0? y/n<br />

y<br />

...<br />

► Start an SSH session as root and view the memory in the /sys/ file system. Change<br />

directory to /sys/devices/system/memory/ and list the files:<br />

# cd /sys/devices/system/memory<br />

# ls<br />

block_size_bytes memory0 memory1 memory2 memory3<br />

► Type the block_size_bytes file with the cat command:<br />

# cat block_size_bytes<br />

<strong>10</strong>000000<br />

This number is the number of bytes in hexadecimal. <strong>10</strong>000000 in hex is 256 M in decimal.<br />

So the block size is 256 MB and there are four blocks: memory0-memory3, which are<br />

represented as directories. Each of the memory blocks has a state, which is represented<br />

as a file.<br />

► Show the state of each memory block with the following command:<br />

# cat memory*/state<br />

online<br />

offline<br />

offline<br />

offline<br />

This shows that the first 256 MB is online and the next three blocks are offline.<br />

► You can also show in<strong>for</strong>mation about memory with the free -m command:<br />

# free -m<br />

total used free shared buffers cached<br />

Mem: 241 165 75 0 18 54<br />

-/+ buffers/cache: 92 148<br />

Swap: 761 0 761<br />

This shows 241 MB<br />

► You can turn on memory by sending the string online to the state file. Turn on an<br />

additional 512 MB of memory with the following commands:<br />

# echo online > memory1/state<br />

# echo online > memory2/state<br />

► Show that the memory is now online:<br />

# cat memory*/state<br />

online<br />

online<br />

online<br />

offline<br />

► Again, confirm with the free -m command:<br />

# free -m<br />

total used free shared buffers cached<br />

Mem: 753 170 582 0 18 54<br />

Chapter 13. Miscellaneous recipes 209

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!