> Hmmm... a difference of exactly 512MB. That's two chunks, since a chunk is 256 MB.
I hard rebooted and this time Linux took three extra chunks: (just can't keep his hands out of the cookie jar :)) # zruncommand linux255 lsmem Address Range Size (MB) State Removable Device =============================================================================== 0x0000000000000000-0x000000000fffffff 256 online no 0-15 0x0000000010000000-0x000000002fffffff 512 online yes 16-47 0x0000000030000000-0x000000004fffffff 512 online no 48-79 0x0000000050000000-0x000000005fffffff 256 online yes 80-95 0x0000000060000000-0x000000006fffffff 256 online no 96-111 0x0000000070000000-0x00000001ffffffff 6400 offline - 112-511 Memory device size : 16 MB Memory block size : 256 MB Total online memory : 1792 MB Total offline memory: 6400 MB Here's /proc/meminfo. This is SLES 12 SP1. Maybe one of the linux kernel developers will chime in ... # zruncommand linux255 cat /proc/meminfo MemTotal: 1808132 kB MemFree: 1436692 kB MemAvailable: 1604468 kB Buffers: 2412 kB Cached: 180400 kB SwapCached: 0 kB Active: 145360 kB Inactive: 80648 kB Active(anon): 43496 kB Inactive(anon): 7612 kB Active(file): 101864 kB Inactive(file): 73036 kB Unevictable: 80 kB Mlocked: 80 kB SwapTotal: 1156952 kB SwapFree: 1156952 kB Dirty: 0 kB Writeback: 0 kB AnonPages: 43292 kB Mapped: 17676 kB Shmem: 7912 kB Slab: 24384 kB SReclaimable: 12532 kB SUnreclaim: 11852 kB KernelStack: 2240 kB PageTables: 1620 kB NFS_Unstable: 0 kB Bounce: 0 kB WritebackTmp: 0 kB CommitLimit: 2061016 kB Committed_AS: 138164 kB VmallocTotal: 130023424 kB VmallocUsed: 0 kB VmallocChunk: 0 kB AnonHugePages: 13312 kB HugePages_Total: 0 HugePages_Free: 0 HugePages_Rsvd: 0 HugePages_Surp: 0 Hugepagesize: 1024 kB On Mon, Aug 29, 2016 at 6:21 PM, Alan Altmark <[email protected]> wrote: > On Monday, 08/29/2016 at 09:03 GMT, Michael MacIsaac <[email protected]> > wrote: > > One more question under the Principle of Least Astonishment. You have a > virtual machine with an > > initial of 1G and a STANDBY of 7G. So you can add another 7G, right? > Well yes for VM, but sorry, > > no for Linux: > > > > # zqdirentry linux255 | grep STORAGE > > COMMAND DEFINE STORAGE 1G STANDBY 7G > > # zruncommand linux255 lsmem | grep "Total offline" > > Total offline memory: 6656 MB > > > > VM thinks there is 7G of STANDBY, but Linux seems to have taken a bit > more. So if the user tries to > > add 7G, that can be done in the user directory, but in Linux only 6.5G > or so can be added. > > > > Would it be better to just add all that's available for Linux than to > fail? > > Hmmm... a difference of exactly 512MB. I wonder if there is some kind of > rounding difference between the two or if, with only 1GB online, he > doesn't have room to map the remaining 7GB? Or maybe some rounding error? > Dunno... > > Alan Altmark > > Senior Managing z/VM and Linux Consultant > Lab Services System z Delivery Practice > IBM Systems & Technology Group > ibm.com/systems/services/labservices > office: 607.429.3323 > mobile; 607.321.7556 > [email protected] > IBM Endicott > ---------------------------------------------------------------------- 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 more information on Linux on System z, visit http://wiki.linuxvm.org/
