[Bug 1698118] Re: Slow disk writes after some uptime, only on 32bit/16+RAM/4+ kernels

2017-09-17 Thread Vagrant Cascadian
*** This bug is a duplicate of bug 1333294 ***
https://bugs.launchpad.net/bugs/1333294

** Bug watch added: Debian Bug tracker #876035
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=876035

** Also affects: linux (Debian) via
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=876035
   Importance: Unknown
   Status: Unknown

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

Title:
  Slow disk writes after some uptime, only on 32bit/16+RAM/4+ kernels

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

[Bug 1698118] Re: Slow disk writes after some uptime, only on 32bit/16+RAM/4+ kernels

2017-07-21 Thread Alkis Georgopoulos
*** This bug is a duplicate of bug 1333294 ***
https://bugs.launchpad.net/bugs/1333294

I marked this as a duplicate of bug #1333294.
Especially the link mentioned there, http://flaterco.com/kb/PAE_slowdown.html, 
has a very nice overview of the problem AND of the possible workarounds.

I wonder if it would be possible to enable the VMSPLIT_2G setting on
Ubuntu...

** This bug has been marked a duplicate of bug 1333294
   32-bit kernel HDD slow write speed

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

Title:
  Slow disk writes after some uptime, only on 32bit/16+RAM/4+ kernels

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1698118] Re: Slow disk writes after some uptime, only on 32bit/16+RAM/4+ kernels

2017-06-27 Thread Alkis Georgopoulos
Hi Andrew, noone is watching this bug report, please comment in the
upstream bug if you want the kernel developers to listen to your
feedback.

https://bugzilla.kernel.org/show_bug.cgi?id=196157

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

Title:
  Slow disk writes after some uptime, only on 32bit/16+RAM/4+ kernels

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1698118] Re: Slow disk writes after some uptime, only on 32bit/16+RAM/4+ kernels

2017-06-27 Thread v4169sgr
Thanks. Running

sync && echo "1" | sudo tee /proc/sys/vm/highmem_is_dirtyable

on my system improves the situation for intensive read / write, but does
not solve the problem. Here are my test results after running the above
commands.

I should be seeing 4s and 5s all the way down, but instead I see
inconsistent behaviour and lagginess in apps while running the test.

Solution does seem to be to run a 64 bit kernel.

Copying /lib to 1: 14.47
Copying 1 to 2: 4.17
Copying 2 to 3: 4.15
Copying 3 to 4: 4.15
Copying 4 to 5: 4.40
Copying 5 to 6: 6.28
Copying 6 to 7: 13.83
Copying 7 to 8: 12.96
Copying 8 to 9: 12.81
Copying 9 to 10: 10.34
Copying 10 to 11: 10.22
Copying 11 to 12: 5.42
Copying 12 to 13: 4.76
Copying 13 to 14: 4.51
Copying 14 to 15: 8.95
Copying 15 to 16: 9.11
Copying 16 to 17: 8.03

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

Title:
  Slow disk writes after some uptime, only on 32bit/16+RAM/4+ kernels

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1698118] Re: Slow disk writes after some uptime, only on 32bit/16+RAM/4+ kernels

2017-06-27 Thread Alkis Georgopoulos
I reported the bug upstream in the Linux kernel:
https://bugzilla.kernel.org/show_bug.cgi?id=196157

The suggested a workaround of "echo 1 >
/proc/sys/vm/highmem_is_dirtyable", which eliminates the issue, although
"it can lead to a premature OOM killer invocations".

** Bug watch added: Linux Kernel Bug Tracker #196157
   https://bugzilla.kernel.org/show_bug.cgi?id=196157

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

Title:
  Slow disk writes after some uptime, only on 32bit/16+RAM/4+ kernels

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1698118] Re: Slow disk writes after some uptime, only on 32bit/16+RAM/4+ kernels

2017-06-20 Thread v4169sgr
As promised here are the results from the amd64 live DVD (the
architecture identifies as 'i386' but this is the default desktop
install media identifying as 'amd64')

16.04.2 LTS (Xenial Xerus), 4.8.0-36-generic, i386, RAM=16387048

Copying /lib to 1: 14.20
Copying 1 to 2: 4.24
Copying 2 to 3: 4.28
Copying 3 to 4: 4.15
Copying 4 to 5: 4.35
Copying 5 to 6: 4.24
Copying 6 to 7: 4.31
Copying 7 to 8: 4.25
Copying 8 to 9: 4.12
Copying 9 to 10: 4.16
Copying 10 to 11: 3.92
Copying 11 to 12: 4.38
Copying 12 to 13: 4.17
Copying 13 to 14: 4.35
Copying 14 to 15: 4.26
Copying 15 to 16: 4.57
Copying 16 to 17: 5.64
Copying 17 to 18: 5.78
Copying 18 to 19: 5.87
Copying 19 to 20: 5.02
Copying 20 to 21: 4.30
Copying 21 to 22: 4.11

Again showing no sign of the issue, and even without the issue up to
twice as fast in 64 bit compared to 32 bit.

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

Title:
  Slow disk writes after some uptime, only on 32bit/16+RAM/4+ kernels

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1698118] Re: Slow disk writes after some uptime, only on 32bit/16+RAM/4+ kernels

2017-06-20 Thread Dimitris
Yes it does affect me to

When we are trying to run ltsp-update-image, it needs almost 40 minutes
running with 16 GB RAM, and with 8 GB it needs only 3 minutes.

results with 16GB RAM:
real38m32.201s
user14m16.988s
sys0m24.548s

results with 8GB RAM:
real3m11.648s
user11m5.340s
sys0m10.580s

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

Title:
  Slow disk writes after some uptime, only on 32bit/16+RAM/4+ kernels

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1698118] Re: Slow disk writes after some uptime, only on 32bit/16+RAM/4+ kernels

2017-06-19 Thread v4169sgr
Results with modified method including sync on 32bit. Will repeat with
64bit live CD tomorrow evening.

16.04.2 LTS (Xenial Xerus), 4.8.0-54-generic, i386, RAM=16552604

Copying 1 to 2: 8.97
Copying 2 to 3: 7.36
Copying 3 to 4: 7.08
Copying 4 to 5: 6.51
Copying 5 to 6: 6.92
Copying 6 to 7: 7.33
Copying 7 to 8: 7.86
Copying 8 to 9: 8.00
Copying 9 to 10: 11.07
Copying 10 to 11: 10.39
Copying 11 to 12: 16.46
Copying 12 to 13: 56.50
Copying 13 to 14: 233.98

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

Title:
  Slow disk writes after some uptime, only on 32bit/16+RAM/4+ kernels

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1698118] Re: Slow disk writes after some uptime, only on 32bit/16+RAM/4+ kernels

2017-06-19 Thread Alkis Georgopoulos
And these are the results of the latest 4.12 mainline kernel. It keeps
getting worse, `cp -a /lib /elsewhere` should need 5 seconds and it
takes 800+.

16.04.2 LTS (Xenial Xerus), 4.12.0-041200rc5-generic, i386, RAM=16292588 [HD 
install]
Copying /lib to 1: 65.18
Copying 1 to 2: 46.17
Copying 2 to 3: 96.98
Copying 3 to 4: 842.58
Copying 4 to 5: 718.65
Copying 5 to 6: 807.03
Copying 6 to 7: ...

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

Title:
  Slow disk writes after some uptime, only on 32bit/16+RAM/4+ kernels

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1698118] Re: Slow disk writes after some uptime, only on 32bit/16+RAM/4+ kernels

2017-06-19 Thread Alkis Georgopoulos
I updated my test case to include the "sync" call inside the "time", because 
otherwise recent 64bit installations report wrong results. @v4169sgr, you might 
want to test again with 64bit using the updated commands:
1) . /etc/os-release; echo -n "$VERSION, $(uname -r), $(dpkg 
--print-architecture), RAM="; awk '/MemTotal:/ { print $2 }' /proc/meminfo 
2) mount /dev/sdb2 /mnt && rm -rf /mnt/tmp/lib && mkdir -p /mnt/tmp/lib && sync 
&& echo 3 > /proc/sys/vm/drop_caches && chroot /mnt
3) mkdir -p /tmp/lib; cd /tmp/lib; s=/lib; d=1; echo -n "Copying $s to $d: "; 
while /usr/bin/time -f %e sh -c "cp -a '$s' '$d'; sync"; do s=$d; 
d=$((($d+1)%100)); echo -n "Copying $s to $d: "; done


I managed to find 16 GB RAM and test locally. All 3.x kernels are unaffected, 
and all 32 bit 4.x kernels have issues.

14.04, Trusty Tahr, 3.13.0-24-generic, i386, RAM=16076400 [Live CD]
8-13 secs

15.04 (Vivid Vervet), 3.19.0-15-generic, i386, RAM=16083080 [Live CD]
5-7 secs

15.10 (Wily Werewolf), 4.2.0-16-generic, i386, RAM=16082536 [Live CD]
4-350 secs

16.04.2 LTS (Xenial Xerus), 3.19.0-80-generic, i386, RAM=16294832 [HD install]
10-25 secs

16.04.2 LTS (Xenial Xerus), 4.2.0-42-generic, i386, RAM=16294392 [HD install]
14-89 secs

16.04.2 LTS (Xenial Xerus), 4.4.0-79-generic, i386, RAM=16293556 [HD install]
15-605 secs

16.04.2 LTS (Xenial Xerus), 4.8.0-54-generic, i386, RAM=16292708 [HD install]
6-160 secs

16.04.2 LTS (Xenial Xerus), 4.8.0-36-generic, amd64, RAM=16131028 [Live CD]
4-11 secs

** Attachment added: "cp-benchmark"
   
https://bugs.launchpad.net/ubuntu/+source/linux-hwe/+bug/1698118/+attachment/4898505/+files/cp-benchmark

** Description changed:

  This happens on xenial with 4.4 and 4.8 kernels.
- It does not happen on precise with 3.2, nor on trusty with 4.2.
+ It does not happen on precise with 3.2, nor on trusty with 3.19.
  
  The problem is that disk writes start with 200 MB/sec, but after some disk 
usage, e.g. after 20-50 GB of writes, they become extremely slow, like 2 
MB/sec, and never get fast again.
  The difference is really 100 times slower, it's not related to RAM caching, 
it makes the system unusable permanately after it appears.
  
- 
- Test case:
+ Test case [edit: see comment #7 below for my updated test case]:
  # This copies with 200 MB/sec:
  dd if=/dev/zero of=/mnt/test bs=1M count=1000 conv=fdatasync
  # This just does some disk writes, because the problem happens gradually
  cp -a /mnt/a-20gb-folder /mnt/dest
  # Now testing again, it writes with 2 MB/sec:
  dd if=/dev/zero of=/mnt/test bs=1M count=1000 conv=fdatasync
  
  After those 3 commands, the system is unusable even if left for hours.
  I've only seen it in 2 out of 100 installations so far, so it appears to be 
rare...
  
  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: linux-image-4.8.0-54-generic 4.8.0-54.57~16.04.1
  ProcVersionSignature: Ubuntu 4.8.0-54.57~16.04.1-generic 4.8.17
  Uname: Linux 4.8.0-54-generic i686
  ApportVersion: 2.20.1-0ubuntu2.6
  Architecture: i386
  CurrentDesktop: MATE
  Date: Thu Jun 15 13:28:43 2017
  InstallationDate: Installed on 2017-06-07 (7 days ago)
  InstallationMedia: Ubuntu-MATE 16.04.2 LTS "Xenial Xerus" - Release i386 
(20170215)
  SourcePackage: linux-hwe
  UpgradeStatus: No upgrade log present (probably fresh install)

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

Title:
  Slow disk writes after some uptime, only on 32bit/16+RAM/4+ kernels

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1698118] Re: Slow disk writes after some uptime, only on 32bit/16+RAM/4+ kernels

2017-06-19 Thread Alkis Georgopoulos
** Summary changed:

- Slow disk writes after some uptime, only on certain hw and 4.4+ kernels
+ Slow disk writes after some uptime, only on 32bit/16+RAM/4+ kernels

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

Title:
  Slow disk writes after some uptime, only on 32bit/16+RAM/4+ kernels

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs