Default Comment by Bridge

** Attachment added: "bdginfo from the Ubuntu guest"
   
https://bugs.launchpad.net/bugs/1618203/+attachment/4730220/+files/DBGINFO-2016-08-28-06-32-42-UBU9LT1-0A73E6.tgz

** Changed in: ubuntu
     Assignee: (unassigned) => Skipper Bug Screeners (skipper-screen-team)

** Package changed: ubuntu => linux (Ubuntu)

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1618203

Title:
  missing memory slot at /sys/bus/memory/devices when starting memory
  size is not a multiple of block size

Status in linux package in Ubuntu:
  New

Bug description:
  == Comment: #0 - Ofer Baruch  - 2016-08-28 07:41:53 ==
  When you set the memory size of a Ubuntu Guest to a number which is not a 
multiple of the memory block size (in our case 256MB) there are missing memory 
slots at /sys/bus/memory/devices.

  for example setting memory like this:
  STORAGE = 2704M MAX = 15000M INC = 8M STANDBY = 512M RESERVED = 512M

  will cause memory slot 10 to be missing:
  root@UBU9LT1:/sys/bus/memory/devices# ll
  total 0
  drwxr-xr-x 2 root root 0 Aug 24 09:43 ./
  drwxr-xr-x 4 root root 0 Aug 24 09:43 ../
  lrwxrwxrwx 1 root root 0 Aug 24 09:43 memory0 -> 
../../../devices/system/memory/memory0/
  lrwxrwxrwx 1 root root 0 Aug 24 09:43 memory1 -> 
../../../devices/system/memory/memory1/
  lrwxrwxrwx 1 root root 0 Aug 24 09:43 memory11 -> 
../../../devices/system/memory/memory11/
  lrwxrwxrwx 1 root root 0 Aug 24 09:43 memory12 -> 
../../../devices/system/memory/memory12/
  lrwxrwxrwx 1 root root 0 Aug 24 09:43 memory13 -> 
../../../devices/system/memory/memory13/
  lrwxrwxrwx 1 root root 0 Aug 24 09:43 memory2 -> 
../../../devices/system/memory/memory2/
  lrwxrwxrwx 1 root root 0 Aug 24 09:43 memory3 -> 
../../../devices/system/memory/memory3/
  lrwxrwxrwx 1 root root 0 Aug 24 09:43 memory4 -> 
../../../devices/system/memory/memory4/
  lrwxrwxrwx 1 root root 0 Aug 24 09:43 memory5 -> 
../../../devices/system/memory/memory5/
  lrwxrwxrwx 1 root root 0 Aug 24 09:43 memory6 -> 
../../../devices/system/memory/memory6/
  lrwxrwxrwx 1 root root 0 Aug 24 09:43 memory7 -> 
../../../devices/system/memory/memory7/
  lrwxrwxrwx 1 root root 0 Aug 24 09:43 memory8 -> 
../../../devices/system/memory/memory8/
  lrwxrwxrwx 1 root root 0 Aug 24 09:43 memory9 -> 
../../../devices/system/memory/memory9/

  lsmem shows:
  root@UBU9LT1:/sys/bus/memory/devices# lsmem -a
  Address Range                          Size (MB)  State    Removable  Device
  
===============================================================================
  0x0000000000000000-0x000000000fffffff        256  online   no         0-31
  0x0000000010000000-0x000000001fffffff        256  online   yes        32-63
  0x0000000020000000-0x000000002fffffff        256  online   yes        64-95
  0x0000000030000000-0x000000003fffffff        256  online   yes        96-127
  0x0000000040000000-0x000000004fffffff        256  online   yes        128-159
  0x0000000050000000-0x000000005fffffff        256  online   yes        160-191
  0x0000000060000000-0x000000006fffffff        256  online   yes        192-223
  0x0000000070000000-0x000000007fffffff        256  online   no         224-255
  0x0000000080000000-0x000000008fffffff        256  online   yes        256-287
  0x0000000090000000-0x000000009fffffff        256  online   no         288-319
  0x00000000b0000000-0x00000000bfffffff        256  offline  -          352-383
  0x00000000c0000000-0x00000000cfffffff        256  offline  -          384-415
  0x00000000d0000000-0x00000000dfffffff        256  offline  -          416-447

  although there is 1GB of memory in standby and reserved i can only
  vary online 768MB as there are only 3 offline blocks... there should
  be 4 blocks available... specifically block number 10 is missing

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1618203/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to