[Kernel-packages] [Bug 1623143] Re: Linux container does not take same cpu configuration as kernet's hosts

2016-11-01 Thread Stéphane Graber
** Package changed: linux (Ubuntu) => lxc (Ubuntu)

** Changed in: lxc (Ubuntu)
   Status: Confirmed => Triaged

** Changed in: lxc (Ubuntu)
 Assignee: (unassigned) => Christian Brauner (cbrauner)

-- 
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/1623143

Title:
  Linux container does not take same cpu configuration as kernet's hosts

Status in lxc package in Ubuntu:
  Triaged

Bug description:
  When I configured cpu affinity on a ubuntu 16.04 with kernel version 
"4.4.0-36-generic" on a host containing 3 cpus:
  on /etc/default/grub:
  GRUB_CMDLINE_LINUX_DEFAULT="isolcpus=0"

  update-grub

  reboot

  The output of "cat /proc/self/status" :
  ubuntu@ubuntu:~$ cat /proc/self/status
   .
   .
   .
  Cpus_allowed: 6
  Cpus_allowed_list:1-2
  Mems_allowed: ,0001
  Mems_allowed_list:0
  voluntary_ctxt_switches:  0
  nonvoluntary_ctxt_switches:   1

  When I create an lxd container in this host using these commands:

    lxc launch ubuntu:14.04 my-ubuntu

  And access to this container using:

    lxc exec my-ubuntu -- /bin/bash

  The output of "cat /proc/self/status" :
    .
    .
    .
  Cpus_allowed: 7
  Cpus_allowed_list:0-2
  Mems_allowed: ,0001
  Mems_allowed_list:0
  voluntary_ctxt_switches:  0
  nonvoluntary_ctxt_switches:   4

  Result: Container's process doesn't take same configuration as host's process.
  Host process use  2 cpus:  Cpus_allowed_list: 1-2
  Container process use 3 cpus: Cpus_allowed_list:  0-2

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: linux-image-4.4.0-36-generic 4.4.0-36.55
  ProcVersionSignature: Ubuntu 4.4.0-36.55-generic 4.4.16
  Uname: Linux 4.4.0-36-generic x86_64
  AlsaVersion: Advanced Linux Sound Architecture Driver Version 
k4.4.0-36-generic.
  AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
  ApportVersion: 2.20.1-0ubuntu2
  Architecture: amd64
  ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
  AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/by-path', 
'/dev/snd/hwC0D0', '/dev/snd/pcmC0D0c', '/dev/snd/pcmC0D0p', 
'/dev/snd/controlC0', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
  Card0.Amixer.info: Error: [Errno 2] No such file or directory: 'amixer'
  Card0.Amixer.values: Error: [Errno 2] No such file or directory: 'amixer'
  Date: Tue Sep 13 18:36:29 2016
  HibernationDevice: RESUME=/dev/mapper/ubuntu--vg-swap_1
  InstallationDate: Installed on 2016-08-04 (40 days ago)
  InstallationMedia: Ubuntu-Server 16.04 LTS "Xenial Xerus" - Release amd64 
(20160420.3)
  IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
  Lsusb:
   Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
   Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
   Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
   Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
  MachineType: QEMU Standard PC (i440FX + PIIX, 1996)
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcFB: 0 qxldrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-4.4.0-36-generic 
root=/dev/mapper/username--vg-root ro isolcpus=0
  RelatedPackageVersions:
   linux-restricted-modules-4.4.0-36-generic N/A
   linux-backports-modules-4.4.0-36-generic  N/A
   linux-firmware1.157
  RfKill: Error: [Errno 2] No such file or directory: 'rfkill'
  SourcePackage: linux
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 04/01/2014
  dmi.bios.vendor: SeaBIOS
  dmi.bios.version: Ubuntu-1.8.2-1ubuntu1
  dmi.chassis.type: 1
  dmi.chassis.vendor: QEMU
  dmi.chassis.version: pc-i440fx-wily
  dmi.modalias: 
dmi:bvnSeaBIOS:bvrUbuntu-1.8.2-1ubuntu1:bd04/01/2014:svnQEMU:pnStandardPC(i440FX+PIIX,1996):pvrpc-i440fx-wily:cvnQEMU:ct1:cvrpc-i440fx-wily:
  dmi.product.name: Standard PC (i440FX + PIIX, 1996)
  dmi.product.version: pc-i440fx-wily
  dmi.sys.vendor: QEMU

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1623143/+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


Re: [Kernel-packages] [Bug 1623143] Re: Linux container does not take same cpu configuration as kernet's hosts

2016-09-15 Thread Seth Forshee
On Thu, Sep 15, 2016 at 06:21:33PM -, Stéphane Graber wrote:
> I'm assuming you have a system that's booted with the right kernel
> option.
> 
> Can you check if /sys/devices/system/cpu/possible includes the isolated
> CPU?
> 
> If not, then we could copy that value instead of having to parse the CPU
> ranges from /sys/devices/system/cpu/isolated and substract that from the
> range in the root cgroup which would be rather painful.

Unfortunately it does include the isolated CPU. I'm not seeing anything
that looks like it would give you the list of non-isolated cpus.

-- 
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/1623143

Title:
  Linux container does not take same cpu configuration as kernet's hosts

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  When I configured cpu affinity on a ubuntu 16.04 with kernel version 
"4.4.0-36-generic" on a host containing 3 cpus:
  on /etc/default/grub:
  GRUB_CMDLINE_LINUX_DEFAULT="isolcpus=0"

  update-grub

  reboot

  The output of "cat /proc/self/status" :
  ubuntu@ubuntu:~$ cat /proc/self/status
   .
   .
   .
  Cpus_allowed: 6
  Cpus_allowed_list:1-2
  Mems_allowed: ,0001
  Mems_allowed_list:0
  voluntary_ctxt_switches:  0
  nonvoluntary_ctxt_switches:   1

  When I create an lxd container in this host using these commands:

    lxc launch ubuntu:14.04 my-ubuntu

  And access to this container using:

    lxc exec my-ubuntu -- /bin/bash

  The output of "cat /proc/self/status" :
    .
    .
    .
  Cpus_allowed: 7
  Cpus_allowed_list:0-2
  Mems_allowed: ,0001
  Mems_allowed_list:0
  voluntary_ctxt_switches:  0
  nonvoluntary_ctxt_switches:   4

  Result: Container's process doesn't take same configuration as host's process.
  Host process use  2 cpus:  Cpus_allowed_list: 1-2
  Container process use 3 cpus: Cpus_allowed_list:  0-2

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: linux-image-4.4.0-36-generic 4.4.0-36.55
  ProcVersionSignature: Ubuntu 4.4.0-36.55-generic 4.4.16
  Uname: Linux 4.4.0-36-generic x86_64
  AlsaVersion: Advanced Linux Sound Architecture Driver Version 
k4.4.0-36-generic.
  AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
  ApportVersion: 2.20.1-0ubuntu2
  Architecture: amd64
  ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
  AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/by-path', 
'/dev/snd/hwC0D0', '/dev/snd/pcmC0D0c', '/dev/snd/pcmC0D0p', 
'/dev/snd/controlC0', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
  Card0.Amixer.info: Error: [Errno 2] No such file or directory: 'amixer'
  Card0.Amixer.values: Error: [Errno 2] No such file or directory: 'amixer'
  Date: Tue Sep 13 18:36:29 2016
  HibernationDevice: RESUME=/dev/mapper/ubuntu--vg-swap_1
  InstallationDate: Installed on 2016-08-04 (40 days ago)
  InstallationMedia: Ubuntu-Server 16.04 LTS "Xenial Xerus" - Release amd64 
(20160420.3)
  IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
  Lsusb:
   Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
   Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
   Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
   Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
  MachineType: QEMU Standard PC (i440FX + PIIX, 1996)
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcFB: 0 qxldrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-4.4.0-36-generic 
root=/dev/mapper/username--vg-root ro isolcpus=0
  RelatedPackageVersions:
   linux-restricted-modules-4.4.0-36-generic N/A
   linux-backports-modules-4.4.0-36-generic  N/A
   linux-firmware1.157
  RfKill: Error: [Errno 2] No such file or directory: 'rfkill'
  SourcePackage: linux
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 04/01/2014
  dmi.bios.vendor: SeaBIOS
  dmi.bios.version: Ubuntu-1.8.2-1ubuntu1
  dmi.chassis.type: 1
  dmi.chassis.vendor: QEMU
  dmi.chassis.version: pc-i440fx-wily
  dmi.modalias: 
dmi:bvnSeaBIOS:bvrUbuntu-1.8.2-1ubuntu1:bd04/01/2014:svnQEMU:pnStandardPC(i440FX+PIIX,1996):pvrpc-i440fx-wily:cvnQEMU:ct1:cvrpc-i440fx-wily:
  dmi.product.name: Standard PC (i440FX + PIIX, 1996)
  dmi.product.version: pc-i440fx-wily
  dmi.sys.vendor: QEMU

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1623143/+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


[Kernel-packages] [Bug 1623143] Re: Linux container does not take same cpu configuration as kernet's hosts

2016-09-15 Thread Stéphane Graber
I'm assuming you have a system that's booted with the right kernel
option.

Can you check if /sys/devices/system/cpu/possible includes the isolated
CPU?

If not, then we could copy that value instead of having to parse the CPU
ranges from /sys/devices/system/cpu/isolated and substract that from the
range in the root cgroup which would be rather painful.

-- 
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/1623143

Title:
  Linux container does not take same cpu configuration as kernet's hosts

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  When I configured cpu affinity on a ubuntu 16.04 with kernel version 
"4.4.0-36-generic" on a host containing 3 cpus:
  on /etc/default/grub:
  GRUB_CMDLINE_LINUX_DEFAULT="isolcpus=0"

  update-grub

  reboot

  The output of "cat /proc/self/status" :
  ubuntu@ubuntu:~$ cat /proc/self/status
   .
   .
   .
  Cpus_allowed: 6
  Cpus_allowed_list:1-2
  Mems_allowed: ,0001
  Mems_allowed_list:0
  voluntary_ctxt_switches:  0
  nonvoluntary_ctxt_switches:   1

  When I create an lxd container in this host using these commands:

    lxc launch ubuntu:14.04 my-ubuntu

  And access to this container using:

    lxc exec my-ubuntu -- /bin/bash

  The output of "cat /proc/self/status" :
    .
    .
    .
  Cpus_allowed: 7
  Cpus_allowed_list:0-2
  Mems_allowed: ,0001
  Mems_allowed_list:0
  voluntary_ctxt_switches:  0
  nonvoluntary_ctxt_switches:   4

  Result: Container's process doesn't take same configuration as host's process.
  Host process use  2 cpus:  Cpus_allowed_list: 1-2
  Container process use 3 cpus: Cpus_allowed_list:  0-2

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: linux-image-4.4.0-36-generic 4.4.0-36.55
  ProcVersionSignature: Ubuntu 4.4.0-36.55-generic 4.4.16
  Uname: Linux 4.4.0-36-generic x86_64
  AlsaVersion: Advanced Linux Sound Architecture Driver Version 
k4.4.0-36-generic.
  AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
  ApportVersion: 2.20.1-0ubuntu2
  Architecture: amd64
  ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
  AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/by-path', 
'/dev/snd/hwC0D0', '/dev/snd/pcmC0D0c', '/dev/snd/pcmC0D0p', 
'/dev/snd/controlC0', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
  Card0.Amixer.info: Error: [Errno 2] No such file or directory: 'amixer'
  Card0.Amixer.values: Error: [Errno 2] No such file or directory: 'amixer'
  Date: Tue Sep 13 18:36:29 2016
  HibernationDevice: RESUME=/dev/mapper/ubuntu--vg-swap_1
  InstallationDate: Installed on 2016-08-04 (40 days ago)
  InstallationMedia: Ubuntu-Server 16.04 LTS "Xenial Xerus" - Release amd64 
(20160420.3)
  IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
  Lsusb:
   Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
   Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
   Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
   Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
  MachineType: QEMU Standard PC (i440FX + PIIX, 1996)
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcFB: 0 qxldrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-4.4.0-36-generic 
root=/dev/mapper/username--vg-root ro isolcpus=0
  RelatedPackageVersions:
   linux-restricted-modules-4.4.0-36-generic N/A
   linux-backports-modules-4.4.0-36-generic  N/A
   linux-firmware1.157
  RfKill: Error: [Errno 2] No such file or directory: 'rfkill'
  SourcePackage: linux
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 04/01/2014
  dmi.bios.vendor: SeaBIOS
  dmi.bios.version: Ubuntu-1.8.2-1ubuntu1
  dmi.chassis.type: 1
  dmi.chassis.vendor: QEMU
  dmi.chassis.version: pc-i440fx-wily
  dmi.modalias: 
dmi:bvnSeaBIOS:bvrUbuntu-1.8.2-1ubuntu1:bd04/01/2014:svnQEMU:pnStandardPC(i440FX+PIIX,1996):pvrpc-i440fx-wily:cvnQEMU:ct1:cvrpc-i440fx-wily:
  dmi.product.name: Standard PC (i440FX + PIIX, 1996)
  dmi.product.version: pc-i440fx-wily
  dmi.sys.vendor: QEMU

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1623143/+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


[Kernel-packages] [Bug 1623143] Re: Linux container does not take same cpu configuration as kernet's hosts

2016-09-15 Thread Seth Forshee
/sys/devices/system/cpu/isolated tells you which cpus are isolated.

-- 
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/1623143

Title:
  Linux container does not take same cpu configuration as kernet's hosts

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  When I configured cpu affinity on a ubuntu 16.04 with kernel version 
"4.4.0-36-generic" on a host containing 3 cpus:
  on /etc/default/grub:
  GRUB_CMDLINE_LINUX_DEFAULT="isolcpus=0"

  update-grub

  reboot

  The output of "cat /proc/self/status" :
  ubuntu@ubuntu:~$ cat /proc/self/status
   .
   .
   .
  Cpus_allowed: 6
  Cpus_allowed_list:1-2
  Mems_allowed: ,0001
  Mems_allowed_list:0
  voluntary_ctxt_switches:  0
  nonvoluntary_ctxt_switches:   1

  When I create an lxd container in this host using these commands:

    lxc launch ubuntu:14.04 my-ubuntu

  And access to this container using:

    lxc exec my-ubuntu -- /bin/bash

  The output of "cat /proc/self/status" :
    .
    .
    .
  Cpus_allowed: 7
  Cpus_allowed_list:0-2
  Mems_allowed: ,0001
  Mems_allowed_list:0
  voluntary_ctxt_switches:  0
  nonvoluntary_ctxt_switches:   4

  Result: Container's process doesn't take same configuration as host's process.
  Host process use  2 cpus:  Cpus_allowed_list: 1-2
  Container process use 3 cpus: Cpus_allowed_list:  0-2

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: linux-image-4.4.0-36-generic 4.4.0-36.55
  ProcVersionSignature: Ubuntu 4.4.0-36.55-generic 4.4.16
  Uname: Linux 4.4.0-36-generic x86_64
  AlsaVersion: Advanced Linux Sound Architecture Driver Version 
k4.4.0-36-generic.
  AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
  ApportVersion: 2.20.1-0ubuntu2
  Architecture: amd64
  ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
  AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/by-path', 
'/dev/snd/hwC0D0', '/dev/snd/pcmC0D0c', '/dev/snd/pcmC0D0p', 
'/dev/snd/controlC0', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
  Card0.Amixer.info: Error: [Errno 2] No such file or directory: 'amixer'
  Card0.Amixer.values: Error: [Errno 2] No such file or directory: 'amixer'
  Date: Tue Sep 13 18:36:29 2016
  HibernationDevice: RESUME=/dev/mapper/ubuntu--vg-swap_1
  InstallationDate: Installed on 2016-08-04 (40 days ago)
  InstallationMedia: Ubuntu-Server 16.04 LTS "Xenial Xerus" - Release amd64 
(20160420.3)
  IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
  Lsusb:
   Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
   Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
   Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
   Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
  MachineType: QEMU Standard PC (i440FX + PIIX, 1996)
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcFB: 0 qxldrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-4.4.0-36-generic 
root=/dev/mapper/username--vg-root ro isolcpus=0
  RelatedPackageVersions:
   linux-restricted-modules-4.4.0-36-generic N/A
   linux-backports-modules-4.4.0-36-generic  N/A
   linux-firmware1.157
  RfKill: Error: [Errno 2] No such file or directory: 'rfkill'
  SourcePackage: linux
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 04/01/2014
  dmi.bios.vendor: SeaBIOS
  dmi.bios.version: Ubuntu-1.8.2-1ubuntu1
  dmi.chassis.type: 1
  dmi.chassis.vendor: QEMU
  dmi.chassis.version: pc-i440fx-wily
  dmi.modalias: 
dmi:bvnSeaBIOS:bvrUbuntu-1.8.2-1ubuntu1:bd04/01/2014:svnQEMU:pnStandardPC(i440FX+PIIX,1996):pvrpc-i440fx-wily:cvnQEMU:ct1:cvrpc-i440fx-wily:
  dmi.product.name: Standard PC (i440FX + PIIX, 1996)
  dmi.product.version: pc-i440fx-wily
  dmi.sys.vendor: QEMU

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1623143/+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


[Kernel-packages] [Bug 1623143] Re: Linux container does not take same cpu configuration as kernet's hosts

2016-09-15 Thread Stéphane Graber
I thought of looking at Cpus_allowed from the status file of the current
task or of pid 1, but since both of those would be affected by the task
being in a non-root cgroup, we can't rely on that.

-- 
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/1623143

Title:
  Linux container does not take same cpu configuration as kernet's hosts

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  When I configured cpu affinity on a ubuntu 16.04 with kernel version 
"4.4.0-36-generic" on a host containing 3 cpus:
  on /etc/default/grub:
  GRUB_CMDLINE_LINUX_DEFAULT="isolcpus=0"

  update-grub

  reboot

  The output of "cat /proc/self/status" :
  ubuntu@ubuntu:~$ cat /proc/self/status
   .
   .
   .
  Cpus_allowed: 6
  Cpus_allowed_list:1-2
  Mems_allowed: ,0001
  Mems_allowed_list:0
  voluntary_ctxt_switches:  0
  nonvoluntary_ctxt_switches:   1

  When I create an lxd container in this host using these commands:

    lxc launch ubuntu:14.04 my-ubuntu

  And access to this container using:

    lxc exec my-ubuntu -- /bin/bash

  The output of "cat /proc/self/status" :
    .
    .
    .
  Cpus_allowed: 7
  Cpus_allowed_list:0-2
  Mems_allowed: ,0001
  Mems_allowed_list:0
  voluntary_ctxt_switches:  0
  nonvoluntary_ctxt_switches:   4

  Result: Container's process doesn't take same configuration as host's process.
  Host process use  2 cpus:  Cpus_allowed_list: 1-2
  Container process use 3 cpus: Cpus_allowed_list:  0-2

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: linux-image-4.4.0-36-generic 4.4.0-36.55
  ProcVersionSignature: Ubuntu 4.4.0-36.55-generic 4.4.16
  Uname: Linux 4.4.0-36-generic x86_64
  AlsaVersion: Advanced Linux Sound Architecture Driver Version 
k4.4.0-36-generic.
  AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
  ApportVersion: 2.20.1-0ubuntu2
  Architecture: amd64
  ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
  AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/by-path', 
'/dev/snd/hwC0D0', '/dev/snd/pcmC0D0c', '/dev/snd/pcmC0D0p', 
'/dev/snd/controlC0', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
  Card0.Amixer.info: Error: [Errno 2] No such file or directory: 'amixer'
  Card0.Amixer.values: Error: [Errno 2] No such file or directory: 'amixer'
  Date: Tue Sep 13 18:36:29 2016
  HibernationDevice: RESUME=/dev/mapper/ubuntu--vg-swap_1
  InstallationDate: Installed on 2016-08-04 (40 days ago)
  InstallationMedia: Ubuntu-Server 16.04 LTS "Xenial Xerus" - Release amd64 
(20160420.3)
  IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
  Lsusb:
   Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
   Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
   Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
   Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
  MachineType: QEMU Standard PC (i440FX + PIIX, 1996)
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcFB: 0 qxldrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-4.4.0-36-generic 
root=/dev/mapper/username--vg-root ro isolcpus=0
  RelatedPackageVersions:
   linux-restricted-modules-4.4.0-36-generic N/A
   linux-backports-modules-4.4.0-36-generic  N/A
   linux-firmware1.157
  RfKill: Error: [Errno 2] No such file or directory: 'rfkill'
  SourcePackage: linux
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 04/01/2014
  dmi.bios.vendor: SeaBIOS
  dmi.bios.version: Ubuntu-1.8.2-1ubuntu1
  dmi.chassis.type: 1
  dmi.chassis.vendor: QEMU
  dmi.chassis.version: pc-i440fx-wily
  dmi.modalias: 
dmi:bvnSeaBIOS:bvrUbuntu-1.8.2-1ubuntu1:bd04/01/2014:svnQEMU:pnStandardPC(i440FX+PIIX,1996):pvrpc-i440fx-wily:cvnQEMU:ct1:cvrpc-i440fx-wily:
  dmi.product.name: Standard PC (i440FX + PIIX, 1996)
  dmi.product.version: pc-i440fx-wily
  dmi.sys.vendor: QEMU

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1623143/+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


[Kernel-packages] [Bug 1623143] Re: Linux container does not take same cpu configuration as kernet's hosts

2016-09-15 Thread Stéphane Graber
So the problem here is that LXD itself DOES NOT touch the cpuset
controller at all.

liblxc does have some initialization code in place which will copy the
parent value for cpuset.cpus and cpuset.mems if cgroup.clone_children
hasn't been set to 1 yet.

So I guess we'd need a change to the cgfsng backend of LXC to not
propagate the value of the root but instead somehow figure out what CPUs
are isolated and ignore those. Not sure what the right way is to get
that information in a reliable way short of having to parse the kernel
command line...

-- 
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/1623143

Title:
  Linux container does not take same cpu configuration as kernet's hosts

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  When I configured cpu affinity on a ubuntu 16.04 with kernel version 
"4.4.0-36-generic" on a host containing 3 cpus:
  on /etc/default/grub:
  GRUB_CMDLINE_LINUX_DEFAULT="isolcpus=0"

  update-grub

  reboot

  The output of "cat /proc/self/status" :
  ubuntu@ubuntu:~$ cat /proc/self/status
   .
   .
   .
  Cpus_allowed: 6
  Cpus_allowed_list:1-2
  Mems_allowed: ,0001
  Mems_allowed_list:0
  voluntary_ctxt_switches:  0
  nonvoluntary_ctxt_switches:   1

  When I create an lxd container in this host using these commands:

    lxc launch ubuntu:14.04 my-ubuntu

  And access to this container using:

    lxc exec my-ubuntu -- /bin/bash

  The output of "cat /proc/self/status" :
    .
    .
    .
  Cpus_allowed: 7
  Cpus_allowed_list:0-2
  Mems_allowed: ,0001
  Mems_allowed_list:0
  voluntary_ctxt_switches:  0
  nonvoluntary_ctxt_switches:   4

  Result: Container's process doesn't take same configuration as host's process.
  Host process use  2 cpus:  Cpus_allowed_list: 1-2
  Container process use 3 cpus: Cpus_allowed_list:  0-2

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: linux-image-4.4.0-36-generic 4.4.0-36.55
  ProcVersionSignature: Ubuntu 4.4.0-36.55-generic 4.4.16
  Uname: Linux 4.4.0-36-generic x86_64
  AlsaVersion: Advanced Linux Sound Architecture Driver Version 
k4.4.0-36-generic.
  AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
  ApportVersion: 2.20.1-0ubuntu2
  Architecture: amd64
  ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
  AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/by-path', 
'/dev/snd/hwC0D0', '/dev/snd/pcmC0D0c', '/dev/snd/pcmC0D0p', 
'/dev/snd/controlC0', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
  Card0.Amixer.info: Error: [Errno 2] No such file or directory: 'amixer'
  Card0.Amixer.values: Error: [Errno 2] No such file or directory: 'amixer'
  Date: Tue Sep 13 18:36:29 2016
  HibernationDevice: RESUME=/dev/mapper/ubuntu--vg-swap_1
  InstallationDate: Installed on 2016-08-04 (40 days ago)
  InstallationMedia: Ubuntu-Server 16.04 LTS "Xenial Xerus" - Release amd64 
(20160420.3)
  IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
  Lsusb:
   Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
   Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
   Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
   Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
  MachineType: QEMU Standard PC (i440FX + PIIX, 1996)
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcFB: 0 qxldrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-4.4.0-36-generic 
root=/dev/mapper/username--vg-root ro isolcpus=0
  RelatedPackageVersions:
   linux-restricted-modules-4.4.0-36-generic N/A
   linux-backports-modules-4.4.0-36-generic  N/A
   linux-firmware1.157
  RfKill: Error: [Errno 2] No such file or directory: 'rfkill'
  SourcePackage: linux
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 04/01/2014
  dmi.bios.vendor: SeaBIOS
  dmi.bios.version: Ubuntu-1.8.2-1ubuntu1
  dmi.chassis.type: 1
  dmi.chassis.vendor: QEMU
  dmi.chassis.version: pc-i440fx-wily
  dmi.modalias: 
dmi:bvnSeaBIOS:bvrUbuntu-1.8.2-1ubuntu1:bd04/01/2014:svnQEMU:pnStandardPC(i440FX+PIIX,1996):pvrpc-i440fx-wily:cvnQEMU:ct1:cvrpc-i440fx-wily:
  dmi.product.name: Standard PC (i440FX + PIIX, 1996)
  dmi.product.version: pc-i440fx-wily
  dmi.sys.vendor: QEMU

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1623143/+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


[Kernel-packages] [Bug 1623143] Re: Linux container does not take same cpu configuration as kernet's hosts

2016-09-15 Thread Seth Forshee
@straber: I don't think this is a kernel bug after all.

You said that LXD will not alter the CPU pinning in any way. But it must
write _something_ to cpuset.cpus before you can add any tasks to the
cgroup. So I assume that by "not altering" you mean it just copies the
value from the parent cgroup. But by doing that you are including the
isolated CPUs in the cpuset. And based on Documentation/kernel-
parameters.txt, adding the isolated CPUs to the cpuset is a supported
way of scheduling tasks to the isolated CPU.

If the kernel be default inherited the cpuset.cpus value from its parent
it would be reasonable for it to keep the same behavior wrt isolated
CPUs. But since you have to write a value I don't think there's any way
the kernel can know whether or not you meant to include isolated CPUs. I
think LXD will have to exclude them unless explicitly told not to.

Note that the base cpuset must contain all possible CPUs, as any child
cpuset must be a subset of its parent.

The behavior I describe in #7 is still a bit weird though. I missed a
point there, that cpuset.cpus had been written to and so the scheduler
domains were rebuilt. I suspect it has to do with the fact that the load
balancer won't migrate tasks to/from isolated CPUs. If the first task
you added to the set was on a non-isolated CPU then it won't be migrated
to an isolated CPU. And since (I think) any of its children will start
on the same CPU as the parent process they wouldn't be migrated to an
isolated CPU either. So in effect it still excludes the isolated CPU
despite the scheduler domain being recalculated.

One other thing does look a bit fishy. The base cgroup is special in
that the cpus_allowed for tasks excludes the isolated cpus unless
explicitly allowed via the CPU affinity syscalls. But if I move the task
to a child cpuset then back to the base cpuset it sill has the isolated
CPUs present in cpus_allowed.

-- 
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/1623143

Title:
  Linux container does not take same cpu configuration as kernet's hosts

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  When I configured cpu affinity on a ubuntu 16.04 with kernel version 
"4.4.0-36-generic" on a host containing 3 cpus:
  on /etc/default/grub:
  GRUB_CMDLINE_LINUX_DEFAULT="isolcpus=0"

  update-grub

  reboot

  The output of "cat /proc/self/status" :
  ubuntu@ubuntu:~$ cat /proc/self/status
   .
   .
   .
  Cpus_allowed: 6
  Cpus_allowed_list:1-2
  Mems_allowed: ,0001
  Mems_allowed_list:0
  voluntary_ctxt_switches:  0
  nonvoluntary_ctxt_switches:   1

  When I create an lxd container in this host using these commands:

    lxc launch ubuntu:14.04 my-ubuntu

  And access to this container using:

    lxc exec my-ubuntu -- /bin/bash

  The output of "cat /proc/self/status" :
    .
    .
    .
  Cpus_allowed: 7
  Cpus_allowed_list:0-2
  Mems_allowed: ,0001
  Mems_allowed_list:0
  voluntary_ctxt_switches:  0
  nonvoluntary_ctxt_switches:   4

  Result: Container's process doesn't take same configuration as host's process.
  Host process use  2 cpus:  Cpus_allowed_list: 1-2
  Container process use 3 cpus: Cpus_allowed_list:  0-2

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: linux-image-4.4.0-36-generic 4.4.0-36.55
  ProcVersionSignature: Ubuntu 4.4.0-36.55-generic 4.4.16
  Uname: Linux 4.4.0-36-generic x86_64
  AlsaVersion: Advanced Linux Sound Architecture Driver Version 
k4.4.0-36-generic.
  AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
  ApportVersion: 2.20.1-0ubuntu2
  Architecture: amd64
  ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
  AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/by-path', 
'/dev/snd/hwC0D0', '/dev/snd/pcmC0D0c', '/dev/snd/pcmC0D0p', 
'/dev/snd/controlC0', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
  Card0.Amixer.info: Error: [Errno 2] No such file or directory: 'amixer'
  Card0.Amixer.values: Error: [Errno 2] No such file or directory: 'amixer'
  Date: Tue Sep 13 18:36:29 2016
  HibernationDevice: RESUME=/dev/mapper/ubuntu--vg-swap_1
  InstallationDate: Installed on 2016-08-04 (40 days ago)
  InstallationMedia: Ubuntu-Server 16.04 LTS "Xenial Xerus" - Release amd64 
(20160420.3)
  IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
  Lsusb:
   Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
   Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
   Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
   Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
  MachineType: QEMU Standard PC (i440FX + PIIX, 1996)
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcFB: 0 qxldrmfb
  

[Kernel-packages] [Bug 1623143] Re: Linux container does not take same cpu configuration as kernet's hosts

2016-09-15 Thread Seth Forshee
The good news is that it looks like even though Cpus_allowed says CPU 0
is allowed the scheduler isn't going to actually schedule anything in
the cgroup to that CPU until something induces the cpuset code to
rebuild the scheduler domains. Primarily that would be writing to one of
the cpuset.cpus files, but it looks like one or two other events might
cause it to happen, such as CPU hotplug. This bears out experimentally;
tasks scheduled within the cgroup as in the above script only get
scheduled on CPUs 1-3.

-- 
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/1623143

Title:
  Linux container does not take same cpu configuration as kernet's hosts

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  When I configured cpu affinity on a ubuntu 16.04 with kernel version 
"4.4.0-36-generic" on a host containing 3 cpus:
  on /etc/default/grub:
  GRUB_CMDLINE_LINUX_DEFAULT="isolcpus=0"

  update-grub

  reboot

  The output of "cat /proc/self/status" :
  ubuntu@ubuntu:~$ cat /proc/self/status
   .
   .
   .
  Cpus_allowed: 6
  Cpus_allowed_list:1-2
  Mems_allowed: ,0001
  Mems_allowed_list:0
  voluntary_ctxt_switches:  0
  nonvoluntary_ctxt_switches:   1

  When I create an lxd container in this host using these commands:

    lxc launch ubuntu:14.04 my-ubuntu

  And access to this container using:

    lxc exec my-ubuntu -- /bin/bash

  The output of "cat /proc/self/status" :
    .
    .
    .
  Cpus_allowed: 7
  Cpus_allowed_list:0-2
  Mems_allowed: ,0001
  Mems_allowed_list:0
  voluntary_ctxt_switches:  0
  nonvoluntary_ctxt_switches:   4

  Result: Container's process doesn't take same configuration as host's process.
  Host process use  2 cpus:  Cpus_allowed_list: 1-2
  Container process use 3 cpus: Cpus_allowed_list:  0-2

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: linux-image-4.4.0-36-generic 4.4.0-36.55
  ProcVersionSignature: Ubuntu 4.4.0-36.55-generic 4.4.16
  Uname: Linux 4.4.0-36-generic x86_64
  AlsaVersion: Advanced Linux Sound Architecture Driver Version 
k4.4.0-36-generic.
  AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
  ApportVersion: 2.20.1-0ubuntu2
  Architecture: amd64
  ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
  AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/by-path', 
'/dev/snd/hwC0D0', '/dev/snd/pcmC0D0c', '/dev/snd/pcmC0D0p', 
'/dev/snd/controlC0', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
  Card0.Amixer.info: Error: [Errno 2] No such file or directory: 'amixer'
  Card0.Amixer.values: Error: [Errno 2] No such file or directory: 'amixer'
  Date: Tue Sep 13 18:36:29 2016
  HibernationDevice: RESUME=/dev/mapper/ubuntu--vg-swap_1
  InstallationDate: Installed on 2016-08-04 (40 days ago)
  InstallationMedia: Ubuntu-Server 16.04 LTS "Xenial Xerus" - Release amd64 
(20160420.3)
  IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
  Lsusb:
   Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
   Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
   Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
   Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
  MachineType: QEMU Standard PC (i440FX + PIIX, 1996)
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcFB: 0 qxldrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-4.4.0-36-generic 
root=/dev/mapper/username--vg-root ro isolcpus=0
  RelatedPackageVersions:
   linux-restricted-modules-4.4.0-36-generic N/A
   linux-backports-modules-4.4.0-36-generic  N/A
   linux-firmware1.157
  RfKill: Error: [Errno 2] No such file or directory: 'rfkill'
  SourcePackage: linux
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 04/01/2014
  dmi.bios.vendor: SeaBIOS
  dmi.bios.version: Ubuntu-1.8.2-1ubuntu1
  dmi.chassis.type: 1
  dmi.chassis.vendor: QEMU
  dmi.chassis.version: pc-i440fx-wily
  dmi.modalias: 
dmi:bvnSeaBIOS:bvrUbuntu-1.8.2-1ubuntu1:bd04/01/2014:svnQEMU:pnStandardPC(i440FX+PIIX,1996):pvrpc-i440fx-wily:cvnQEMU:ct1:cvrpc-i440fx-wily:
  dmi.product.name: Standard PC (i440FX + PIIX, 1996)
  dmi.product.version: pc-i440fx-wily
  dmi.sys.vendor: QEMU

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1623143/+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


[Kernel-packages] [Bug 1623143] Re: Linux container does not take same cpu configuration as kernet's hosts

2016-09-15 Thread Seth Forshee
It seems that the cpuset cgroup is causing this. Using the script below
I get this output:

In cgroup:
Cpus_allowed:   f
Cpus_allowed_list:  0-3

Outside cgroup:
Cpus_allowed:   e
Cpus_allowed_list:  1-3

The script:

#!/bin/bash

set -e

export CGDIR=/sys/fs/cgroup/cpuset/cpusets-$$

function cleanup {
rmdir $CGDIR
}
trap cleanup EXIT

mkdir $CGDIR
cat $CGDIR/../cpuset.mems > $CGDIR/cpuset.mems
cat $CGDIR/../cpuset.cpus > $CGDIR/cpuset.cpus

/bin/bash -s <<'EOF'
set -e
echo "$$" > $CGDIR/tasks
echo "In cgroup:"
cat /proc/self/status | grep ^Cpus_allowed
EOF

echo
echo "Outside cgroup:"
cat /proc/self/status | grep ^Cpus_allowed

-- 
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/1623143

Title:
  Linux container does not take same cpu configuration as kernet's hosts

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  When I configured cpu affinity on a ubuntu 16.04 with kernel version 
"4.4.0-36-generic" on a host containing 3 cpus:
  on /etc/default/grub:
  GRUB_CMDLINE_LINUX_DEFAULT="isolcpus=0"

  update-grub

  reboot

  The output of "cat /proc/self/status" :
  ubuntu@ubuntu:~$ cat /proc/self/status
   .
   .
   .
  Cpus_allowed: 6
  Cpus_allowed_list:1-2
  Mems_allowed: ,0001
  Mems_allowed_list:0
  voluntary_ctxt_switches:  0
  nonvoluntary_ctxt_switches:   1

  When I create an lxd container in this host using these commands:

    lxc launch ubuntu:14.04 my-ubuntu

  And access to this container using:

    lxc exec my-ubuntu -- /bin/bash

  The output of "cat /proc/self/status" :
    .
    .
    .
  Cpus_allowed: 7
  Cpus_allowed_list:0-2
  Mems_allowed: ,0001
  Mems_allowed_list:0
  voluntary_ctxt_switches:  0
  nonvoluntary_ctxt_switches:   4

  Result: Container's process doesn't take same configuration as host's process.
  Host process use  2 cpus:  Cpus_allowed_list: 1-2
  Container process use 3 cpus: Cpus_allowed_list:  0-2

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: linux-image-4.4.0-36-generic 4.4.0-36.55
  ProcVersionSignature: Ubuntu 4.4.0-36.55-generic 4.4.16
  Uname: Linux 4.4.0-36-generic x86_64
  AlsaVersion: Advanced Linux Sound Architecture Driver Version 
k4.4.0-36-generic.
  AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
  ApportVersion: 2.20.1-0ubuntu2
  Architecture: amd64
  ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
  AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/by-path', 
'/dev/snd/hwC0D0', '/dev/snd/pcmC0D0c', '/dev/snd/pcmC0D0p', 
'/dev/snd/controlC0', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
  Card0.Amixer.info: Error: [Errno 2] No such file or directory: 'amixer'
  Card0.Amixer.values: Error: [Errno 2] No such file or directory: 'amixer'
  Date: Tue Sep 13 18:36:29 2016
  HibernationDevice: RESUME=/dev/mapper/ubuntu--vg-swap_1
  InstallationDate: Installed on 2016-08-04 (40 days ago)
  InstallationMedia: Ubuntu-Server 16.04 LTS "Xenial Xerus" - Release amd64 
(20160420.3)
  IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
  Lsusb:
   Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
   Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
   Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
   Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
  MachineType: QEMU Standard PC (i440FX + PIIX, 1996)
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcFB: 0 qxldrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-4.4.0-36-generic 
root=/dev/mapper/username--vg-root ro isolcpus=0
  RelatedPackageVersions:
   linux-restricted-modules-4.4.0-36-generic N/A
   linux-backports-modules-4.4.0-36-generic  N/A
   linux-firmware1.157
  RfKill: Error: [Errno 2] No such file or directory: 'rfkill'
  SourcePackage: linux
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 04/01/2014
  dmi.bios.vendor: SeaBIOS
  dmi.bios.version: Ubuntu-1.8.2-1ubuntu1
  dmi.chassis.type: 1
  dmi.chassis.vendor: QEMU
  dmi.chassis.version: pc-i440fx-wily
  dmi.modalias: 
dmi:bvnSeaBIOS:bvrUbuntu-1.8.2-1ubuntu1:bd04/01/2014:svnQEMU:pnStandardPC(i440FX+PIIX,1996):pvrpc-i440fx-wily:cvnQEMU:ct1:cvrpc-i440fx-wily:
  dmi.product.name: Standard PC (i440FX + PIIX, 1996)
  dmi.product.version: pc-i440fx-wily
  dmi.sys.vendor: QEMU

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1623143/+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


[Kernel-packages] [Bug 1623143] Re: Linux container does not take same cpu configuration as kernet's hosts

2016-09-14 Thread Joseph Salisbury
Did this issue start happening after an update/upgrade?  Was there a
prior kernel version where you were not having this particular problem?

Would it be possible for you to test the latest upstream kernel? Refer
to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest
v4.8 kernel[0].

If this bug is fixed in the mainline kernel, please add the following
tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag:
'kernel-bug-exists-upstream'.

Once testing of the upstream kernel is complete, please mark this bug as
"Confirmed".


Thanks in advance.

[0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.8-rc6

-- 
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/1623143

Title:
  Linux container does not take same cpu configuration as kernet's hosts

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  When I configured cpu affinity on a ubuntu 16.04 with kernel version 
"4.4.0-36-generic" on a host containing 3 cpus:
  on /etc/default/grub:
  GRUB_CMDLINE_LINUX_DEFAULT="isolcpus=0"

  update-grub

  reboot

  The output of "cat /proc/self/status" :
  ubuntu@ubuntu:~$ cat /proc/self/status
   .
   .
   .
  Cpus_allowed: 6
  Cpus_allowed_list:1-2
  Mems_allowed: ,0001
  Mems_allowed_list:0
  voluntary_ctxt_switches:  0
  nonvoluntary_ctxt_switches:   1

  When I create an lxd container in this host using these commands:

    lxc launch ubuntu:14.04 my-ubuntu

  And access to this container using:

    lxc exec my-ubuntu -- /bin/bash

  The output of "cat /proc/self/status" :
    .
    .
    .
  Cpus_allowed: 7
  Cpus_allowed_list:0-2
  Mems_allowed: ,0001
  Mems_allowed_list:0
  voluntary_ctxt_switches:  0
  nonvoluntary_ctxt_switches:   4

  Result: Container's process doesn't take same configuration as host's process.
  Host process use  2 cpus:  Cpus_allowed_list: 1-2
  Container process use 3 cpus: Cpus_allowed_list:  0-2

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: linux-image-4.4.0-36-generic 4.4.0-36.55
  ProcVersionSignature: Ubuntu 4.4.0-36.55-generic 4.4.16
  Uname: Linux 4.4.0-36-generic x86_64
  AlsaVersion: Advanced Linux Sound Architecture Driver Version 
k4.4.0-36-generic.
  AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
  ApportVersion: 2.20.1-0ubuntu2
  Architecture: amd64
  ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
  AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/by-path', 
'/dev/snd/hwC0D0', '/dev/snd/pcmC0D0c', '/dev/snd/pcmC0D0p', 
'/dev/snd/controlC0', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
  Card0.Amixer.info: Error: [Errno 2] No such file or directory: 'amixer'
  Card0.Amixer.values: Error: [Errno 2] No such file or directory: 'amixer'
  Date: Tue Sep 13 18:36:29 2016
  HibernationDevice: RESUME=/dev/mapper/ubuntu--vg-swap_1
  InstallationDate: Installed on 2016-08-04 (40 days ago)
  InstallationMedia: Ubuntu-Server 16.04 LTS "Xenial Xerus" - Release amd64 
(20160420.3)
  IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
  Lsusb:
   Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
   Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
   Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
   Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
  MachineType: QEMU Standard PC (i440FX + PIIX, 1996)
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcFB: 0 qxldrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-4.4.0-36-generic 
root=/dev/mapper/username--vg-root ro isolcpus=0
  RelatedPackageVersions:
   linux-restricted-modules-4.4.0-36-generic N/A
   linux-backports-modules-4.4.0-36-generic  N/A
   linux-firmware1.157
  RfKill: Error: [Errno 2] No such file or directory: 'rfkill'
  SourcePackage: linux
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 04/01/2014
  dmi.bios.vendor: SeaBIOS
  dmi.bios.version: Ubuntu-1.8.2-1ubuntu1
  dmi.chassis.type: 1
  dmi.chassis.vendor: QEMU
  dmi.chassis.version: pc-i440fx-wily
  dmi.modalias: 
dmi:bvnSeaBIOS:bvrUbuntu-1.8.2-1ubuntu1:bd04/01/2014:svnQEMU:pnStandardPC(i440FX+PIIX,1996):pvrpc-i440fx-wily:cvnQEMU:ct1:cvrpc-i440fx-wily:
  dmi.product.name: Standard PC (i440FX + PIIX, 1996)
  dmi.product.version: pc-i440fx-wily
  dmi.sys.vendor: QEMU

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1623143/+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


[Kernel-packages] [Bug 1623143] Re: Linux container does not take same cpu configuration as kernet's hosts

2016-09-14 Thread Joseph Salisbury
** Tags added: kernel-da-key

** Changed in: linux (Ubuntu)
   Importance: Medium => High

-- 
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/1623143

Title:
  Linux container does not take same cpu configuration as kernet's hosts

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  When I configured cpu affinity on a ubuntu 16.04 with kernel version 
"4.4.0-36-generic" on a host containing 3 cpus:
  on /etc/default/grub:
  GRUB_CMDLINE_LINUX_DEFAULT="isolcpus=0"

  update-grub

  reboot

  The output of "cat /proc/self/status" :
  ubuntu@ubuntu:~$ cat /proc/self/status
   .
   .
   .
  Cpus_allowed: 6
  Cpus_allowed_list:1-2
  Mems_allowed: ,0001
  Mems_allowed_list:0
  voluntary_ctxt_switches:  0
  nonvoluntary_ctxt_switches:   1

  When I create an lxd container in this host using these commands:

    lxc launch ubuntu:14.04 my-ubuntu

  And access to this container using:

    lxc exec my-ubuntu -- /bin/bash

  The output of "cat /proc/self/status" :
    .
    .
    .
  Cpus_allowed: 7
  Cpus_allowed_list:0-2
  Mems_allowed: ,0001
  Mems_allowed_list:0
  voluntary_ctxt_switches:  0
  nonvoluntary_ctxt_switches:   4

  Result: Container's process doesn't take same configuration as host's process.
  Host process use  2 cpus:  Cpus_allowed_list: 1-2
  Container process use 3 cpus: Cpus_allowed_list:  0-2

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: linux-image-4.4.0-36-generic 4.4.0-36.55
  ProcVersionSignature: Ubuntu 4.4.0-36.55-generic 4.4.16
  Uname: Linux 4.4.0-36-generic x86_64
  AlsaVersion: Advanced Linux Sound Architecture Driver Version 
k4.4.0-36-generic.
  AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
  ApportVersion: 2.20.1-0ubuntu2
  Architecture: amd64
  ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
  AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/by-path', 
'/dev/snd/hwC0D0', '/dev/snd/pcmC0D0c', '/dev/snd/pcmC0D0p', 
'/dev/snd/controlC0', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
  Card0.Amixer.info: Error: [Errno 2] No such file or directory: 'amixer'
  Card0.Amixer.values: Error: [Errno 2] No such file or directory: 'amixer'
  Date: Tue Sep 13 18:36:29 2016
  HibernationDevice: RESUME=/dev/mapper/ubuntu--vg-swap_1
  InstallationDate: Installed on 2016-08-04 (40 days ago)
  InstallationMedia: Ubuntu-Server 16.04 LTS "Xenial Xerus" - Release amd64 
(20160420.3)
  IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
  Lsusb:
   Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
   Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
   Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
   Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
  MachineType: QEMU Standard PC (i440FX + PIIX, 1996)
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcFB: 0 qxldrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-4.4.0-36-generic 
root=/dev/mapper/username--vg-root ro isolcpus=0
  RelatedPackageVersions:
   linux-restricted-modules-4.4.0-36-generic N/A
   linux-backports-modules-4.4.0-36-generic  N/A
   linux-firmware1.157
  RfKill: Error: [Errno 2] No such file or directory: 'rfkill'
  SourcePackage: linux
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 04/01/2014
  dmi.bios.vendor: SeaBIOS
  dmi.bios.version: Ubuntu-1.8.2-1ubuntu1
  dmi.chassis.type: 1
  dmi.chassis.vendor: QEMU
  dmi.chassis.version: pc-i440fx-wily
  dmi.modalias: 
dmi:bvnSeaBIOS:bvrUbuntu-1.8.2-1ubuntu1:bd04/01/2014:svnQEMU:pnStandardPC(i440FX+PIIX,1996):pvrpc-i440fx-wily:cvnQEMU:ct1:cvrpc-i440fx-wily:
  dmi.product.name: Standard PC (i440FX + PIIX, 1996)
  dmi.product.version: pc-i440fx-wily
  dmi.sys.vendor: QEMU

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1623143/+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


[Kernel-packages] [Bug 1623143] Re: Linux container does not take same cpu configuration as kernet's hosts

2016-09-13 Thread Alberto Salvia Novella
** Changed in: linux (Ubuntu)
   Importance: Undecided => Medium

-- 
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/1623143

Title:
  Linux container does not take same cpu configuration as kernet's hosts

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  When I configured cpu affinity on a ubuntu 16.04 with kernel version 
"4.4.0-36-generic" on a host containing 3 cpus:
  on /etc/default/grub:
  GRUB_CMDLINE_LINUX_DEFAULT="isolcpus=0"

  update-grub

  reboot

  The output of "cat /proc/self/status" :
  ubuntu@ubuntu:~$ cat /proc/self/status
   .
   .
   .
  Cpus_allowed: 6
  Cpus_allowed_list:1-2
  Mems_allowed: ,0001
  Mems_allowed_list:0
  voluntary_ctxt_switches:  0
  nonvoluntary_ctxt_switches:   1

  When I create an lxd container in this host using these commands:

    lxc launch ubuntu:14.04 my-ubuntu

  And access to this container using:

    lxc exec my-ubuntu -- /bin/bash

  The output of "cat /proc/self/status" :
    .
    .
    .
  Cpus_allowed: 7
  Cpus_allowed_list:0-2
  Mems_allowed: ,0001
  Mems_allowed_list:0
  voluntary_ctxt_switches:  0
  nonvoluntary_ctxt_switches:   4

  Result: Container's process doesn't take same configuration as host's process.
  Host process use  2 cpus:  Cpus_allowed_list: 1-2
  Container process use 3 cpus: Cpus_allowed_list:  0-2

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: linux-image-4.4.0-36-generic 4.4.0-36.55
  ProcVersionSignature: Ubuntu 4.4.0-36.55-generic 4.4.16
  Uname: Linux 4.4.0-36-generic x86_64
  AlsaVersion: Advanced Linux Sound Architecture Driver Version 
k4.4.0-36-generic.
  AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
  ApportVersion: 2.20.1-0ubuntu2
  Architecture: amd64
  ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
  AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/by-path', 
'/dev/snd/hwC0D0', '/dev/snd/pcmC0D0c', '/dev/snd/pcmC0D0p', 
'/dev/snd/controlC0', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
  Card0.Amixer.info: Error: [Errno 2] No such file or directory: 'amixer'
  Card0.Amixer.values: Error: [Errno 2] No such file or directory: 'amixer'
  Date: Tue Sep 13 18:36:29 2016
  HibernationDevice: RESUME=/dev/mapper/ubuntu--vg-swap_1
  InstallationDate: Installed on 2016-08-04 (40 days ago)
  InstallationMedia: Ubuntu-Server 16.04 LTS "Xenial Xerus" - Release amd64 
(20160420.3)
  IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
  Lsusb:
   Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
   Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
   Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
   Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
  MachineType: QEMU Standard PC (i440FX + PIIX, 1996)
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcFB: 0 qxldrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-4.4.0-36-generic 
root=/dev/mapper/username--vg-root ro isolcpus=0
  RelatedPackageVersions:
   linux-restricted-modules-4.4.0-36-generic N/A
   linux-backports-modules-4.4.0-36-generic  N/A
   linux-firmware1.157
  RfKill: Error: [Errno 2] No such file or directory: 'rfkill'
  SourcePackage: linux
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 04/01/2014
  dmi.bios.vendor: SeaBIOS
  dmi.bios.version: Ubuntu-1.8.2-1ubuntu1
  dmi.chassis.type: 1
  dmi.chassis.vendor: QEMU
  dmi.chassis.version: pc-i440fx-wily
  dmi.modalias: 
dmi:bvnSeaBIOS:bvrUbuntu-1.8.2-1ubuntu1:bd04/01/2014:svnQEMU:pnStandardPC(i440FX+PIIX,1996):pvrpc-i440fx-wily:cvnQEMU:ct1:cvrpc-i440fx-wily:
  dmi.product.name: Standard PC (i440FX + PIIX, 1996)
  dmi.product.version: pc-i440fx-wily
  dmi.sys.vendor: QEMU

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1623143/+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


[Kernel-packages] [Bug 1623143] Re: Linux container does not take same cpu configuration as kernet's hosts

2016-09-13 Thread Stéphane Graber
Seems correct to have this tracked as a kernel bug. Unless you set
limits.cpu in LXD, LXD will not alter the cpu pinning in any way. And
even if it did, it'd do so through the cpuset cgroup, which shouldn't
allow a sub-cgroup to be any more permissive than the root cgroup.

-- 
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/1623143

Title:
  Linux container does not take same cpu configuration as kernet's hosts

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  When I configured cpu affinity on a ubuntu 16.04 with kernel version 
"4.4.0-36-generic" on a host containing 3 cpus:
  on /etc/default/grub:
  GRUB_CMDLINE_LINUX_DEFAULT="isolcpus=0"

  update-grub

  reboot

  The output of "cat /proc/self/status" :
  ubuntu@ubuntu:~$ cat /proc/self/status
   .
   .
   .
  Cpus_allowed: 6
  Cpus_allowed_list:1-2
  Mems_allowed: ,0001
  Mems_allowed_list:0
  voluntary_ctxt_switches:  0
  nonvoluntary_ctxt_switches:   1

  When I create an lxd container in this host using these commands:

    lxc launch ubuntu:14.04 my-ubuntu

  And access to this container using:

    lxc exec my-ubuntu -- /bin/bash

  The output of "cat /proc/self/status" :
    .
    .
    .
  Cpus_allowed: 7
  Cpus_allowed_list:0-2
  Mems_allowed: ,0001
  Mems_allowed_list:0
  voluntary_ctxt_switches:  0
  nonvoluntary_ctxt_switches:   4

  Result: Container's process doesn't take same configuration as host's process.
  Host process use  2 cpus:  Cpus_allowed_list: 1-2
  Container process use 3 cpus: Cpus_allowed_list:  0-2

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: linux-image-4.4.0-36-generic 4.4.0-36.55
  ProcVersionSignature: Ubuntu 4.4.0-36.55-generic 4.4.16
  Uname: Linux 4.4.0-36-generic x86_64
  AlsaVersion: Advanced Linux Sound Architecture Driver Version 
k4.4.0-36-generic.
  AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
  ApportVersion: 2.20.1-0ubuntu2
  Architecture: amd64
  ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
  AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/by-path', 
'/dev/snd/hwC0D0', '/dev/snd/pcmC0D0c', '/dev/snd/pcmC0D0p', 
'/dev/snd/controlC0', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
  Card0.Amixer.info: Error: [Errno 2] No such file or directory: 'amixer'
  Card0.Amixer.values: Error: [Errno 2] No such file or directory: 'amixer'
  Date: Tue Sep 13 18:36:29 2016
  HibernationDevice: RESUME=/dev/mapper/ubuntu--vg-swap_1
  InstallationDate: Installed on 2016-08-04 (40 days ago)
  InstallationMedia: Ubuntu-Server 16.04 LTS "Xenial Xerus" - Release amd64 
(20160420.3)
  IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
  Lsusb:
   Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
   Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
   Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
   Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
  MachineType: QEMU Standard PC (i440FX + PIIX, 1996)
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcFB: 0 qxldrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-4.4.0-36-generic 
root=/dev/mapper/username--vg-root ro isolcpus=0
  RelatedPackageVersions:
   linux-restricted-modules-4.4.0-36-generic N/A
   linux-backports-modules-4.4.0-36-generic  N/A
   linux-firmware1.157
  RfKill: Error: [Errno 2] No such file or directory: 'rfkill'
  SourcePackage: linux
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 04/01/2014
  dmi.bios.vendor: SeaBIOS
  dmi.bios.version: Ubuntu-1.8.2-1ubuntu1
  dmi.chassis.type: 1
  dmi.chassis.vendor: QEMU
  dmi.chassis.version: pc-i440fx-wily
  dmi.modalias: 
dmi:bvnSeaBIOS:bvrUbuntu-1.8.2-1ubuntu1:bd04/01/2014:svnQEMU:pnStandardPC(i440FX+PIIX,1996):pvrpc-i440fx-wily:cvnQEMU:ct1:cvrpc-i440fx-wily:
  dmi.product.name: Standard PC (i440FX + PIIX, 1996)
  dmi.product.version: pc-i440fx-wily
  dmi.sys.vendor: QEMU

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1623143/+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


[Kernel-packages] [Bug 1623143] Re: Linux container does not take same cpu configuration as kernet's hosts

2016-09-13 Thread Stéphane Graber
As a workaround, you could do "lxc profile set default limits.cpu 1-2"
which will have LXD setup the cpuset pinning for all containers to avoid
CPU 0.

-- 
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/1623143

Title:
  Linux container does not take same cpu configuration as kernet's hosts

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  When I configured cpu affinity on a ubuntu 16.04 with kernel version 
"4.4.0-36-generic" on a host containing 3 cpus:
  on /etc/default/grub:
  GRUB_CMDLINE_LINUX_DEFAULT="isolcpus=0"

  update-grub

  reboot

  The output of "cat /proc/self/status" :
  ubuntu@ubuntu:~$ cat /proc/self/status
   .
   .
   .
  Cpus_allowed: 6
  Cpus_allowed_list:1-2
  Mems_allowed: ,0001
  Mems_allowed_list:0
  voluntary_ctxt_switches:  0
  nonvoluntary_ctxt_switches:   1

  When I create an lxd container in this host using these commands:

    lxc launch ubuntu:14.04 my-ubuntu

  And access to this container using:

    lxc exec my-ubuntu -- /bin/bash

  The output of "cat /proc/self/status" :
    .
    .
    .
  Cpus_allowed: 7
  Cpus_allowed_list:0-2
  Mems_allowed: ,0001
  Mems_allowed_list:0
  voluntary_ctxt_switches:  0
  nonvoluntary_ctxt_switches:   4

  Result: Container's process doesn't take same configuration as host's process.
  Host process use  2 cpus:  Cpus_allowed_list: 1-2
  Container process use 3 cpus: Cpus_allowed_list:  0-2

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: linux-image-4.4.0-36-generic 4.4.0-36.55
  ProcVersionSignature: Ubuntu 4.4.0-36.55-generic 4.4.16
  Uname: Linux 4.4.0-36-generic x86_64
  AlsaVersion: Advanced Linux Sound Architecture Driver Version 
k4.4.0-36-generic.
  AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
  ApportVersion: 2.20.1-0ubuntu2
  Architecture: amd64
  ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
  AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/by-path', 
'/dev/snd/hwC0D0', '/dev/snd/pcmC0D0c', '/dev/snd/pcmC0D0p', 
'/dev/snd/controlC0', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
  Card0.Amixer.info: Error: [Errno 2] No such file or directory: 'amixer'
  Card0.Amixer.values: Error: [Errno 2] No such file or directory: 'amixer'
  Date: Tue Sep 13 18:36:29 2016
  HibernationDevice: RESUME=/dev/mapper/ubuntu--vg-swap_1
  InstallationDate: Installed on 2016-08-04 (40 days ago)
  InstallationMedia: Ubuntu-Server 16.04 LTS "Xenial Xerus" - Release amd64 
(20160420.3)
  IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
  Lsusb:
   Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
   Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
   Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
   Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
  MachineType: QEMU Standard PC (i440FX + PIIX, 1996)
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcFB: 0 qxldrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-4.4.0-36-generic 
root=/dev/mapper/username--vg-root ro isolcpus=0
  RelatedPackageVersions:
   linux-restricted-modules-4.4.0-36-generic N/A
   linux-backports-modules-4.4.0-36-generic  N/A
   linux-firmware1.157
  RfKill: Error: [Errno 2] No such file or directory: 'rfkill'
  SourcePackage: linux
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 04/01/2014
  dmi.bios.vendor: SeaBIOS
  dmi.bios.version: Ubuntu-1.8.2-1ubuntu1
  dmi.chassis.type: 1
  dmi.chassis.vendor: QEMU
  dmi.chassis.version: pc-i440fx-wily
  dmi.modalias: 
dmi:bvnSeaBIOS:bvrUbuntu-1.8.2-1ubuntu1:bd04/01/2014:svnQEMU:pnStandardPC(i440FX+PIIX,1996):pvrpc-i440fx-wily:cvnQEMU:ct1:cvrpc-i440fx-wily:
  dmi.product.name: Standard PC (i440FX + PIIX, 1996)
  dmi.product.version: pc-i440fx-wily
  dmi.sys.vendor: QEMU

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1623143/+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


[Kernel-packages] [Bug 1623143] Re: Linux container does not take same cpu configuration as kernet's hosts

2016-09-13 Thread Aymen Frikha
** Summary changed:

- Linux container does not take same cpu affinity as kernet's hosts
+ Linux container does not take same cpu configuration as kernet's hosts

-- 
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/1623143

Title:
  Linux container does not take same cpu configuration as kernet's hosts

Status in linux package in Ubuntu:
  Confirmed

Bug description:
  When I configured cpu affinity on a ubuntu 16.04 with kernel version 
"4.4.0-36-generic" on a host containing 3 cpus:
  on /etc/default/grub:
  GRUB_CMDLINE_LINUX_DEFAULT="isolcpus=0"

  update-grub

  reboot

  The output of "cat /proc/self/status" :
  ubuntu@ubuntu:~$ cat /proc/self/status
   .
   .
   .
  Cpus_allowed: 6
  Cpus_allowed_list:1-2
  Mems_allowed: ,0001
  Mems_allowed_list:0
  voluntary_ctxt_switches:  0
  nonvoluntary_ctxt_switches:   1

  When I create an lxd container in this host using these commands:

    lxc launch ubuntu:14.04 my-ubuntu

  And access to this container using:

    lxc exec my-ubuntu -- /bin/bash

  The output of "cat /proc/self/status" :
    .
    .
    .
  Cpus_allowed: 7
  Cpus_allowed_list:0-2
  Mems_allowed: ,0001
  Mems_allowed_list:0
  voluntary_ctxt_switches:  0
  nonvoluntary_ctxt_switches:   4

  Result: Container's process doesn't take same configuration as host's process.
  Host process use  2 cpus:  Cpus_allowed_list: 1-2
  Container process use 3 cpus: Cpus_allowed_list:  0-2

  ProblemType: Bug
  DistroRelease: Ubuntu 16.04
  Package: linux-image-4.4.0-36-generic 4.4.0-36.55
  ProcVersionSignature: Ubuntu 4.4.0-36.55-generic 4.4.16
  Uname: Linux 4.4.0-36-generic x86_64
  AlsaVersion: Advanced Linux Sound Architecture Driver Version 
k4.4.0-36-generic.
  AplayDevices: Error: [Errno 2] No such file or directory: 'aplay'
  ApportVersion: 2.20.1-0ubuntu2
  Architecture: amd64
  ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord'
  AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/by-path', 
'/dev/snd/hwC0D0', '/dev/snd/pcmC0D0c', '/dev/snd/pcmC0D0p', 
'/dev/snd/controlC0', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
  Card0.Amixer.info: Error: [Errno 2] No such file or directory: 'amixer'
  Card0.Amixer.values: Error: [Errno 2] No such file or directory: 'amixer'
  Date: Tue Sep 13 18:36:29 2016
  HibernationDevice: RESUME=/dev/mapper/ubuntu--vg-swap_1
  InstallationDate: Installed on 2016-08-04 (40 days ago)
  InstallationMedia: Ubuntu-Server 16.04 LTS "Xenial Xerus" - Release amd64 
(20160420.3)
  IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig'
  Lsusb:
   Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
   Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
   Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
   Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
  MachineType: QEMU Standard PC (i440FX + PIIX, 1996)
  ProcEnviron:
   TERM=xterm-256color
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcFB: 0 qxldrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/vmlinuz-4.4.0-36-generic 
root=/dev/mapper/username--vg-root ro isolcpus=0
  RelatedPackageVersions:
   linux-restricted-modules-4.4.0-36-generic N/A
   linux-backports-modules-4.4.0-36-generic  N/A
   linux-firmware1.157
  RfKill: Error: [Errno 2] No such file or directory: 'rfkill'
  SourcePackage: linux
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 04/01/2014
  dmi.bios.vendor: SeaBIOS
  dmi.bios.version: Ubuntu-1.8.2-1ubuntu1
  dmi.chassis.type: 1
  dmi.chassis.vendor: QEMU
  dmi.chassis.version: pc-i440fx-wily
  dmi.modalias: 
dmi:bvnSeaBIOS:bvrUbuntu-1.8.2-1ubuntu1:bd04/01/2014:svnQEMU:pnStandardPC(i440FX+PIIX,1996):pvrpc-i440fx-wily:cvnQEMU:ct1:cvrpc-i440fx-wily:
  dmi.product.name: Standard PC (i440FX + PIIX, 1996)
  dmi.product.version: pc-i440fx-wily
  dmi.sys.vendor: QEMU

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1623143/+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