← Back to team overview

kernel-packages team mailing list archive

[Bug 1186473] Re: Kernel panic with two USB3 HDD: ring_doorbell_for_active_rings

 

[Expired for linux (Ubuntu) because there has been no activity for 60
days.]

** Changed in: linux (Ubuntu)
       Status: Incomplete => Expired

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

Title:
  Kernel panic with two USB3 HDD: ring_doorbell_for_active_rings

Status in “linux” package in Ubuntu:
  Expired

Bug description:
  See attached photo of the screen after the panic.

  This kernel panic occurred using Dmedia with two USB3 HDD connected.
  Both drives contained Dmedia FileStores, and this happened during
  Dmedia's background tasks. I can reliably trigger this panic with
  Dmedia (usually happens within an hour or so), but I haven't
  encountered this when Dmedia isn't running, when I'm just browsing
  through the drives with Nautilus or somesuch.

  Also interesting is this seems only to occur when *two* USB3 HDD are
  connected. With only one USB3 HDD connected, I haven't experienced
  this yet, even when Dmedia is running.

  I have a few theories as to why Dmedia can trigger this but other apps
  don't seem to.  For one, Dmedia has unusually high IO throughput.
  During its many background tasks, Dmedia will do very fast sequential
  reads through large files, and can generally keep the read IO almost
  fully saturated. Dmedia was definitely doing such a read from one
  drive when this happened, and was possibly writing a file to the other
  drive at the same time.

  The other perhaps unusual thing is Dmedia uses posix_fadvise() with
  POSIX_FADV_WILLNEED, which is a big part of how it achieves such fast
  reads.  After Dmedia reads an 8 MiB chunk, it immediately calls
  posix_fadvise() to hint its read intent to the kernel, like so:

      Py_BEGIN_ALLOW_THREADS
      n = read(fd, PyBytes_AS_STRING(buffer), size);
      if (n == size) {
          offset = (off_t) (index + 1) * size;
          res = posix_fadvise(fd, offset, (off_t) size, POSIX_FADV_WILLNEED);
      }
      Py_END_ALLOW_THREADS

  Above from the filestore_fastread() function:
  http://bazaar.launchpad.net/~dmedia/filestore/trunk/view/head:/_filestore.c#L48

  I don't have experience with this sort of kernel debugging, so I'm not
  sure how to get more information after the panic (system isn't usable
  at all). Suggestions welcome =)

  ProblemType: Bug
  DistroRelease: Ubuntu 13.04
  Package: linux-image-3.8.0-23-generic 3.8.0-23.34
  ProcVersionSignature: Ubuntu 3.8.0-23.34-generic 3.8.11
  Uname: Linux 3.8.0-23-generic x86_64
  ApportVersion: 2.9.2-0ubuntu8
  Architecture: amd64
  AudioDevicesInUse:
   USER        PID ACCESS COMMAND
   /dev/snd/controlC0:  jderose    2370 F.... pulseaudio
  Date: Fri May 31 19:56:21 2013
  EcryptfsInUse: Yes
  InstallationDate: Installed on 2013-03-11 (81 days ago)
  InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Alpha amd64 (20130310)
  MachineType: System76, Inc. Gazelle Professional
  MarkForUpload: True
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcFB: 0 inteldrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.8.0-23-generic root=UUID=c2975d9e-7759-42b0-a550-8a34f8a6964f ro quiet splash acpi_os_name=Linux acpi_osi= vt.handoff=7
  RelatedPackageVersions:
   linux-restricted-modules-3.8.0-23-generic N/A
   linux-backports-modules-3.8.0-23-generic  N/A
   linux-firmware                            1.106
  RfKill:
   0: phy0: Wireless LAN
   	Soft blocked: no
   	Hard blocked: no
  SourcePackage: linux
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 05/16/2012
  dmi.bios.vendor: American Megatrends Inc.
  dmi.bios.version: 4.6.5
  dmi.board.asset.tag: Tag 12345
  dmi.board.name: Gazelle Professional
  dmi.board.vendor: System76, Inc.
  dmi.board.version: gazp7
  dmi.chassis.asset.tag: No Asset Tag
  dmi.chassis.type: 9
  dmi.chassis.vendor: No Enclosure
  dmi.chassis.version: N/A
  dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvr4.6.5:bd05/16/2012:svnSystem76,Inc.:pnGazelleProfessional:pvrgazp7:rvnSystem76,Inc.:rnGazelleProfessional:rvrgazp7:cvnNoEnclosure:ct9:cvrN/A:
  dmi.product.name: Gazelle Professional
  dmi.product.version: gazp7
  dmi.sys.vendor: System76, Inc.

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