Bug 1657695
Summary: | system running incredibly slow, constant 10-50% iowait | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Karel Volný <kvolny> |
Component: | kernel | Assignee: | Kernel Maintainer List <kernel-maint> |
Status: | CLOSED INSUFFICIENT_DATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 29 | CC: | airlied, bskeggs, ewk, hdegoede, ichavero, itamar, jarodwilson, jglisse, john.j5live, jonathan, josef, kernel-maint, linville, mchehab, mjg59, steved, y9t7sypezp, yaneti |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2019-02-21 21:06:00 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Karel Volný
2018-12-10 10:02:33 UTC
p.s. using 'noatime' doesn't help a slightest bit ... even if it would, there still would be a question why the system isn't slow in qemu when accessing the same underlying device (In reply to Karel Volný from comment #0) ... > 1. install Fedora on USB stick ... For completeness, could you post the details of your USB configuration when booted from the USB stick? $ lsusb -t $ lsusb -v (In reply to Karel Volný from comment #0) ... > [root@localhost ~]# hdparm -t /dev/sdb > > /dev/sdb: > Timing buffered disk reads: 78 MB in 3.02 seconds = 25.81 MB/sec ... In a test with two USB sticks: USB 2.0 stick in a USB 2.0 port: # hdparm -t /dev/sdc /dev/sdc: Timing buffered disk reads: 90 MB in 3.01 seconds = 29.87 MB/sec USB 3.0 stick in a USB 3.0 port: # hdparm -t /dev/sdd /dev/sdd: Timing buffered disk reads: 716 MB in 3.01 seconds = 238.18 MB/sec # lsusb -t /: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 5000M |__ Port 5: Dev 2, If 0, Class=Mass Storage, Driver=usb-storage, 5000M <<<<< USB 3.0 stick /: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/12p, 480M |__ Port 5: Dev 2, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M |__ Port 11: Dev 4, If 0, Class=Mass Storage, Driver=usb-storage, 480M <<<<< USB 2.0 stick |__ Port 12: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/2p, 480M |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M Tested on bare metal with: kernel-4.19.6-200.fc28.x86_64 hdparm-9.56-1.fc28.x86_64 system booted from hard drive: # hdparm -t /dev/sdb /dev/sdb: Timing buffered disk reads: 76 MB in 3.04 seconds = 24.98 MB/sec # lsusb -t /: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 5000M |__ Port 5: Dev 2, If 0, Class=Hub, Driver=hub/4p, 5000M /: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/15p, 480M |__ Port 5: Dev 2, If 0, Class=Chip/SmartCard, Driver=usbfs, 12M |__ Port 6: Dev 9, If 0, Class=Mass Storage, Driver=usb-storage, 480M |__ Port 9: Dev 3, If 0, Class=Hub, Driver=hub/4p, 480M |__ Port 4: Dev 5, If 0, Class=Hub, Driver=hub/3p, 480M |__ Port 1: Dev 7, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M |__ Port 2: Dev 8, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M |__ Port 11: Dev 4, If 0, Class=Wireless, Driver=btusb, 12M |__ Port 11: Dev 4, If 1, Class=Wireless, Driver=btusb, 12M |__ Port 12: Dev 6, If 1, Class=Video, Driver=uvcvideo, 480M |__ Port 12: Dev 6, If 0, Class=Video, Driver=uvcvideo, 480M /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/3p, 480M |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/8p, 480M /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/3p, 480M |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M # lsusb -v -s 3:9 Bus 003 Device 009: ID 0930:6544 Toshiba Corp. TransMemory-Mini / Kingston DataTraveler 2.0 Stick Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 0 bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 idVendor 0x0930 Toshiba Corp. idProduct 0x6544 TransMemory-Mini / Kingston DataTraveler 2.0 Stick bcdDevice 1.00 iManufacturer 1 Kingston iProduct 2 DataTraveler 2.0 iSerial 3 C8600088616CCE406A196425 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 0x0020 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0x80 (Bus Powered) MaxPower 200mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 2 bInterfaceClass 8 Mass Storage bInterfaceSubClass 6 SCSI bInterfaceProtocol 80 Bulk-Only iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0200 1x 512 bytes bInterval 255 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x02 EP 2 OUT bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0200 1x 512 bytes bInterval 255 Device Qualifier (for other device speed): bLength 10 bDescriptorType 6 bcdUSB 2.00 bDeviceClass 0 bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 bNumConfigurations 1 can't get debug descriptor: Resource temporarily unavailable Device Status: 0x0000 (Bus Powered) system booted from the stick: # lsusb -t /: Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 5000M |__ Port 5: Dev 2, If 0, Class=Hub, Driver=hub/4p, 5000M /: Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/15p, 480M |__ Port 5: Dev 2, If 0, Class=Chip/SmartCard, Driver=usbfs, 12M |__ Port 6: Dev 3, If 0, Class=Mass Storage, Driver=usb-storage, 480M |__ Port 9: Dev 4, If 0, Class=Hub, Driver=hub/4p, 480M |__ Port 4: Dev 6, If 0, Class=Hub, Driver=hub/3p, 480M |__ Port 1: Dev 8, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M |__ Port 2: Dev 9, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M |__ Port 11: Dev 5, If 0, Class=Wireless, Driver=btusb, 12M |__ Port 11: Dev 5, If 1, Class=Wireless, Driver=btusb, 12M |__ Port 12: Dev 7, If 1, Class=Video, Driver=uvcvideo, 480M |__ Port 12: Dev 7, If 0, Class=Video, Driver=uvcvideo, 480M /: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/3p, 480M |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/8p, 480M /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/3p, 480M |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M # lsusb -v -s 3:3 Bus 003 Device 003: ID 0930:6544 Toshiba Corp. TransMemory-Mini / Kingston DataTraveler 2.0 Stick Device Descriptor: bLength 18 bDescriptorType 1 bcdUSB 2.00 bDeviceClass 0 bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 idVendor 0x0930 Toshiba Corp. idProduct 0x6544 TransMemory-Mini / Kingston DataTraveler 2.0 Stick bcdDevice 1.00 iManufacturer 1 Kingston iProduct 2 DataTraveler 2.0 iSerial 3 C8600088616CCE406A196425 bNumConfigurations 1 Configuration Descriptor: bLength 9 bDescriptorType 2 wTotalLength 0x0020 bNumInterfaces 1 bConfigurationValue 1 iConfiguration 0 bmAttributes 0x80 (Bus Powered) MaxPower 200mA Interface Descriptor: bLength 9 bDescriptorType 4 bInterfaceNumber 0 bAlternateSetting 0 bNumEndpoints 2 bInterfaceClass 8 Mass Storage bInterfaceSubClass 6 SCSI bInterfaceProtocol 80 Bulk-Only iInterface 0 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x81 EP 1 IN bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0200 1x 512 bytes bInterval 255 Endpoint Descriptor: bLength 7 bDescriptorType 5 bEndpointAddress 0x02 EP 2 OUT bmAttributes 2 Transfer Type Bulk Synch Type None Usage Type Data wMaxPacketSize 0x0200 1x 512 bytes bInterval 255 Device Qualifier (for other device speed): bLength 10 bDescriptorType 6 bcdUSB 2.00 bDeviceClass 0 bDeviceSubClass 0 bDeviceProtocol 0 bMaxPacketSize0 64 bNumConfigurations 1 can't get debug descriptor: Resource temporarily unavailable Device Status: 0x0000 (Bus Powered) > ... the stick has only 8 GB, ... > ... Kingston DataTraveler 2.0 Stick > bcdUSB 2.00 That is a slow device because it is USB 2.0 and because the low-capacity sticks tend to be slower by design -- based on looking at specs. For some devices, vendors don't specify speeds or are vague about them. Those are the devices to avoid for Linux applications. I suggest that you look for a USB 3.0/3.1 stick with ~64 GB capacity. This is what I used for the USB 3.0 test in Comment 3: Kingston DataTraveler Elite G2 64 GB (USB 3.1) > ... so it can be all cached ... IIUC, you *installed* to the device, so Linux doesn't cache the entire disk image. In contrast, a live image is cached in memory. Have you tried writing a live image to the USB stick? Fedora-KDE-Live-x86_64-29-1.2.iso https://spins.fedoraproject.org/kde/download/index.html The recommended tool is Fedora Media Writer: https://fedoramagazine.org/make-fedora-usb-stick/ # dnf install mediawriter # dnf info mediawriter ... Description : A tool to write images of Fedora media to portable drives : like flash drives or memory cards. (In reply to Steve from comment #3) ... > # hdparm -t /dev/sdc ... BTW, hdparm only does reads, but writes are much slower than reads, so a realistic benchmark should do both. A web search for "linux disk io benchmark" found "fio" and "bonnie++", which are available as Fedora packages. The same web search found various articles on the subject. "gnome-disks" is a graphical application that can do benchmarking. The package is "gnome-disk-utility". > ... there's constant iowait.
Does the log show any errors?
$ journalctl -b
*********** MASS BUG UPDATE ************** We apologize for the inconvenience. There are a large number of bugs to go through and several of them have gone stale. Due to this, we are doing a mass bug update across all of the Fedora 29 kernel bugs. Fedora 29 has now been rebased to 4.20.5-200.fc29. Please test this kernel update (or newer) and let us know if you issue has been resolved or if it is still present with the newer kernel. If you experience different issues, please open a new bug report for those. *********** MASS BUG UPDATE ************** This bug is being closed with INSUFFICIENT_DATA as there has not been a response in 3 weeks. If you are still experiencing this issue, please reopen and attach the relevant data from the latest kernel you are running and any data that might have been requested previously. |