ionice doesn't nice the complete writing process

Bug #821610 reported by Removed by request
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

I'm using Ubuntu 11.10 dev. I'm starting apache with the command "chrt -i 0 ionice -c 3 /usr/sbin/apache2ctl". On my system is full data journaling enabled. Theoretically if apache or a child process from apache is writing something to the disk it shouldn't affect any other applications like games because apache has the lowest cpu and I/O priority possible. But sometimes a child process from apache is writing a lot to my disk and I can't do much at this time anymore. If I play a game it is freezing every second and unplayable. If I disable full data journaling it is much better. This is why I think the [jdb2/sda1-8] process doesn't inherit the nice/ionice from the writing process.
---
AlsaVersion: Advanced Linux Sound Architecture Driver Version k3.11.0-12-generic.
AplayDevices:
 **** List of PLAYBACK Hardware Devices ****
 card 0: SB [HDA ATI SB], device 0: ALC662 rev1 Analog [ALC662 rev1 Analog]
   Subdevices: 0/1
   Subdevice #0: subdevice #0
ApportVersion: 2.12.6-0ubuntu1
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: sworddragon 4276 F.... plugin-containe
 /dev/snd/pcmC0D0p: sworddragon 4276 F...m plugin-containe
 /dev/snd/timer: sworddragon 4276 f.... plugin-containe
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'SB'/'HDA ATI SB at 0xf9ff4000 irq 16'
   Mixer name : 'Realtek ALC662 rev1'
   Components : 'HDA:10ec0662,18497662,00100101'
   Controls : 36
   Simple ctrls : 18
CurrentDmesg:
 Error: command ['sh', '-c', 'dmesg | comm -13 --nocheck-order /var/log/dmesg -'] failed with exit code 1: comm: /var/log/dmesg: No such file or directory
 dmesg: write failed: Broken pipe
DistroRelease: Ubuntu 14.04
EcryptfsInUse: Yes
IwConfig: Error: [Errno 2] No such file or directory
Lsusb: Error: [Errno 2] No such file or directory
MachineType: To Be Filled By O.E.M. To Be Filled By O.E.M.
MarkForUpload: True
NonfreeKernelModules: nvidia
Package: linux (not installed)
ProcEnviron:
 TERM=xterm
 PATH=(custom, no user)
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
ProcFB: 0 VESA VGA
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.11.0-12-generic root=UUID=05338ff8-a226-421b-90a4-1dd45199f783 ro
ProcVersionSignature: Ubuntu 3.11.0-12.19-generic 3.11.3
RfKill: Error: [Errno 2] No such file or directory
Tags: trusty
Uname: Linux 3.11.0-12-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm audio cdrom dip lpadmin plugdev sambashare sudo wireshark
WifiSyslog:

dmi.bios.date: 02/05/2013
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: P1.30
dmi.board.asset.tag: BC5FF4739C55
dmi.board.name: 960GM/U3S3 FX
dmi.board.vendor: ASRock
dmi.chassis.asset.tag: To Be Filled By O.E.M.
dmi.chassis.type: 3
dmi.chassis.vendor: To Be Filled By O.E.M.
dmi.chassis.version: To Be Filled By O.E.M.
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrP1.30:bd02/05/2013:svnToBeFilledByO.E.M.:pnToBeFilledByO.E.M.:pvrToBeFilledByO.E.M.:rvnASRock:rn960GM/U3S3FX:rvr:cvnToBeFilledByO.E.M.:ct3:cvrToBeFilledByO.E.M.:
dmi.product.name: To Be Filled By O.E.M.
dmi.product.version: To Be Filled By O.E.M.
dmi.sys.vendor: To Be Filled By O.E.M.

affects: ubuntu → util-linux (Ubuntu)
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in util-linux (Ubuntu):
status: New → Confirmed
Phillip Susi (psusi)
affects: util-linux (Ubuntu) → linux (Ubuntu)
Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Removed by request (removed3425744) wrote :

I have written a testcase to check for this problem but interestingly even with full data journaling disabled I'm still seeing heavy performance impacts on Ubuntu 14.04 dev. In the attachments is the testcase. Just execute it with "chrt -i 0 ionice -c 3 ./test.py" and while it is running do a few minutes something else with your computer to see the difference.

Revision history for this message
Removed by request (removed3425744) wrote :
Changed in linux (Ubuntu):
status: Incomplete → New
Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 821610

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Removed by request (removed3425744) wrote : AlsaDevices.txt

apport information

tags: added: apport-collected trusty
description: updated
Revision history for this message
Removed by request (removed3425744) wrote : ArecordDevices.txt

apport information

Revision history for this message
Removed by request (removed3425744) wrote : Card0.Amixer.values.txt

apport information

Revision history for this message
Removed by request (removed3425744) wrote : Card0.Codecs.codec.0.txt

apport information

Revision history for this message
Removed by request (removed3425744) wrote : HookError_source_linux.txt

apport information

Revision history for this message
Removed by request (removed3425744) wrote : Lspci.txt

apport information

Revision history for this message
Removed by request (removed3425744) wrote : PciMultimedia.txt

apport information

Revision history for this message
Removed by request (removed3425744) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
Removed by request (removed3425744) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Removed by request (removed3425744) wrote : ProcModules.txt

apport information

Revision history for this message
Removed by request (removed3425744) wrote : UdevDb.txt

apport information

Revision history for this message
Removed by request (removed3425744) wrote : UdevLog.txt

apport information

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Changed in linux (Ubuntu):
importance: Undecided → Medium
penalvch (penalvch)
tags: added: bios-outdated-1.40 needs-upstream-testing oneiric
Revision history for this message
Joseph Salisbury (jsalisbury) wrote : Test with newer development kernel (3.13.0-24.46)

Thank you for taking the time to file a bug report on this issue.

However, given the number of bugs that the Kernel Team receives during any development cycle it is impossible for us to review them all. Therefore, we occasionally resort to using automated bots to request further testing. This is such a request.

  With the recent release of this Ubuntu release, would like to confirm if this bug is still present. Please test again with the newer kernel and indicate in the bug if this issue still exists or not.

You can update to the latest development kernel by simply running the following commands in a terminal window:

    sudo apt-get update
    sudo apt-get dist-upgrade

If the bug still exists, change the bug status from Incomplete to Confirmed. If the bug no longer exists, change the bug status from Incomplete to Fix Released.

If you want this bot to quit automatically requesting kernel tests, add a tag named: bot-stop-nagging.

 Thank you for your help, we really do appreciate it.

Changed in linux (Ubuntu):
status: Confirmed → Incomplete
tags: added: kernel-request-3.13.0-24.46
Revision history for this message
Removed by request (removed3425744) wrote :

The bug still exists on Ubuntu 14.10 dev with linux-image-generic 3.15.0.6.7.

tags: added: latest-bios-1.40 utopic
removed: bios-outdated-1.40 kernel-request-3.13.0-24.46 needs-upstream-testing
Changed in linux (Ubuntu):
status: Incomplete → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.