← Back to team overview

desktop-packages team mailing list archive

[Bug 913856] Re: NetworkManager periodically writes to the disk causing wakeups

 

strace shows:

open("/var/lib/NetworkManager/timestamps", O_RDONLY) = 20
fstat(20, {st_mode=S_IFREG|0644, st_size=1646, ...}) = 0
read(20, "\n[timestamps]\n3c32aa58-a2ed-44e7"..., 4096) = 1646
read(20, "", 4096)                      = 0
close(20)                               = 0
open("/var/lib/NetworkManager/timestamps.EB5H7V", O_RDWR|O_CREAT|O_EXCL, 0666) = 20
fcntl(20, F_GETFL)                      = 0x8002 (flags O_RDWR|O_LARGEFILE)
fstat(20, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f04b964c000
lseek(20, 0, SEEK_CUR)                  = 0
write(20, "\n[timestamps]\n3c32aa58-a2ed-44e7"..., 1646) = 1646
fstatfs(20, {f_type="EXT2_SUPER_MAGIC", f_bsize=4096, f_blocks=7874279, f_bfree=5238919, f_bavail=4838919, f_files=2003120, f_ffree=1658729, f_fsid={-1107732364, 115902444}, f_namelen=255, f_frsize=4096}) = 0
lstat("/var/lib/NetworkManager/timestamps", {st_mode=S_IFREG|0644, st_size=1646, ...}) = 0
fsync(20)                               = 0
close(20)                               = 0

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/913856

Title:
  NetworkManager periodically writes to the disk causing wakeups

Status in “network-manager” package in Ubuntu:
  New

Bug description:
  Network Manager is periocially creating dirty pages that are being
  written back to disk and causing uncessary drive wakeups.

  Using SystemTap I was able to observe the following dirty pages being
  created on the following files

         0      795        1 NetworkManager      sda1 D Mon Dec 19 13:54:50 2011 timestamps
         0      795        1 NetworkManager      sda1 D Mon Dec 19 13:54:50 2011 timestamps.096F6V
         0      795        1 NetworkManager      sda1 D Mon Dec 19 13:54:50 2011
         0      795        1 NetworkManager      sda1 D Mon Dec 19 13:54:50 2011 timestamps.5RWD6V

  ..and this occurs regulary every 5 minutes.

  Can we either reduce the frequency of these writes or better still
  only write the updates when really necessary (e.g. when we close
  NetworkManager or the user interacts with NetworkManager which
  requires us to really write data back to disk).

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/913856/+subscriptions


References