[Bug 1687212] [NEW] ~16 GB written to disk from power on till lightdb login screen?

TomaszChmielewski 1687212 at bugs.launchpad.net
Sat Apr 29 17:07:26 UTC 2017


Public bug reported:

After each system boot, iostat -m shows that the kernel has written
around 16 GB to SSD disk:

avg-cpu:  %user   %nice %system %iowait  %steal   %idle
           9.10    0.00   10.06    2.38    0.00   78.47

Device:            tps    MB_read/s    MB_wrtn/s    MB_read    MB_wrtn
sda             702.32        16.91      1495.65        182      16108
dm-0            808.36        15.64      1495.65        168      16108
dm-1            786.82        15.39         0.01        165          0
dm-2             10.21         0.21      1495.64          2      16107

It's a fresh Ubuntu 17.04 installation with rootfs installed on LUKS.

/proc/diskstats (https://www.kernel.org/doc/Documentation/ABI/testing
/procfs-diskstats) seem to be matching the output of "iostat -m".


Please note that dm-2 is 16 GB swap (the system has 16 GB RAM):

$ ls /dev/mapper/ -l
total 0
crw------- 1 root root 10, 236 Apr 30 01:53 control
lrwxrwxrwx 1 root root       7 Apr 30 01:53 sda3_crypt -> ../dm-0
lrwxrwxrwx 1 root root       7 Apr 30 01:53 ubuntu--vg-root -> ../dm-1
lrwxrwxrwx 1 root root       7 Apr 30 01:53 ubuntu--vg-swap_1 -> ../dm-2


$ cat /proc/swaps 
Filename                                Type            Size    Used    Priority
/dev/dm-2                               partition       16494588        0       -1


So what seems to happen, is that the OS overwrites the whole encrypted swap partition during bootup.

This is very worrying, given that it's SSD disk!

ProblemType: Bug
DistroRelease: Ubuntu 17.04
Package: systemd 232-21ubuntu3
Uname: Linux 4.11.0-041100rc7-generic x86_64
ApportVersion: 2.20.4-0ubuntu4
Architecture: amd64
Date: Sun Apr 30 01:57:04 2017
ExecutablePath: /lib/systemd/systemd
InstallationDate: Installed on 2017-04-14 (15 days ago)
InstallationMedia: Ubuntu 17.04 "Zesty Zapus" - Release amd64 (20170412)
Lsusb:
 Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
 Bus 001 Device 002: ID 093a:2510 Pixart Imaging, Inc. Optical Mouse
 Bus 001 Device 003: ID 1bcf:2b95 Sunplus Innovation Technology Inc. 
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
MachineType: Dell Inc. Precision 5520
ProcEnviron:
 TERM=linux
 PATH=(custom, no user)
ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-4.11.0-041100rc7-generic root=/dev/mapper/ubuntu--vg-root ro quiet splash vt.handoff=7
SourcePackage: systemd
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 03/29/2017
dmi.bios.vendor: Dell Inc.
dmi.bios.version: 1.2.4
dmi.board.name: 0GPNW9
dmi.board.vendor: Dell Inc.
dmi.board.version: A00
dmi.chassis.type: 10
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvr1.2.4:bd03/29/2017:svnDellInc.:pnPrecision5520:pvr:rvnDellInc.:rn0GPNW9:rvrA00:cvnDellInc.:ct10:cvr:
dmi.product.name: Precision 5520
dmi.sys.vendor: Dell Inc.

** Affects: systemd (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug zesty

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1687212

Title:
  ~16 GB written to disk from power on till lightdb login screen?

Status in systemd package in Ubuntu:
  New

Bug description:
  After each system boot, iostat -m shows that the kernel has written
  around 16 GB to SSD disk:

  avg-cpu:  %user   %nice %system %iowait  %steal   %idle
             9.10    0.00   10.06    2.38    0.00   78.47

  Device:            tps    MB_read/s    MB_wrtn/s    MB_read    MB_wrtn
  sda             702.32        16.91      1495.65        182      16108
  dm-0            808.36        15.64      1495.65        168      16108
  dm-1            786.82        15.39         0.01        165          0
  dm-2             10.21         0.21      1495.64          2      16107

  It's a fresh Ubuntu 17.04 installation with rootfs installed on LUKS.

  /proc/diskstats (https://www.kernel.org/doc/Documentation/ABI/testing
  /procfs-diskstats) seem to be matching the output of "iostat -m".


  Please note that dm-2 is 16 GB swap (the system has 16 GB RAM):

  $ ls /dev/mapper/ -l
  total 0
  crw------- 1 root root 10, 236 Apr 30 01:53 control
  lrwxrwxrwx 1 root root       7 Apr 30 01:53 sda3_crypt -> ../dm-0
  lrwxrwxrwx 1 root root       7 Apr 30 01:53 ubuntu--vg-root -> ../dm-1
  lrwxrwxrwx 1 root root       7 Apr 30 01:53 ubuntu--vg-swap_1 -> ../dm-2

  
  $ cat /proc/swaps 
  Filename                                Type            Size    Used    Priority
  /dev/dm-2                               partition       16494588        0       -1

  
  So what seems to happen, is that the OS overwrites the whole encrypted swap partition during bootup.

  This is very worrying, given that it's SSD disk!

  ProblemType: Bug
  DistroRelease: Ubuntu 17.04
  Package: systemd 232-21ubuntu3
  Uname: Linux 4.11.0-041100rc7-generic x86_64
  ApportVersion: 2.20.4-0ubuntu4
  Architecture: amd64
  Date: Sun Apr 30 01:57:04 2017
  ExecutablePath: /lib/systemd/systemd
  InstallationDate: Installed on 2017-04-14 (15 days ago)
  InstallationMedia: Ubuntu 17.04 "Zesty Zapus" - Release amd64 (20170412)
  Lsusb:
   Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
   Bus 001 Device 002: ID 093a:2510 Pixart Imaging, Inc. Optical Mouse
   Bus 001 Device 003: ID 1bcf:2b95 Sunplus Innovation Technology Inc. 
   Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
  MachineType: Dell Inc. Precision 5520
  ProcEnviron:
   TERM=linux
   PATH=(custom, no user)
  ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-4.11.0-041100rc7-generic root=/dev/mapper/ubuntu--vg-root ro quiet splash vt.handoff=7
  SourcePackage: systemd
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 03/29/2017
  dmi.bios.vendor: Dell Inc.
  dmi.bios.version: 1.2.4
  dmi.board.name: 0GPNW9
  dmi.board.vendor: Dell Inc.
  dmi.board.version: A00
  dmi.chassis.type: 10
  dmi.chassis.vendor: Dell Inc.
  dmi.modalias: dmi:bvnDellInc.:bvr1.2.4:bd03/29/2017:svnDellInc.:pnPrecision5520:pvr:rvnDellInc.:rn0GPNW9:rvrA00:cvnDellInc.:ct10:cvr:
  dmi.product.name: Precision 5520
  dmi.sys.vendor: Dell Inc.

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



More information about the foundations-bugs mailing list