[Bug 1626564] Re: 4.8 regression: SLAB is being used instead of SLUB

2016-12-14 Thread Colin Ian King
Hi Doug, I believe I've now addressed this bug, see: bug 1649905

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

Title:
  4.8 regression: SLAB is being used instead of SLUB

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

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


[Bug 1626564] Re: 4.8 regression: SLAB is being used instead of SLUB

2016-12-14 Thread Doug Smythies
One of the 3 patches was included in the mainline kernel sometime ago.
It fixed SLAB, but not SLUB. The other two patches are now in the
mainline kernel and will appear in kernel 4.10-RC1. I'll re-test then.

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

Title:
  4.8 regression: SLAB is being used instead of SLUB

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

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


[Bug 1626564] Re: 4.8 regression: SLAB is being used instead of SLUB

2016-10-27 Thread Doug Smythies
> Are you sure SLAB vs. SLUB fixed this?

No, it does not fix the issue. However, the issue is more difficult to
re-produce. It seems easy enough to reproduce on my test server, but
seems to not happen on my test LapTop.

There are 3 related upstream commits that fix the issue (at least in my
testing) for both SLAB and SLUB, and I think (but am not sure) they have
been flagged to eventually be backported to stable. I do not think any
of the patches have made it into the current release candidate kernel
(currently 4.9-rc2) yet.

References:
https://patchwork.kernel.org/patch/9359269/
https://patchwork.kernel.org/patch/9359271/
https://patchwork.kernel.org/patch/9363679/

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

Title:
  4.8 regression: SLAB is being used instead of SLUB

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

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


[Bug 1626564] Re: 4.8 regression: SLAB is being used instead of SLUB

2016-10-27 Thread Sarah Newman
Also: the 524 threads was with Xen PVM and two VCPUS. With one VCPU the
problem goes away. The run on 4.8.0-22-generic also had two VCPUs.

There is no problem with Xen HVM and 4.8.0-26-generic with either one or
two VCPUS.

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

Title:
  4.8 regression: SLAB is being used instead of SLUB

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

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


[Bug 1626564] Re: 4.8 regression: SLAB is being used instead of SLUB

2016-10-27 Thread Sarah Newman
Are you sure SLAB vs. SLUB fixed this?

I have images built from October 13 and today (October 22) with
4.8.0-22-generic and 4.8.0-26-generic respectively. On a
4.8.0-22-generic boot there are 37 kworker threads, on 4.8.0-26-generic
there are 524 kworker threads. It could be that with enough reboots the
older version would spawn as many threads, I'm not sure.

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

Title:
  4.8 regression: SLAB is being used instead of SLUB

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

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


[Bug 1626564] Re: 4.8 regression: SLAB is being used instead of SLUB

2016-09-28 Thread Tim Gardner
OK, your point is valid. I was just looking at the bug title. As for why
SLAB v.s. SLUB happened, it was a regression introduced when I adopted
more modular config settings from Debian.

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

Title:
  4.8 regression: SLAB is being used instead of SLUB

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

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


[Bug 1626564] Re: 4.8 regression: SLAB is being used instead of SLUB

2016-09-28 Thread Doug Smythies
> Doug - you should start a new bug to address your issue as this
> one will auto-close as soon as the next kernel is uploaded.

I do not understand. This one is not solved, as there two levels of
contributing factors. This one should be set back to a status of "In
Progress". Once both SLAB and SLUB are fixed, then the decision to use
SLAB or SLUB should be re-evaluated.

One of Colin's original questions: "why was it [CONFIG_SLAB] changed for
Yakkety?" also still needs an answer.

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

Title:
  4.8 regression: SLAB is being used instead of SLUB

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

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


[Bug 1626564] Re: 4.8 regression: SLAB is being used instead of SLUB

2016-09-28 Thread Tim Gardner
Doug - you should start a new bug to address your issue as this one will
auto-close as soon as the next kernel is uploaded.

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

Title:
  4.8 regression: SLAB is being used instead of SLUB

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

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


[Bug 1626564] Re: 4.8 regression: SLAB is being used instead of SLUB

2016-09-27 Thread Doug Smythies
I filed two bug reports upstream:

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

I also made a kernel 4.8-rc8 with 81ae6d03 reverted (because it is so trivial 
to revert) and no matter how hard I beat on it I can not get it to mess up.
 

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

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

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

Title:
  4.8 regression: SLAB is being used instead of SLUB

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

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


[Bug 1626564] Re: 4.8 regression: SLAB is being used instead of SLUB

2016-09-26 Thread Doug Smythies
I was working on the assumption that the same commit was causing both
the SLAB and the remaining SLUB issues, however it turns out that
assumption was incorrect.

The commit that causes the SLAB issue is:
801faf0db8947e01877920e848a4d338dd7a99e7
"mm/slab: lockless decision to grow cache"

The commit that causes the remaining SLUB issue is:
81ae6d03952c1bfb96e1a716809bd65e7cd14360
"mm/slub.c: replace kick_all_cpus_sync() with synchronize_sched() in 
kmem_cache_shrink()"

It turns out that they just so happen to be adjacent commits in the tree.
I will attempt to make e-mails for upstream, but it'll take me awhile. (Anyone 
willing to review before I send them?)

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

Title:
  4.8 regression: SLAB is being used instead of SLUB

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

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


[Bug 1626564] Re: 4.8 regression: SLAB is being used instead of SLUB

2016-09-26 Thread Martin Pitt
> it seems the issue is not 100% solved, but is much much much less
probable.

I confirm this in bug 1626436 -- boot time is a bit faster and load now
"only" ~ 35 instead of ~ 250, but it's still a huge regression compared
to 4.4.

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

Title:
  4.8 regression: SLAB is being used instead of SLUB

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

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


[Bug 1626564] Re: 4.8 regression: SLAB is being used instead of SLUB

2016-09-24 Thread Doug Smythies
In case anyone is interested:
I got this far with the kernel bisection, but can only continue on Tuesday, 
maybe Monday night.


** Attachment added: "bisection - thus far"
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1626564/+attachment/4748136/+files/bla1.txt

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

Title:
  4.8 regression: SLAB is being used instead of SLUB

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

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


[Bug 1626564] Re: 4.8 regression: SLAB is being used instead of SLUB

2016-09-24 Thread Doug Smythies
Note: For kernel work, I only use and compile kernels from the main
kernel.org git branch. I steal the Ubuntu kernel configuration.

The issue of a high number of kworker threads does not exist in kernel 4.6, but 
does in 4.7-rc1.
When using "SLUB" it is a little difficult to detect on my Yakkety test Laptop, 
however it is fairly easy to detect on my 16.04 server. When using "SLAB" it is 
trivial to detect on either computer.

A bisection is going to take:

"Bisecting: 5788 revisions left to test after this (roughly 13 steps)"

Which I can only get to on about Tuesday or Wednesday.

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

Title:
  4.8 regression: SLAB is being used instead of SLUB

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

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


[Bug 1626564] Re: 4.8 regression: SLAB is being used instead of SLUB

2016-09-24 Thread Doug Smythies
>From my experiments, it seems the issue is not 100% solved, but is much much 
>much less probable.
On my Yakkety test Laptop, if I go back to kernel 4.4.0-9136-generic I can not 
create the high number of kworker threads. If I boot with kernel 
4.8.0-16-generic, I can create the high number of kworker threads, however it 
is rather difficult.

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

Title:
  4.8 regression: SLAB is being used instead of SLUB

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

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


[Bug 1626564] Re: 4.8 regression: SLAB is being used instead of SLUB

2016-09-23 Thread Launchpad Bug Tracker
This bug was fixed in the package linux - 4.8.0-16.17

---
linux (4.8.0-16.17) yakkety; urgency=low

  [ Tim Gardner ]

  * Release Tracking Bug
- LP: #1626768

  * Support ARM GIC ITS in ACPI mode (LP: #1626631)
- [Config] CONFIG_ACPI_IORT=y
- SAUCE: ACPI: I/O Remapping Table (IORT) initial support
- SAUCE: ACPI: Add new IORT functions to support MSI domain handling
- SAUCE: irqchip/gicv3-its: Cleanup for ITS domain initialization
- SAUCE: irqchip/gicv3-its: Refactor ITS DT init code to prepare for ACPI
- SAUCE: irqchip/gicv3-its: Probe ITS in the ACPI way
- SAUCE: irqchip/gicv3-its: Factor out PCI-MSI part that might be reused 
for ACPI
- SAUCE: irqchip/gicv3-its: Use MADT ITS subtable to do PCI/MSI domain 
initialization
- SAUCE: PCI/MSI: Setup MSI domain on a per-device basis using IORT ACPI 
table

  * 4.8 dropped CONFIG_ATA=y (breaks systemd's TEST-08-ISSUE-2730 upstream test)
(LP: #1626394)
- [Config] CONFIG_ATA=y

  * Yakkety: Enable drivers with respect to Xenial (LP: #1626543)
- [Config] CONFIG_VMD=m
- [Config] CONFIG_MAC80211_RC_MINSTREL_VHT=y for all arches
- [Config] CONFIG_OF=y for all arches
- [Config] CONFIG_BLK_DEV_NVME_SCSI=y
- [Config] Xenial device settings sync with amd64
- [Config] Xenial device settings sync with i386
- [Config] CONFIG_MTD_UBI_GLUEBI=m
- [Config] Xenial device settings sync with armhf
- [Config] Xenial device settings sync with arm64

  * yakkety 4.8, missing config CONFIG_USERFAULTFD=y (LP: #1626149)
- [Config] CONFIG_USERFAULTFD=y

  * 4.8 regression: SLAB is being used instead of SLUB (LP: #1626564)
- [Config] CONFIG_SLUB=y

  * image won't boot after upgrading to yakkety's 4.8 kernel because efi
(LP: #1626158)
- add nls_cp437 to the generic.inclusion-list

 -- Tim Gardner   Thu, 22 Sep 2016 06:51:45
-0600

** Changed in: linux (Ubuntu Yakkety)
   Status: Fix Committed => Fix Released

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

Title:
  4.8 regression: SLAB is being used instead of SLUB

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

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


[Bug 1626564] Re: 4.8 regression: SLAB is being used instead of SLUB

2016-09-22 Thread Colin Ian King
..plus SLUB improves boot speed - I'm seeing ~1 second shaved off an 8.5
second boot.

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

Title:
  4.8 regression: SLAB is being used instead of SLUB

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

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


[Bug 1626564] Re: 4.8 regression: SLAB is being used instead of SLUB

2016-09-22 Thread Doug Smythies
I confirm that reverting the SLAB / SLUB changes in the ubuntu kernel
configuration file for mainline kernel 4.8-rc7 to the state they were in
for mainline kernel 4.7-rc4 fixes the issue (note, I disable debug,
because otherwise it takes over twice as long to compile the kernel, and
it is enormous):

$ scripts/diffconfig .config .config-4.8.0-040800rc7-generic
-HAVE_ALIGNED_STRUCT_PAGE y
-SLUB_CPU_PARTIAL y
-SLUB_DEBUG y
-SLUB_DEBUG_ON n
-SLUB_STATS n
 DEBUG_INFO n -> y
 SLAB n -> y
 SLAB_FREELIST_RANDOM n -> y
 SLUB y -> n
+DEBUG_INFO_DWARF4 n
+DEBUG_INFO_REDUCED n
+DEBUG_INFO_SPLIT n
+DEBUG_SLAB n
+GDB_SCRIPTS n

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

Title:
  4.8 regression: SLAB is being used instead of SLUB

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

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


[Bug 1626564] Re: 4.8 regression: SLAB is being used instead of SLUB

2016-09-22 Thread Doug Smythies
This issue was introduced with the massive kernel configurations changes
between mainline kernels 4.7-rc4 and 4.7-rc5. While I have been working
on it for a couple of weeks, I was never able to isolate the exact
kernel configuration change cause. I am compiling a kernel now (4.8-rc7)
reverting this change to test. This attachment has some tools I made to
very very simply show the issue.

If I look at linux/Documentation/workqueue.txt and do:

echo workqueue:workqueue_queue_work >
/sys/kernel/debug/tracing/set_event

and:

cat /sys/kernel/debug/tracing/trace_pipe > out.txt

with the issue, I get somwhere between 10,000 and 20,000 occurances of
memcg_kmem_cache_create_func in the file (using my simple test method).
Without the issue, I get 21, and an overall file size about 50 times
smaller, for otherwise similar conditions. i.e. with the issue this
stuff seems to go nuts.


** Attachment added: "Some tools to simply show the issue"
   
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1626564/+attachment/4746294/+files/bla.txt

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

Title:
  4.8 regression: SLAB is being used instead of SLUB

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

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


[Bug 1626564] Re: 4.8 regression: SLAB is being used instead of SLUB

2016-09-22 Thread Tim Gardner
** Changed in: linux (Ubuntu Yakkety)
   Status: In Progress => Fix Committed

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

Title:
  4.8 regression: SLAB is being used instead of SLUB

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

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


[Bug 1626564] Re: 4.8 regression: SLAB is being used instead of SLUB

2016-09-22 Thread Tim Gardner
** Also affects: linux (Ubuntu Yakkety)
   Importance: High
   Status: New

** Changed in: linux (Ubuntu Yakkety)
   Status: New => In Progress

** Changed in: linux (Ubuntu Yakkety)
 Assignee: (unassigned) => Tim Gardner (timg-tpi)

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

Title:
  4.8 regression: SLAB is being used instead of SLUB

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

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


[Bug 1626564] Re: 4.8 regression: SLAB is being used instead of SLUB

2016-09-22 Thread Colin Ian King
Oh, and for the interested, the many worker thread bug in SLAB occurred
between 4.6 and 4.7. I'm not bisecting that one for now as I don't want
to use SLAB :-)

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

Title:
  4.8 regression: SLAB is being used instead of SLUB

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

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