LUG Community Blogs

Debian Bits: Work on Debian for mobile devices continues

Planet HantsLUG - Thu, 17/08/2017 - 14:39

Work on Debian for mobile devices, i.e. telephones, tablets, and handheld computers, continues. During the recent DebConf17 in Montréal, Canada, more than 50 people had a meeting to reconsider opportunities and challenges for Debian on mobile devices.

A number of devices were shown at DebConf:

  • PocketCHIP: A very small handheld computer with keyboard, Wi-Fi, USB, and Bluetooth, running Debian 8 (Jessie) or 9 (Stretch).
  • Pyra: A modular handheld computer with a touchscreen, gaming controls, Wi-Fi, keyboard, multiple USB ports and SD card slots, and an optional modem for either Europe or the USA. It will come preinstalled with Debian.
  • Samsung Galaxy S Relay 4G: An Android smartphone featuring a physical keyboard, which can already run portions of Debian userspace on the Android kernel. Kernel upstreaming is on the way.
  • ZeroPhone: An open-source smartphone based on Raspberry Pi Zero, with a small screen, classic telephone keypad and hardware switches for telephony, Wi-Fi, and the microphone. It is running Debian-based Raspbian OS.

The photo (click to enlarge) shows all four devices, together with a Nokia N900, which was the first Linux-based smartphone by Nokia, running Debian-based Maemo and a completely unrelated Gnuk cryptographic token, which just sneaked into the setting.

If you like to participate, please

Categories: LUG Community Blogs

Debian Bits: Debian turns 24!

Planet HantsLUG - Wed, 16/08/2017 - 16:50

Today is Debian's 24th anniversary. If you are close to any of the cities celebrating Debian Day 2017, you're very welcome to join the party!

If not, there's still time for you to organize a little celebration or contribution to Debian. For example, spread the word about Debian Day with this nice piece of artwork created by Debian Developer Daniel Lenharo de Souza and Valessio Brito, taking inspiration from the desktop themes Lines and softWaves by Juliette Belin:

If you also like graphics design, or design in general, have a look at https://wiki.debian.org/Design and join the team! Or you can visit the general list of Debian Teams for many other opportunities to participate in Debian development.

Thanks to everybody who has contributed to develop our beloved operating system in these 24 years, and happy birthday Debian!

Categories: LUG Community Blogs

Debian Bits: DebConf17 closes in Montreal and DebConf18 dates announced

Planet HantsLUG - Sat, 12/08/2017 - 22:59

Today, Saturday 12 August 2017, the annual Debian Developers and Contributors Conference came to a close. With over 405 people attending from all over the world, and 169 events including 89 talks, 61 discussion sessions or BoFs, 6 workshops and 13 other activities, DebConf17 has been hailed as a success.

Highlights included DebCamp with 117 participants, the Open Day,
where events of interest to a broader audience were offered, talks from invited speakers (Deb Nicholson, Matthew Garrett and Katheryn Sutter), the traditional Bits from the DPL, lightning talks and live demos and the announcement of next year's DebConf (DebConf18 in Hsinchu, Taiwan).

The schedule has been updated every day, including 32 ad-hoc new activities, planned
by attendees during the whole conference.

For those not able to attend, talks and sessions were recorded and live streamed, and videos are being made available at the Debian meetings archive website. Many sessions also facilitated remote participation via IRC or a collaborative pad.

The DebConf17 website will remain active for archive purposes, and will continue to offer links to the presentations and videos of talks and events.

Next year, DebConf18 will be held in Hsinchu, Taiwan, from 29 July 2018 until 5 August 2018. It will be the first DebConf held in Asia. For the days before DebConf the local organisers will again set up DebCamp (21 July - 27 July), a session for some intense work on improving the distribution, and organise the Open Day on 28 July 2018, aimed at the general public.

DebConf is committed to a safe and welcome environment for all participants. See the DebConf Code of Conduct and the Debian Code of Conduct for more details on this.

Debian thanks the commitment of numerous sponsors to support DebConf17, particularly our Platinum Sponsors Savoir-Faire Linux, Hewlett Packard Enterprise, and Google.

About Savoir-faire Linux

Savoir-faire Linux is a Montreal-based Free/Open-Source Software company with offices in Quebec City, Toronto, Paris and Lyon. It offers Linux and Free Software integration solutions in order to provide performance, flexibility and independence for its clients. The company actively contributes to many free software projects, and provides mirrors of Debian, Ubuntu, Linux and others.

About Hewlett Packard Enterprise

Hewlett Packard Enterprise (HPE) is one of the largest computer companies in the world, providing a wide range of products and services, such as servers, storage, networking, consulting and support, software, and financial services.

HPE is also a development partner of Debian, and provides hardware for port development, Debian mirrors, and other Debian services.

About Google

Google is one of the largest technology companies in the world, providing a wide range of Internet-related services and products as online advertising technologies, search, cloud computing, software, and hardware.

Google has been supporting Debian by sponsoring DebConf since more than ten years, at gold level since DebConf12, and at platinum level for this DebConf17.

Categories: LUG Community Blogs

Steve Kemp: A day in the life of Steve

Planet HantsLUG - Sat, 12/08/2017 - 22:00

I used to think I was a programmer who did "sysadmin-stuff". Nowadays I interact with too many real programmers to believe that.

Or rather I can code/program/develop, but I'm not often as good as I could be. These days I'm getting more consistent with writing tests, and I like it when things are thoroughly planned and developed. But too often if I'm busy, or distracted, I think to myself "Hrm .. compiles? Probably done. Oops. Bug, you say?"

I was going to write about working with golang today. The go language is minimal and quite neat. I like the toolset:

  • go fmt
    • Making everything consistent.
  • go test

Instead I think today I'm going to write about something else. Since having a child a lot of my life is different. Routine becomes something that is essential, as is planning and scheduling.

So an average week-day goes something like this:

  • 6:00AM
    • Wake up (naturally).
  • 7:00AM
    • Wake up Oiva and play with him for 45 minutes.
  • 7:45AM
    • Prepare breakfast for my wife, and wake her up, then play with Oiva for another 15 minutes while she eats.
  • 8:00AM
    • Take tram to office.
  • 8:30AM
    • Make coffee, make a rough plan for the day.
  • 9:00AM
    • Work, until lunchtime which might be 1pm, 2pm, or even 3pm.
  • 5:00PM
    • Leave work, and take bus home.
    • Yes I go to work via tram, but come back via bus. There are reasons.
  • 5:40PM
    • Arrive home, and relax in peace for 20 minutes.
  • 6:00PM-7:00PM
    • Take Oiva for a walk, stop en route to relax in a hammock for 30 minutes reading a book.
  • 7:00-7:20PM
    • Feed Oiva his evening meal.
  • 7:30PM
    • Give Oiva his bath, then pass him over to my wife to put him to bed.
  • 7:30PM - 8:00pm
    • Relax
  • 8:00PM - 10:00PM
    • Deal with Oiva waking up, making noises, or being unsettled.
    • Try to spend quality time with my wife, watch TV, read a book, do some coding, etc.
  • 10:00PM ~ 11:30PM
    • Go to bed.

In short I'm responsible for Oiva from 6ish-8ish in the morning, then from 6PM-10PM (with a little break while he's put to bed.) There are some exceptions to this routine - for example I work from home on Monday/Friday afternoons, and Monday evenings he goes to his swimming classes. But most working-days are the same.

Weekends are a bit different. There I tend to take him 6AM-8AM, then 1PM-10PM with a few breaks for tea, and bed. At the moment we're starting to reach the peak-party time of year, which means weekends often involve negotiation(s) about which parent is having a party, and which parent is either leaving early, or not going out at all.

Today I have him all day, and it's awesome. He's just learned to say "Daddy" which makes any stress, angst or unpleasantness utterly worthwhile.

Categories: LUG Community Blogs

Daniel Silverstone (Kinnison): STM32 and RTFM

Planet ALUG - Sun, 06/08/2017 - 17:23

I have been working with STM32 chips on-and-off for at least eight, possibly closer to nine years. About as long as ST have been touting them around. I love the STM32, and have done much with them in C. But, as my previous two posts may have hinted, I would like to start working with Rust instead of C. To that end, I have been looking with great joy at the work which Jorge Aparicio has been doing around Cortex-M3 and Rust. I've had many comments in person at Debconf, and also several people mention on Twitter, that they're glad more people are looking at this. But before I can get too much deeper into trying to write my USB stack, I need to sort a few things from what Jorge has done as demonstration work.

Okay, this is fast, but we need Ludicrous speed

All of Jorge's examples seem to leave the system clocks in a fairly default state, excepting turning on the clocks to the peripherals needed during the initialisation phase. Sadly, if we're going to be running the USB at all, we need the clocks to run a tad faster. Since my goal is to run something moderately CPU intensive on the end of the USB too, it makes sense to try and get our STM32 running at maximum clock speed. For the one I have, that's 72MHz rather than the 8MHz it starts out with. Nine times more cycles to do computing in makes a lot of sense.

As I said above, I've been doing STM32 in C a lot for many years; and fortunately I have built systems with the exact chip that's on the blue-pill before. As such, if I rummage, I can find some old C code which does what we need...

/* Enable HSE */ RCC_HSEConfig(RCC_HSE_ON); /* Wait till HSE is ready */ HSEStartUpStatus = RCC_WaitForHSEStartUp(); if (HSEStartUpStatus == SUCCESS) { /* Enable Prefetch Buffer */ FLASH_PrefetchBufferCmd(FLASH_PrefetchBuffer_Enable); /* Flash 2 wait state */ FLASH_SetLatency(FLASH_Latency_2); /* HCLK = SYSCLK */ RCC_HCLKConfig(RCC_SYSCLK_Div1); /* PCLK2 = HCLK */ RCC_PCLK2Config(RCC_HCLK_Div1); /* PCLK1 = HCLK/2 */ RCC_PCLK1Config(RCC_HCLK_Div2); /* ADCCLK = PCLK2/6 */ RCC_ADCCLKConfig(RCC_PCLK2_Div6); /* PLLCLK = 8MHz * 9 = 72 MHz */ RCC_PLLConfig(RCC_PLLSource_HSE_Div1, RCC_PLLMul_9); /* Enable PLL */ RCC_PLLCmd(ENABLE); /* Wait till PLL is ready */ while (RCC_GetFlagStatus(RCC_FLAG_PLLRDY) == RESET) {} /* Select PLL as system clock source */ RCC_SYSCLKConfig(RCC_SYSCLKSource_PLLCLK); /* Wait till PLL is used as system clock source */ while (RCC_GetSYSCLKSource() != 0x08) {} }

This code, rather conveniently, uses an 8MHz external crystal so we can almost direct-port it to the blue-pill Rust code and see how we go. If you're used to the CMSIS libraries for STM32, then you won't completely recognise the above since it uses the pre-CMSIS core libraries to do its thing. Library code from 2008 and it's still good on today's STM32s providing they're in the right family :-)

A direct conversion to Rust, using Jorge's beautifully easy to work with crates made from svd2rust results in:

fn make_go_faster(rcc: &RCC, flash: &FLASH) { rcc.cr.modify(|_, w| w.hseon().enabled()); while !rcc.cr.read().hserdy().is_ready() {} flash.acr.modify(|_, w| w.prftbe().enabled()); flash.acr.modify(|_, w| w.latency().two()); rcc.cfgr.modify(|_, w| w .hpre().div1() .ppre2().div1() .ppre1().div2() // .adcpre().bits(8) .pllsrc().external() .pllxtpre().div1() .pllmul().mul9() ); rcc.cr.modify(|_, w| w.pllon().enabled()); while rcc.cr.read().pllrdy().is_unlocked() {} rcc.cfgr.modify(|_,w| w.sw().pll()); while !rcc.cfgr.read().sws().is_pll() {} }

Now, I've not put the comments in which were in the C code, because I'm being very lazy right now, but if you follow the two together you should be able to work it through. I don't have timeouts for the waits, and you'll notice a single comment there (I cannot set up the ADC prescaler because for some reason the SVD is missing any useful information and so the generated crate only carries an unsafe function (bits()) and I'm trying to steer clear of unsafe for now. Still, I don't need the ADC immediately, so I'm okay with this.

By using this function in the beginning of the init() function of the blinky example, I can easily demonstrate the clock is going faster since the LED blinks more quickly.

This function demonstrates just how simple it is to take bit-manipulation from the C code and turn it into (admittedly bad looking) Rust with relative ease and without any of the actual bit-twiddling. I love it.

Mess with time, and you get unexpected consequences

Sadly, when you mess with the clock tree on a microcontroller, you throw a lot of things out of whack. Not least, by adjusting the clock frequency up we end up adjusting the AHB, APB1, and APB2 clock frequencies. This has direct consequences for peripherals floating around on those busses. Fortunately Jorge thought of this and while the blue-pill crate hard-wires those frequencies to 8MHz, they are, at least, configurable in code in some sense.

If we apply the make_go_faster() function to the serial loopback example, it simply fails to work because now the bus which the USART1 peripheral is connected to (APB2) is going at a different speed from the expected power-on default of 8MHz. If you remember from the function, we did .hpre().div1() which set HCLK to 72MHz, then .ppre1().div2() which sets the APB1 bus clock to be HCLK divided by 2, and .ppre2().div1() which sets APB2 bus clock to be HCLK. This means that we'd need to alter src/lib.rs to reflect these changes in the clock frequences and in theory loopback would start working once more.

It'd be awkward to try and demonstrate all that to you since I only have a phone camera to hand, but if you own a blue-pill then you can clone Jorge's repo and have a go yourself and see that I'm not bluffing you.

With all this done, it'll be time to see if we can bring the USB peripheral in the STM32 online, and that will be the topic of my next post in this discovery series.

Categories: LUG Community Blogs

Debian Bits: DebConf17 starts today in Montreal

Planet HantsLUG - Sun, 06/08/2017 - 15:00

DebConf17, the 18th annual Debian Conference, is taking place in Montreal, Canada from August 6 to August 12, 2017.

Debian contributors from all over the world have come together at Collège Maisonneuve during the preceding week for DebCamp (focused on individual work and team sprints for in-person collaboration developing Debian), and the Open Day on August 5th (with presentations and workshops of interest to a wide audience).

Today the main conference starts with nearly 400 attendants and over 120 activities scheduled, including 45- and 20-minute talks and team meetings, workshops, a job fair, talks from invited speakers, as well as a variety of other events.

The full schedule at https://debconf17.debconf.org/schedule/ is updated every day, including activities planned ad-hoc by attendees during the whole conference.

If you want to engage remotely, you can follow the video streaming of the events happening in the three talk rooms: Buzz (the main auditorium), Rex, and Bo, or join the conversation about what is happening in the talk rooms: #debconf17-buzz, #debconf17-rex and #debconf17-bo, and the BoF (discussions) rooms: #debconf17-potato and #debconf17-woody (all those channels in the OFTC IRC network).

DebConf is committed to a safe and welcome environment for all participants. See the DebConf Code of Conduct and the Debian Code of Conduct for more details on this.

Debian thanks the commitment of numerous sponsors to support DebConf17, particularly our Platinum Sponsors Savoir-Faire Linux, Hewlett Packard Enterprise, and Google.

Categories: LUG Community Blogs

Debian Bits: Google Platinum Sponsor of DebConf17

Planet HantsLUG - Sat, 05/08/2017 - 22:30

We are very pleased to announce that Google has committed support to DebConf17 as a Platinum sponsor.

Google is one of the largest technology companies in the world, providing a wide range of Internet-related services and products as online advertising technologies, search, cloud computing, software, and hardware.

Google has been supporting Debian by sponsoring DebConf since more than ten years, and at gold level since DebConf12.

With this additional commitment as Platinum Sponsor for DebConf17, Google contributes to make possible our annual conference, and directly supports the progress of Debian and Free Software helping to strengthen the community that continues to collaborate on Debian projects throughout the rest of the year.

Thank you very much Google, for your support of DebConf17!

DebConf17 is starting!

Many Debian contributors are already taking advantage of DebCamp and the Open Day to work individually or in groups developing and improving Debian. DebConf17 will officially start on August 6, 2017. Visit the DebConf17 website at https://debconf17.debconf.org to know the schedule, live streaming and other details.

Categories: LUG Community Blogs

Daniel Silverstone (Kinnison): USB Device Stacks, on RTFM, part 2

Planet ALUG - Sat, 05/08/2017 - 17:08

Previously we talked about all the different kinds of descriptors which USB devices use to communicate their capability. This is important stuff because to write any useful USB device firmware we need to be able to determine how to populate our descriptors. However, having that data on the device is entirely worthless without an understanding of how it gets from the device to the host so that it can be acted upon. To understand that, let's look at the USB wire protocol.

Note, I'll again be talking mostly about USB2.0 low- and full-speed. I believe that high speed is approximately the same but with faster wires, except not quite that simple.

Down to the wire

I don't intend to talk about the actual electrical signalling, though it's not un-reasonable for you to know that USB is a pair of wires forming a differentially signalled bidirectional serial communications link. The host is responsible for managing all the framing and timing on the link, and for formatting the communications into packets.

There are a number of packet types which can appear on the USB link:

Packet type Purpose Token Packet When the host wishes to send a message to the Control endpoint to configure the device, read data IN, or write data OUT, it uses this to start the transaction. Data(0/1) Packet Following a Setup, In, or Out token, a Data packet is a transfer of data (in either direction). The 0 and 1 alternate to provide a measure of confidence against lost packets. Handshake Packet Following a data packet of some kind, the other end may ACK the packet (all was well), NAK the packet (report that the device cannot, temporarily, send/receive data, or that an interrupt endpoint isn't triggered), or STALL the bus in which case the host needs to intervene. Start of Frame Every 1ms (full-speed) the host will send a SOF packet which carries a frame number. This can be used to help keep time on very simple devices. It also divides the bus into frames within which bandwidth is allocated.

As an example, when the host wishes to perform a control transfer, the following packets are transacted in turn:

  1. Setup Token - The host addresses the device and endpoint (OUT0)
  2. Data0 Packet - The host transmits a GET_DESCRIPTOR for the device descriptor
  3. Ack Packet - The device acknowledges receipt of the request

This marks the end of the first transaction. The device decodes the GET_DESCRIPTOR request and prepares the device descriptor for transmission. The transmission occurs as the next transaction on the bus. In this example, we're assuming 8 byte maximum transmission sizes, for illustrative purposes.

  1. In Token - The host addresses the device and endpoint (IN0)
  2. Data1 Packet - The device transmits the first 8 bytes of the descriptor
  3. Ack Packet - The host acknowledges the data packet
  4. In Token - The host addresses the device and endpoint (IN0)
  5. Data0 Packet - The device transmits the remaining 4 bytes of the descriptor (padded)
  6. Ack Packet - The host acknowledges the data packet

The second transaction is now complete, and the host has all the data it needs to proceed. Finally a status transaction occurs in which:

  1. Out Token - The host addresses the device and endpoint (OUT0)
  2. Data1 Packet - The host transmits a 0 byte data packet to indicate successful completion
  3. Ack Packet - The device acknowledges the completion, indicating its own satisfaction

And thus ends the full control transaction in which the host retrieves the device descriptor.

From a high level, we need only consider the activity which occurs at the point of the acknowledgement packets. In the above example:

  1. On the first ACK the device prepares IN0 to transmit the descriptor, readying whatever low level device stack there is with a pointer to the descriptor and its length in bytes.
  2. On the second ACK the low levels are still thinking.
  3. On the third ACK the transmission from IN0 is complete and the endpoint no longer expects to transfer data.
  4. On the fourth ACK the control transaction is entirely complete.
Thinking at the low levels of the control interface

Before we can build a high level USB stack, we need to consider the activity which might occur at the lower levels. At the low levels, particularly of the device control interface, work has to be done at each and every packet. The hardware likely deals with the token packet for us, leaving the data packets for us to process, and the resultant handshake packets will be likely handled by the hardware in response to our processing the data packets.

Since every control transaction is initiated by a setup token, let's look at the setup requests which can come our way...

Setup Packet (Data) Format Field Name Byte start Byte length Encoding Meaning bmRequestType 0 1 Bitmap Describes the kind of request, and the target of it. See below. bRequest 1 1 Code The request code itself, meanings of the rest of the fields vary by bRequest wValue 2 2 Number A 16 bit value whose meaning varies by request type wIndex 4 2 Number A 16 bit value whose meaning varies by request type but typically encodes an interface number or endpoint. wLength 6 2 Number A 16 bit value indicating the length of the transfer to come.

Since bRequest is essentially a switch against which multiple kinds of setup packet are selected between, here's the meanings of a few...

GET_DESCRIPTOR (Device) setup packet Field Name Value Meaning bmRequestType 0x08 Data direction is IN (from device to host), recipient is the device bRequest 0x06 GET_DESCRIPTOR (in this instance, the device descriptor is requested) wValue 0x0001 This means the device descriptor wIndex 0x0000 Irrelevant, there's only 1 device descriptor anyway wLength 12 This is the length of a device descriptor (12 bytes) SET_ADDRESS to set a device's USB address Field Name Value Meaning bmRequestType 0x00 Data direction is OUT (from host to device), recipient is the device bRequest 0x05 SET_ADDRESS (Set the device's USB address) wValue 0x00nn The address for the device to adopt (max 127) wIndex 0x0000 Irrelevant for address setting wLength 0 There's no data transfer expected for this setup operation

Most hardware blocks will implement an interrupt at the point that the Data packet following the Setup packet has been receive. This is typically called receiving a 'Setup' packet and then it's up to the device stack low levels to determine what to do and dispatch a handler. Otherwise an interrupt will fire for the IN or OUT tokens and if the endpoint is zero, the low level stack will handle it once more.

One final thing worth noting about SET_ADDRESS is that it doesn't take effect until the completion of the zero-length "status" transaction following the setup transaction. As such, the status request from the host will still be sent to address zero (the default for new devices).

A very basic early "packet trace"

This is an example, and is not guaranteed to be the packet sequence in all cases. It's a good indication of the relative complexity involved in getting a fresh USB device onto the bus though...

When a device first attaches to the bus, the bus is in RESET state and so the first event a device sees is a RESET which causes it to set its address to zero, clear any endpoints, clear the configuration, and become ready for control transfers. Shortly after this, the device will become suspended.

Next, the host kicks in and sends a port reset of around 30ms. After this, the host is ready to interrogate the device.

The host sends a GET_DESCRIPTOR to the device, whose address at this point is zero. Using the information it receives from this, it can set up the host-side memory buffers since the device descriptor contains the maximum transfer size which the device supports.

The host is now ready to actually 'address' the device, and so it sends another reset to the device, again around 30ms in length.

The host sends a SET_ADDRESS control request to the device, telling it that its new address is nn. Once the acknowledgement has been sent from the host for the zero-data status update from the device, the device sets its internal address to the value supplied in the request. From now on, the device shall respond only to requests to nn rather than to zero.

At this point, the host will begin interrogating further descriptors, looking at the configuration descriptors and the strings, to build its host-side representation of the device. These will be GET_DESCRIPTOR and GET_STRING_DESCRIPTOR requests and may continue for some time.

Once the host has satisfied itself that it knows everything it needs to about the device, it will issue a SET_CONFIGURATION request which basically starts everything up in the device. Once the configuration is set, interrupt endpoints will be polled, bulk traffic will be transferred, Isochronous streams begin to run, etc.

Okay, but how do we make this concrete?

So far, everything we've spoken about has been fairly abstract, or at least "soft". But to transfer data over USB does require some hardware. (Okay, okay, we could do it all virtualised, but there's no fun in that). The hardware I'm going to be using for the duration of this series is the STM32 on the blue-pill development board. This is a very simple development board which does (in theory at least) support USB device mode.

If we view the schematic for the blue-pill, we can see a very "lightweight" USB interface which has a pullup resistor for D+. This is the way that a device signals to the host that it is present, and that it wants to speak at full-speed. If the pullup were on D- then it would be a low-speed device. High speed devices need a little more complexity which I'm not going to go into for today.

The USB lines connect to pins PA11 and PA12 which are the USB pins on the STM32 on the board. Since USB is quite finicky, the STM32 doesn't let you remap that function elsewhere, so this is all looking quite good for us so far.

The specific STM32 on the blue-pill is the STM32F103C8T6. By viewing its product page on ST's website we can find the reference manual for the part. Jumping to section 23 we learn that this STM32 supports full-speed USB2.0 which is convenient given the past article and a half. We also learn it supports up to eight endpoints active at any one time, and offers double-buffering for our bulk and isochronous transfers. It has some internal memory for packet buffering, so it won't use our RAM bandwidth while performing transfers, which is lovely.

I'm not going to distill the rest of that section here, because there's a large amount of data which explains how the USB macrocell operates. However useful things to note are:

  • How IN OUT and SETUP transfers work.
  • How the endpoint buffer memory is configured.
  • That all bus-powered devices MUST respond to suspend/resume properly
  • That the hardware will prioritise endpoint interrupts for us so that we only need deal with the most pressing item at any given time.
  • There is an 'Enable Function' bit in the address register which must be set or we won't see any transactions at all.
  • How the endpoint registers signal events to the device firmware.

Next time, we're going to begin the process of writing a very hacky setup routine to try and initialise the USB device macrocell so that we can see incoming transactions through the ITM. It should be quite exciting, but given how complex this will be for me to learn, it might be a little while before it comes through.

Categories: LUG Community Blogs

Debian Bits: DebConf17 Open Day

Planet HantsLUG - Sat, 05/08/2017 - 15:00

Today, the day preceeding the official start of the annual Debian Conference, is the Open Day at DebConf17, at Collège Maisonneuve in Montreal (Canada).

This day is open to the public with events of interest to a wide audience.

The schedule of today's events include, among others:

  • A Newbie's Newbie Guide to Debian
  • Ask Anything About Debian
  • Debian Packaging 101
  • Debian InstallFest
  • Presentations or workshops related to free software projects and local organizations.

Everyone is welcome to attend! It is a great possibility for interested users to meet our community and for Debian to widen our community.

See the full schedule for today's events at https://debconf17.debconf.org/schedule/open-day/.

If you want to engage remotely, you can watch the video streaming of the Open Day events happening in the "Rex" room, or join the conversation in the channels #debconf17-rex, #debconf17-potato and #debconf17-woody in the OFTC IRC network.

DebConf is committed to a safe and welcome environment for all participants. See the DebConf Code of Conduct and the Debian Code of Conduct for more details on this.

Debian thanks the commitment of numerous sponsors to support DebConf17, particularly our Platinum Sponsors Savoir-Faire Linux, Hewlett Packard Enterprise, and Google.

Categories: LUG Community Blogs

Daniel Silverstone (Kinnison): USB Device Stacks, on RTFM

Planet ALUG - Fri, 04/08/2017 - 17:05

I have been spending time with Jorge Aparicio's RTFM for Cortex M3 framework for writing Rust to target Cortex-M3 devices from Arm (and particularly the STM32F103 from ST Microelectronics). Jorge's work in this area has been of interest to me ever since I discovered him working on this stuff a while ago. I am very tempted by the idea of being able to implement code for the STM32 with the guarantees of Rust and the language features which I have come to love such as the trait system.

I have been thinking to myself that, while I admire and appreciate the work done on the GNUK, I would like to, personally, have a go at implementing some kind of security token on an STM32 as a USB device. And with the advent of the RTFM for M3 work, and Jorge's magical tooling to make it easier to access and control the registers on an M3 microcontroller, I figured it'd be super-nice to do this in Rust, with all the advantages that entails in terms of isolating unsafe behaviour and generally having the potential to be more easily verified as not misbehaving.

To do this though, means that I need a USB device stack which will work in the RTFM framework. Sadly it seems that, thus-far, only Jorge has been working on drivers for any of the M3 devices his framework supports. And one person can only do so much. So, in my infinite madness, I decided I should investigate the complexity of writing a USB device stack in Rust for the RTFM/M3 framework. (Why I thought this was a good idea is lost to the mists of late night Googling, but hey, it might make a good talk at the next conference I go to). As such, this blog post, and further ones along these lines, will serve as a partial tour of what I'm up to, and a partial aide-memoir for me about learning USB. If I get something horribly wrong, please DO contact me to correct me, otherwise I'll just continue to be wrong. If I've simplified something but it's still strictly correct, just let me know if it's an oversimplification since in a lot of cases there's no point in me putting the full details into a blog posting. I will mostly be considering USB2.0 protocol details but only really for low and full speed devices. (The hardware I'm targetting does low-speed and full-speed, but not high-speed. Though some similar HW does high-speed too, I don't have any to hand right now)

A brief introduction to USB

In order to go much further, I needed a grounding in USB. It's a multi-layer protocol as you might expect, though we can probably ignore the actual electrical layer since any device we might hope to support will have to have a hardware block to deal with that. We will however need to consider the packet layer (since that will inform how the hardware block is implemented and thus its interface) and then the higher level protocols on top.

USB is a deliberately asymmetric protocol. Devices are meant to be significantly easier to implement, both in terms of hardware and software, as compared with hosts. As such, despite some STM32s having OTG ports, I have no intention of supporting host mode at this time.

USB is arranged into a set of busses which are, at least in the USB1.1 case, broadcast domains. As such, each device has an address assigned to it by the host during an early phase called 'configuration'. Once the address is assigned, the device is expected to only ever respond to messages addressed to it. Note that since everything is asymmetric in USB, the device can't send messages on its own, but has to be asked for them by the host, and as such the addressing is always from host toward device.

USB devices then expose a number of endpoints through which communication can flow IN to the host or OUT to the device. Endpoints are not bidirectional, but the in and out endpoints do overlap in numbering. There is a special pair of endpoints, IN0 and OUT0 which, between them, form what I will call the device control endpoints. The device control endpoints are important since every USB device MUST implement them, and there are a number of well defined messages which pass over them to control the USB device. In theory a bare minimum USB device would implement only the device control endpoints.

Configurations, and Classes, and Interfaces, Oh My!

In order for the host to understand what the USB device is, and what it is capable of, part of the device control endpoints' responsibility is to provide a set of descriptors which describe the device. These descriptors form a heirarchy and are then glommed together into a big lump of data which the host can download from the device in order to decide what it is and how to use it. Because of various historical reasons, where a multi-byte value is used, they are defined to be little-endian, though there are some BCD fields. Descriptors always start with a length byte and a type byte because that way the host can parse/skip as necessary, with ease.

The first descriptor is the device descriptor, is a big one, and looks like this:

Device Descriptor Field Name Byte start Byte length Encoding Meaning bLength 0 1 Number Size of the descriptor in bytes (18) bDescriptorType 1 1 Constant Device Descriptor (0x01) bcdUSB 2 2 BCD USB spec version compiled with bDeviceClass 4 1 Class Code, assigned by USB org (0 means "Look at interface descriptors", common value is 2 for CDC) bDeviceSubClass 5 1 SubClass Code, assigned by USB org (usually 0) bDeviceProtocol 6 1 Protocol Code, assigned by USB org (usually 0) bMaxPacketSize 7 1 Number Max packet size for IN0/OUT0 (Valid are 8, 16, 32, 64) idVendor 8 2 ID 16bit Vendor ID (Assigned by USB org) idProduct 10 2 ID 16bit Product ID (Assigned by manufacturer) bcdDevice 12 2 BCD Device version number (same encoding as bcdUSB) iManufacturer 14 1 Index String index of manufacturer name (0 if unavailable) iProduct 15 1 Index String index of product name (0 if unavailable) iSerialNumber 16 1 Index String index of device serial number (0 if unavailable) bNumConfigurations 17 1 Number Count of configurations the device has.

This looks quite complex, but breaks down into a relatively simple two halves. The first eight bytes carries everything necessary for the host to be able to configure itself and the device control endpoints properly in order to communicate effectively. Since eight bytes is the bare minimum a device must be able to transmit in one go, the host can guarantee to get those, and they tell it what kind of device it is, what USB protocol it supports, and what the maximum transfer size is for its device control endpoints.

The encoding of the bcdUSB and bcdDevice fields is interesting too. It is of the form 0xMMmm where MM is the major number, mm the minor. So USB2.0 is encoded as 0x0200, USB1.1 as 0x0110 etc. If the device version is 17.36 then that'd be 0x1736.

Other fields of note are bDeviceClass which can be 0 meaning that interfaces will specify their classes, and idVendor/idProduct which between them form the primary way for the specific USB device to be identified. The Index fields are indices into a string table which we'll look at later. For now it's enough to know that wherever a string index is needed, 0 can be provided to mean "no string here".

The last field is bNumConfigurations and this indicates the number of ways in which this device might function. A USB device can provide any number of these configurations, though typically only one is provided. If the host wishes to switch between configurations then it will have to effectively entirely quiesce and reset the device.

The next kind of descriptor is the configuration descriptor. This one is much shorter, but starts with the same two fields:

Configuration Descriptor Field Name Byte start Byte length Encoding Meaning bLength 0 1 Number Size of the descriptor in bytes (9) bDescriptorType 1 1 Constant Configuration Descriptor (0x02) wTotalLength 2 2 Number Size of the configuration in bytes, in total bNumInterfaces 4 1 Number The number of interfaces in this configuration bConfigurationValue 5 1 Number The value to use to select this configuration iConfiguration 6 1 Index The name of this configuration (0 for unavailable) bmAttributes 7 1 Bitmap Attributes field (see below) bMaxPower 8 1 Number Maximum bus power this configuration will draw (in 2mA increments)

An important field to consider here is the bmAttributes field which tells the host some useful information. Bit 7 must be set, bit 6 is set if the device would be self-powered in this configuration, bit 5 indicates that the device would like to be able to wake the host from sleep mode, and bits 4 to 0 must be unset.

The bMaxPower field is interesting because it encodes the power draw of the device (when set to this configuration). USB allows for up to 100mA of draw per device when it isn't yet configured, and up to 500mA when configured. The value may be used to decide if it's sensible to configure a device if the host is in a low power situation. Typically this field will be set to 50 to indicate the nominal 100mA is fine, or 250 to request the full 500mA.

Finally, the wTotalLength field is interesting because it tells the host the total length of this configuration, including all the interface and endpoint descriptors which make it up. With this field, the host can allocate enough RAM to fetch the entire configuration descriptor block at once, simplifying matters dramatically for it.

Each configuration has one or more interfaces. The interfaces group some endpoints together into a logical function. For example a configuration for a multifunction scanner/fax/printer might have an interface for the scanner function, one for the fax, and one for the printer. Endpoints are not shared among interfaces, so when building this table, be careful.

Next, logically, come the interface descriptors:

Interface Descriptor Field Name Byte start Byte length Encoding Meaning bLength 0 1 Number Size of the descriptor in bytes (9) bDescriptorType 1 1 Constant Interface Descriptor (0x04) bInterfaceNumber 2 1 Number The number of the interface bAlternateSetting 3 1 Number The interface alternate index bNumEndpoints 4 1 Number The number of endpoints in this interface bInterfaceClass 5 1 Class The interface class (USB Org defined) bInterfaceSubClass 6 1 SubClass The interface subclass (USB Org defined) bInterfaceProtocol 7 1 Protocol The interface protocol (USB Org defined) iInterface 8 1 Index The name of the interface (or 0 if not provided)

The important values here are the class/subclass/protocol fields which provide a lot of information to the host about what the interface is. If the class is a USB Org defined one (e.g. 0x02 for Communications Device Class) then the host may already have drivers designed to work with the interface meaning that the device manufacturer doesn't have to provide host drivers.

The bInterfaceNumber is used by the host to indicate this interface when sending messages, and the bAlternateSetting is a way to vary interfaces. Two interfaces with the came bInterfaceNumber but different bAlternateSettings can be switched between (like configurations, but) without resetting the device.

Hopefully the rest of this descriptor is self-evident by now.

The next descriptor kind is endpoint descriptors:

Endpoint Descriptor Field Name Byte start Byte length Encoding Meaning bLength 0 1 Number Size of the descriptor in bytes (7) bDescriptorType 1 1 Constant Endpoint Descriptor (0x05) bEndpointAddress 2 1 Endpoint Endpoint address (see below) bmAttributes 3 1 Bitmap Endpoint attributes (see below) wMaxPacketSize 4 2 Number Maximum packet size this endpoint can send/receive bInterval 6 1 Number Interval for polling endpoint (in frames)

The bEndpointAddress is a 4 bit endpoint number (so there're 16 endpoint indices) and a bit to indicate IN vs. OUT. Bit 7 is the direction marker and bits 3 to 0 are the endpoint number. This means there are 32 endpoints in total, 16 in each direction, 2 of which are reserved (IN0 and OUT0) giving 30 endpoints available for interfaces to use in any given configuration. The bmAttributes bitmap covers the transfer type of the endpoint (more below), and the bInterval is an interval measured in frames (1ms for low or full speed, 125µs in high speed). bInterval is only valid for some endpoint types.

The final descriptor kind is for the strings which we've seen indices for throughout the above. String descriptors have two forms:

String Descriptor (index zero) Field Name Byte start Byte length Encoding Meaning bLength 0 1 Number Size of the descriptor in bytes (variable) bDescriptorType 1 1 Constant String Descriptor (0x03) wLangID[0] 2 2 Number Language code zero (e.g. 0x0409 for en_US) wLangID[n] 4.. 2 Number Language code n ...

This form (for descriptor 0) is that of a series of language IDs supported by the device. The device may support any number of languages. When the host requests a string descriptor, it will supply both the index of the string and also the language id it desires (from the list available in string descriptor zero). The host can tell how many language IDs are available simply by dividing bLength by 2 and subtracting 1 for the two header bytes.

And for string descriptors of an index greater than zero:

String Descriptor (index greater than zero) Field Name Byte start Byte length Encoding Meaning bLength 0 1 Number Size of the descriptor in bytes (variable) bDescriptorType 1 1 Constant String Descriptor (0x03) bString 2.. .. Unicode The string, in "unicode" format

This second form of the string descriptor is simply the the string is in what the USB spec calls 'Unicode' format which is, as of 2005, defined to be UTF16-LE without a BOM or terminator.

Since string descriptors are of a variable length, the host must request strings in two transactions. First a request for 2 bytes is sent, retrieving the bLength and bDescriptorType fields which can be checked and memory allocated. Then a request for bLength bytes can be sent to retrieve the entire string descriptor.

Putting that all together

Phew, this is getting to be quite a long posting, so I'm going to leave this here and in my next post I'll talk about how the host and device pass packets to get all that information to the host, and how it gets used.

Categories: LUG Community Blogs

Daniel Silverstone (Kinnison): Gitano 1.1

Planet ALUG - Thu, 03/08/2017 - 17:34

Today marks the release of Gitano 1.1. Richard(s) and I have spent quite a lot of time and effort on this release, and there's plenty of good stuff in it. We also released new versions of Lace, Supple, Luxio, and Gall to go alongside it, with bugfixes and improvements.

At this point, I intend to take a short break from Gitano to investigate some Rust-on-STM32 stuff, and then perhaps do some NetSurf work too.

Categories: LUG Community Blogs

Andy Smith: A slightly more realistic look at lvmcache

Planet HantsLUG - Thu, 03/08/2017 - 14:59
Recap And then…

I decided to perform some slightly more realistic benchmarks against lvmcache.

The problem with the initial benchmark was that it only covered 4GiB of data with a 4GiB cache device. Naturally once lvmcache was working correctly its performance was awesome – the entire dataset was in the cache. But clearly if you have enough fast block device available to fit all your data then you don’t need to cache it at all and may as well just use the fast device directly.

I decided to perform some fio tests with varying data sizes, some of which were larger than the cache device.

Test methodology

Once again I used a Zipf distribution with a factor of 1.2, which should have caused about 90% of the hits to come from just 10% of the data. I kept the cache device at 4GiB but varied the data size. The following data sizes were tested:

  • 1GiB
  • 2GiB
  • 4GiB
  • 8GiB
  • 16GiB
  • 32GiB
  • 48GiB

With the 48GiB test I expected to see lvmcache struggling, as the hot 10% (~4.8GiB) would no longer fit within the 4GiB cache device.

A similar fio job spec to those from the earlier articles was used:

[cachesize-1g] size=512m ioengine=libaio direct=1 iodepth=8 numjobs=2 readwrite=randread random_distribution=zipf:1.2 bs=4k unlink=1 runtime=30m time_based=1 per_job_logs=1 log_avg_msec=500 write_iops_log=/var/tmp/fio-${FIOTEST}

…the only difference being that several different job files were used each with a different size= directive. Note that as there are two jobs, the size= is half the desired total data size: each job lays out a data file of the specified size.

For each data size I took care to fill the cache with data first before doing a test run, as unreproducible performance is still seen against a completely empty cache device. This produced IOPS logs and a completion latency histogram. Test were also run against SSD and HDD to provide baseline figures.

Results IOPS graphs All-in-one

Immediately we can see that for data sizes 4GiB and below performance converges quite quickly to near-SSD levels. That is very much what we would expect when the cache device is 4GiB, so big enough to completely cache everything.

Let’s just have a look at the lower-performing configurations.

Low-end performers

For 8, 16 and 32GiB data sizes performance clearly gets progressively worse, but it is still much better than baseline HDD. The 10% of hot data still fits within the cache device, so plenty of acceleration is still happening.

For the 48GiB data size it is a little bit of a different story. Performance is still better (on average) than baseline HDD, but there are periodic dips back down to roughly HDD figures. This is because not all of the 10% hot data fits into the cache device any more. Cache misses cause reads from HDD and consequently end up with HDD levels of performance for those reads.

The results no longer look quite so impressive, with even the 8GiB data set achieving only a few thousand IOPS on average. Are things as bad as they seem? Well no, I don’t think they are, and to see why we will have to look at the completion latency histograms.

Completion latency histograms

The above graphs are generated by fitting a Bezier curve to a scatter of data points each of which represents a 500ms average of IOPS achieved. The problem there is the word average.

It’s important to understand what effect averaging the figures gives. We’ve already seen that HDDs are really slow. Even if only a few percent of IOs end up missing cache and going to HDD, the massive latency of those requests will pull the average for the whole 500ms window way down.

Presumably we have a cache because we suspect we have hot spots of data, and we’ve been trying to evaluate that by doing most of the reads from only 10% of the data. Do we care what the average performance is then? Well it’s a useful metric but it’s not going to say much about the performance of reads from the hot data.

The histogram of completion latencies can be more useful. This shows how long it took between issuing the IO and completing the read for a certain percentage of issued IOs. Below I have focused on the 50% to 99% latency buckets, with the times for each bucket averaged between the two jobs. In the interests of being able to see anything at all I’ve had to double the height of the graph and still cut off the y axis for the three worst performers.

A couple of observations:

  • Somewhere between 70% and 80% of IOs complete with a latency that’s so close to SSD performance as to be near-indistinguishable, no matter what the data size. So what I think I am proving is that:

    you can cache a 48GiB slow backing device with 4GiB of fast SSD and if you have 10% hot data then you can expect it to be served up at near-SSD latencies 70%–80% of the time. If your hot spots are larger (not so hot) then you won’t achieve that. If your fast device is larger than 1/12th the backing device then you should do better than 70%–80%.

  • If the cache were perfect then we should expect the 90th percentile to be near SSD performance even for the 32GiB data set, as the 10% hot spot of ~3.2GiB fits inside the 4GiB cache. For whatever reason this is not achieved, but for that data size the 90th percentile latency is still about half that of HDD.
  • When the backing device is many times larger (32GiB+) than the cache device, the 99th percentile latencies can be slightly worse than for baseline HDD.

    I hesitate to suggest there is a problem here as there are going to be very few samples in the top 1%, so it could just be showing close to HDD performance.

Conclusion

Assuming you are okay with using a 4.12..x kernel, and assuming you are already comfortable using LVM, then at the moment it looks fairly harmless to deploy lvmcache.

Getting a decent performance boost out of it though will require you to check that your data really does have hot spots and size your cache appropriately.

Measuring your existing workload with something like blktrace is probably advisable, and these days you can feed the output of blktrace back into fio to see what performance might be like in a difference configuration.

Full test output

You probably want to stop reading here unless the complete output of all the fio runs is of interest to you.

Baseline SSD $ cd /srv/ssd/fio && FIOTEST=ssd-1g fio ~/cachesize-1g.fio cachesize-1g: (g=0): rw=randread, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=8 ... fio-2.16 Starting 2 processes cachesize-1g: Laying out IO file(s) (1 file(s) / 512MB) cachesize-1g: Laying out IO file(s) (1 file(s) / 512MB) Jobs: 2 (f=2): [r(2)] [100.0% done] [385.7MB/0KB/0KB /s] [98.8K/0/0 iops] [eta 00m:00s] cachesize-1g: (groupid=0, jobs=1): err= 0: pid=15206: Thu Aug 3 03:59:51 2017 read : io=346130MB, bw=196910KB/s, iops=49227, runt=1800001msec slat (usec): min=0, max=4188, avg= 4.76, stdev= 4.10 clat (usec): min=17, max=7093, avg=155.55, stdev=59.28 lat (usec): min=91, max=7098, avg=160.77, stdev=59.32 clat percentiles (usec): | 1.00th=[ 101], 5.00th=[ 108], 10.00th=[ 112], 20.00th=[ 119], | 30.00th=[ 124], 40.00th=[ 131], 50.00th=[ 137], 60.00th=[ 147], | 70.00th=[ 159], 80.00th=[ 181], 90.00th=[ 225], 95.00th=[ 274], | 99.00th=[ 366], 99.50th=[ 402], 99.90th=[ 474], 99.95th=[ 506], | 99.99th=[ 924] lat (usec) : 20=0.01%, 50=0.01%, 100=0.57%, 250=92.21%, 500=7.16% lat (usec) : 750=0.04%, 1000=0.01% lat (msec) : 2=0.01%, 4=0.01%, 10=0.01% cpu : usr=14.54%, sys=42.95%, ctx=50708834, majf=0, minf=15 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=88609406/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 cachesize-1g: (groupid=0, jobs=1): err= 0: pid=15207: Thu Aug 3 03:59:51 2017 read : io=346960MB, bw=197381KB/s, iops=49345, runt=1800001msec slat (usec): min=0, max=4180, avg= 4.76, stdev= 3.93 clat (usec): min=16, max=7097, avg=155.16, stdev=59.32 lat (usec): min=60, max=7101, avg=160.38, stdev=59.36 clat percentiles (usec): | 1.00th=[ 101], 5.00th=[ 108], 10.00th=[ 113], 20.00th=[ 119], | 30.00th=[ 124], 40.00th=[ 131], 50.00th=[ 137], 60.00th=[ 145], | 70.00th=[ 157], 80.00th=[ 179], 90.00th=[ 225], 95.00th=[ 274], | 99.00th=[ 370], 99.50th=[ 406], 99.90th=[ 474], 99.95th=[ 506], | 99.99th=[ 892] lat (usec) : 20=0.01%, 50=0.01%, 100=0.59%, 250=92.13%, 500=7.22% lat (usec) : 750=0.05%, 1000=0.01% lat (msec) : 2=0.01%, 4=0.01%, 10=0.01% cpu : usr=14.75%, sys=43.14%, ctx=50816422, majf=0, minf=14 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=88821698/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 Run status group 0 (all jobs): READ: io=693090MB, aggrb=394291KB/s, minb=196909KB/s, maxb=197381KB/s, mint=1800001msec, maxt=1800001msec Disk stats (read/write): xvdf: ios=177420039/9, merge=0/6, ticks=27109524/0, in_queue=27169920, util=100.00% Baseline HDD $ cd /srv/slow/fio && FIOTEST=hdd-1g fio ~/cachesize-1g.fio cachesize-1g: (g=0): rw=randread, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=8 ... fio-2.16 Starting 2 processes cachesize-1g: Laying out IO file(s) (1 file(s) / 512MB) cachesize-1g: Laying out IO file(s) (1 file(s) / 512MB) Jobs: 2 (f=2): [r(2)] [100.0% done] [2650KB/0KB/0KB /s] [662/0/0 iops] [eta 00m:00s] cachesize-1g: (groupid=0, jobs=1): err= 0: pid=18951: Thu Aug 3 04:30:08 2017 read : io=2307.8MB, bw=1312.5KB/s, iops=328, runt=1800099msec slat (usec): min=0, max=101, avg=14.31, stdev= 9.09 clat (usec): min=58, max=943511, avg=24362.98, stdev=47600.55 lat (usec): min=63, max=943517, avg=24378.15, stdev=47600.62 clat percentiles (usec): | 1.00th=[ 71], 5.00th=[ 82], 10.00th=[ 96], 20.00th=[ 127], | 30.00th=[ 181], 40.00th=[ 596], 50.00th=[ 1432], 60.00th=[ 9152], | 70.00th=[21632], 80.00th=[38656], 90.00th=[73216], 95.00th=[115200], | 99.00th=[228352], 99.50th=[280576], 99.90th=[415744], 99.95th=[468992], | 99.99th=[593920] lat (usec) : 100=11.17%, 250=23.28%, 500=4.34%, 750=2.55%, 1000=2.09% lat (msec) : 2=8.86%, 4=1.99%, 10=6.48%, 20=8.26%, 50=15.33% lat (msec) : 100=9.26%, 250=5.65%, 500=0.72%, 750=0.03%, 1000=0.01% cpu : usr=0.30%, sys=0.85%, ctx=572788, majf=0, minf=17 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=590611/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 cachesize-1g: (groupid=0, jobs=1): err= 0: pid=18952: Thu Aug 3 04:30:08 2017 read : io=2233.4MB, bw=1270.5KB/s, iops=317, runt=1800071msec slat (usec): min=0, max=113, avg=14.63, stdev= 9.18 clat (usec): min=56, max=1153.7K, avg=25167.62, stdev=48500.18 lat (usec): min=64, max=1153.8K, avg=25183.12, stdev=48500.29 clat percentiles (usec): | 1.00th=[ 72], 5.00th=[ 84], 10.00th=[ 99], 20.00th=[ 135], | 30.00th=[ 199], 40.00th=[ 892], 50.00th=[ 2640], 60.00th=[12224], | 70.00th=[21888], 80.00th=[39168], 90.00th=[74240], 95.00th=[117248], | 99.00th=[234496], 99.50th=[288768], 99.90th=[428032], 99.95th=[485376], | 99.99th=[602112] lat (usec) : 100=10.22%, 250=22.53%, 500=4.15%, 750=2.20%, 1000=1.83% lat (msec) : 2=8.43%, 4=1.66%, 10=6.40%, 20=11.41%, 50=15.37% lat (msec) : 100=9.26%, 250=5.69%, 500=0.79%, 750=0.04%, 1000=0.01% lat (msec) : 2000=0.01% cpu : usr=0.32%, sys=0.82%, ctx=551097, majf=0, minf=16 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=571725/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 Run status group 0 (all jobs): READ: io=4540.4MB, aggrb=2582KB/s, minb=1270KB/s, maxb=1312KB/s, mint=1800071msec, maxt=1800099msec Disk stats (read/write): xvde: ios=1162334/4, merge=0/1, ticks=28774452/692, in_queue=28775512, util=100.00% 1GiB data $ (cd /srv/cache/fio && FIOTEST=cachesize-1g-full fio ~/cachesize-1g.fio) cachesize-1g: (g=0): rw=randread, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=8 ... fio-2.16 Starting 2 processes cachesize-1g: Laying out IO file(s) (1 file(s) / 512MB) cachesize-1g: Laying out IO file(s) (1 file(s) / 512MB) Jobs: 2 (f=2): [r(2)] [100.0% done] [381.4MB/0KB/0KB /s] [97.7K/0/0 iops] [eta 00m:00s] cachesize-1g: (groupid=0, jobs=1): err= 0: pid=31905: Thu Aug 3 01:50:57 2017 read : io=340715MB, bw=193829KB/s, iops=48457, runt=1800001msec slat (usec): min=0, max=4500, avg= 7.09, stdev= 4.48 clat (usec): min=27, max=7408, avg=155.45, stdev=48.00 lat (usec): min=94, max=7415, avg=162.99, stdev=48.04 clat percentiles (usec): | 1.00th=[ 104], 5.00th=[ 112], 10.00th=[ 118], 20.00th=[ 124], | 30.00th=[ 131], 40.00th=[ 137], 50.00th=[ 143], 60.00th=[ 151], | 70.00th=[ 163], 80.00th=[ 179], 90.00th=[ 211], 95.00th=[ 245], | 99.00th=[ 322], 99.50th=[ 350], 99.90th=[ 414], 99.95th=[ 450], | 99.99th=[ 644] lat (usec) : 50=0.01%, 100=0.21%, 250=95.28%, 500=4.49%, 750=0.01% lat (usec) : 1000=0.01% lat (msec) : 2=0.01%, 4=0.01%, 10=0.01% cpu : usr=14.89%, sys=52.95%, ctx=39879588, majf=0, minf=18 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=87222941/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 cachesize-1g: (groupid=0, jobs=1): err= 0: pid=31906: Thu Aug 3 01:50:57 2017 read : io=347850MB, bw=197888KB/s, iops=49472, runt=1800001msec slat (usec): min=0, max=4535, avg= 7.06, stdev= 4.60 clat (usec): min=25, max=7437, avg=152.11, stdev=47.15 lat (usec): min=62, max=7443, avg=159.62, stdev=47.23 clat percentiles (usec): | 1.00th=[ 104], 5.00th=[ 111], 10.00th=[ 116], 20.00th=[ 123], | 30.00th=[ 129], 40.00th=[ 133], 50.00th=[ 139], 60.00th=[ 147], | 70.00th=[ 157], 80.00th=[ 175], 90.00th=[ 203], 95.00th=[ 239], | 99.00th=[ 314], 99.50th=[ 342], 99.90th=[ 410], 99.95th=[ 446], | 99.99th=[ 724] lat (usec) : 50=0.01%, 100=0.26%, 250=95.76%, 500=3.97%, 750=0.01% lat (usec) : 1000=0.01% lat (msec) : 2=0.01%, 4=0.01%, 10=0.01% cpu : usr=15.41%, sys=53.33%, ctx=39452819, majf=0, minf=17 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=89049700/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 Run status group 0 (all jobs): READ: io=688565MB, aggrb=391716KB/s, minb=193828KB/s, maxb=197888KB/s, mint=1800001msec, maxt=1800001msec Disk stats (read/write): dm-2: ios=176255221/16, merge=0/0, ticks=26526400/152, in_queue=26612320, util=100.00%, aggrios=58763012/5471, aggrmerge=0/0, aggrticks=8781482/98230, aggrin_queue=8904092, aggrutil=100.00% dm-1: ios=0/0, merge=0/0, ticks=0/0, in_queue=0, util=0.00%, aggrios=176289036/11, aggrmerge=0/5, aggrticks=26394628/0, aggrin_queue=26430140, aggrutil=100.00% xvdc: ios=176289036/11, merge=0/5, ticks=26394628/0, in_queue=26430140, util=100.00% dm-0: ios=176289036/16, merge=0/0, ticks=26344448/0, in_queue=26417584, util=100.00% dm-3: ios=0/16397, merge=0/0, ticks=0/294692, in_queue=294692, util=1.07%, aggrios=0/16397, aggrmerge=0/0, aggrticks=0/294580, aggrin_queue=294580, aggrutil=1.07% xvdd: ios=0/16397, merge=0/0, ticks=0/294580, in_queue=294580, util=1.07% 2GiB data $ (cd /srv/cache/fio && FIOTEST=cachesize-2g-full fio ~/cachesize-2g.fio) cachesize-2g: (g=0): rw=randread, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=8 ... fio-2.16 Starting 2 processes cachesize-2g: Laying out IO file(s) (1 file(s) / 1024MB) cachesize-2g: Laying out IO file(s) (1 file(s) / 1024MB) Jobs: 2 (f=2): [r(2)] [100.0% done] [382.1MB/0KB/0KB /s] [98.4K/0/0 iops] [eta 00m:00s] cachesize-2g: (groupid=0, jobs=1): err= 0: pid=3134: Wed Aug 2 17:32:04 2017 read : io=343242MB, bw=195266KB/s, iops=48816, runt=1800001msec slat (usec): min=0, max=4825, avg= 6.98, stdev= 4.42 clat (usec): min=26, max=6629, avg=154.48, stdev=47.36 lat (usec): min=93, max=6634, avg=161.93, stdev=47.41 clat percentiles (usec): | 1.00th=[ 103], 5.00th=[ 110], 10.00th=[ 115], 20.00th=[ 123], | 30.00th=[ 129], 40.00th=[ 137], 50.00th=[ 143], 60.00th=[ 151], | 70.00th=[ 163], 80.00th=[ 179], 90.00th=[ 207], 95.00th=[ 237], | 99.00th=[ 314], 99.50th=[ 342], 99.90th=[ 418], 99.95th=[ 458], | 99.99th=[ 1020] lat (usec) : 50=0.01%, 100=0.32%, 250=95.80%, 500=3.84%, 750=0.02% lat (usec) : 1000=0.01% lat (msec) : 2=0.01%, 4=0.01%, 10=0.01% cpu : usr=14.32%, sys=52.25%, ctx=39483832, majf=0, minf=16 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=87869839/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 cachesize-2g: (groupid=0, jobs=1): err= 0: pid=3135: Wed Aug 2 17:32:04 2017 read : io=338592MB, bw=192621KB/s, iops=48155, runt=1800001msec slat (usec): min=0, max=4485, avg= 7.00, stdev= 4.45 clat (usec): min=16, max=365626, avg=156.69, stdev=493.84 lat (usec): min=66, max=365646, avg=164.17, stdev=493.95 clat percentiles (usec): | 1.00th=[ 102], 5.00th=[ 109], 10.00th=[ 114], 20.00th=[ 122], | 30.00th=[ 127], 40.00th=[ 133], 50.00th=[ 141], 60.00th=[ 149], | 70.00th=[ 161], 80.00th=[ 177], 90.00th=[ 205], 95.00th=[ 241], | 99.00th=[ 318], 99.50th=[ 346], 99.90th=[ 426], 99.95th=[ 474], | 99.99th=[12352] lat (usec) : 20=0.01%, 50=0.01%, 100=0.40%, 250=95.46%, 500=4.10% lat (usec) : 750=0.01%, 1000=0.01% lat (msec) : 2=0.01%, 4=0.01%, 10=0.01%, 20=0.01%, 50=0.01% lat (msec) : 100=0.01%, 250=0.01%, 500=0.01% cpu : usr=14.08%, sys=51.79%, ctx=38995321, majf=0, minf=15 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=86679580/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 Run status group 0 (all jobs): READ: io=681834MB, aggrb=387887KB/s, minb=192621KB/s, maxb=195266KB/s, mint=1800001msec, maxt=1800001msec Disk stats (read/write): dm-2: ios=174542882/20, merge=0/0, ticks=26569204/1076, in_queue=26658352, util=100.00%, aggrios=58194070/26591, aggrmerge=0/0, aggrticks=8834468/168569, aggrin_queue=9026514, aggrutil=100.00% dm-1: ios=15/46976, merge=0/0, ticks=0/8080, in_queue=8084, util=0.35%, aggrios=174561550/46008, aggrmerge=1/6963, aggrticks=26076884/8636, aggrin_queue=26119484, aggrutil=100.00% xvdc: ios=174561550/46008, merge=1/6963, ticks=26076884/8636, in_queue=26119484, util=100.00% dm-0: ios=174561536/6745, merge=0/0, ticks=26039312/1316, in_queue=26111052, util=100.00% dm-3: ios=20660/26054, merge=0/0, ticks=464092/496312, in_queue=960408, util=5.44%, aggrios=20660/26051, aggrmerge=0/3, aggrticks=464080/495444, aggrin_queue=959516, aggrutil=5.44% xvdd: ios=20660/26051, merge=0/3, ticks=464080/495444, in_queue=959516, util=5.44% 4GiB data $ (cd /srv/cache/fio && FIOTEST=cachesize-4g-full fio ~/cachesize-4g.fio) cachesize-4g: (g=0): rw=randread, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=8 ... fio-2.16 Starting 2 processes cachesize-4g: Laying out IO file(s) (1 file(s) / 2048MB) cachesize-4g: Laying out IO file(s) (1 file(s) / 2048MB) Jobs: 2 (f=2): [r(2)] [100.0% done] [375.8MB/0KB/0KB /s] [96.2K/0/0 iops] [eta 00m:00s] cachesize-4g: (groupid=0, jobs=1): err= 0: pid=26795: Wed Aug 2 16:22:51 2017 read : io=249614MB, bw=142002KB/s, iops=35500, runt=1800001msec slat (usec): min=0, max=4469, avg= 7.00, stdev= 4.50 clat (usec): min=9, max=1363.9K, avg=215.84, stdev=3099.68 lat (usec): min=65, max=1363.9K, avg=223.29, stdev=3099.98 clat percentiles (usec): | 1.00th=[ 103], 5.00th=[ 109], 10.00th=[ 114], 20.00th=[ 121], | 30.00th=[ 127], 40.00th=[ 133], 50.00th=[ 139], 60.00th=[ 147], | 70.00th=[ 159], 80.00th=[ 177], 90.00th=[ 211], 95.00th=[ 255], | 99.00th=[ 354], 99.50th=[ 402], 99.90th=[ 4384], 99.95th=[35072], | 99.99th=[142336] lat (usec) : 10=0.01%, 50=0.01%, 100=0.30%, 250=94.32%, 500=5.21% lat (usec) : 750=0.06%, 1000=0.01% lat (msec) : 2=0.01%, 4=0.01%, 10=0.01%, 20=0.02%, 50=0.03% lat (msec) : 100=0.02%, 250=0.01%, 500=0.01%, 750=0.01%, 1000=0.01% lat (msec) : 2000=0.01% cpu : usr=10.92%, sys=38.72%, ctx=29995970, majf=0, minf=16 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=63901149/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 cachesize-4g: (groupid=0, jobs=1): err= 0: pid=26796: Wed Aug 2 16:22:51 2017 read : io=239913MB, bw=136484KB/s, iops=34120, runt=1800001msec slat (usec): min=0, max=4613, avg= 7.08, stdev= 4.64 clat (usec): min=20, max=1315.4K, avg=224.86, stdev=3340.78 lat (usec): min=67, max=1315.4K, avg=232.39, stdev=3341.07 clat percentiles (usec): | 1.00th=[ 103], 5.00th=[ 110], 10.00th=[ 116], 20.00th=[ 122], | 30.00th=[ 127], 40.00th=[ 133], 50.00th=[ 139], 60.00th=[ 147], | 70.00th=[ 157], 80.00th=[ 177], 90.00th=[ 219], 95.00th=[ 274], | 99.00th=[ 390], 99.50th=[ 442], 99.90th=[10304], 99.95th=[39680], | 99.99th=[154624] lat (usec) : 50=0.01%, 100=0.27%, 250=92.97%, 500=6.52%, 750=0.12% lat (usec) : 1000=0.01% lat (msec) : 2=0.01%, 4=0.01%, 10=0.01%, 20=0.02%, 50=0.04% lat (msec) : 100=0.02%, 250=0.02%, 500=0.01%, 750=0.01%, 1000=0.01% lat (msec) : 2000=0.01% cpu : usr=10.28%, sys=37.64%, ctx=29036049, majf=0, minf=14 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=61417783/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 Run status group 0 (all jobs): READ: io=489527MB, aggrb=278486KB/s, minb=136483KB/s, maxb=142002KB/s, mint=1800001msec, maxt=1800001msec Disk stats (read/write): dm-2: ios=125296525/29, merge=0/0, ticks=27228000/6004, in_queue=27295900, util=100.00%, aggrios=41794883/193226, aggrmerge=0/0, aggrticks=9825693/38738, aggrin_queue=9881421, aggrutil=84.96% dm-1: ios=86/514016, merge=0/0, ticks=16/61332, in_queue=61376, util=2.08%, aggrios=125186978/561183, aggrmerge=0/17273, aggrticks=18938212/71188, aggrin_queue=19034916, aggrutil=85.91% xvdc: ios=125186978/561183, merge=0/17273, ticks=18938212/71188, in_queue=19034916, util=85.91% dm-0: ios=125186892/64571, merge=0/0, ticks=18904024/11972, in_queue=18966848, util=84.96% dm-3: ios=197671/1091, merge=0/0, ticks=10573040/42912, in_queue=10616040, util=33.53%, aggrios=197671/1084, aggrmerge=0/7, aggrticks=10573020/39132, aggrin_queue=10612148, aggrutil=33.53% xvdd: ios=197671/1084, merge=0/7, ticks=10573020/39132, in_queue=10612148, util=33.53% 8GiB data $ (cd /srv/cache/fio && FIOTEST=cachesize-8g-full fio ~/cachesize-8g.fio) cachesize-8g: (g=0): rw=randread, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=8 ... fio-2.16 Starting 2 processes cachesize-8g: Laying out IO file(s) (1 file(s) / 4096MB) cachesize-8g: Laying out IO file(s) (1 file(s) / 4096MB) Jobs: 2 (f=2): [r(2)] [100.0% done] [18048KB/0KB/0KB /s] [4512/0/0 iops] [eta 00m:00s] cachesize-8g: (groupid=0, jobs=1): err= 0: pid=15599: Wed Aug 2 14:53:25 2017 read : io=13260MB, bw=7542.7KB/s, iops=1885, runt=1800146msec slat (usec): min=0, max=385, avg= 8.25, stdev= 5.69 clat (usec): min=9, max=1516.6K, avg=4231.66, stdev=26655.31 lat (usec): min=69, max=1516.6K, avg=4240.38, stdev=26657.41 clat percentiles (usec): | 1.00th=[ 101], 5.00th=[ 104], 10.00th=[ 105], 20.00th=[ 107], | 30.00th=[ 109], 40.00th=[ 116], 50.00th=[ 119], 60.00th=[ 121], | 70.00th=[ 122], 80.00th=[ 124], 90.00th=[ 159], 95.00th=[16064], | 99.00th=[113152], 99.50th=[175104], 99.90th=[358400], 99.95th=[456704], | 99.99th=[700416] lat (usec) : 10=0.01%, 100=0.45%, 250=92.98%, 500=0.41%, 750=0.05% lat (usec) : 1000=0.04% lat (msec) : 2=0.08%, 4=0.01%, 10=0.22%, 20=1.29%, 50=2.04% lat (msec) : 100=1.25%, 250=0.93%, 500=0.21%, 750=0.03%, 1000=0.01% lat (msec) : 2000=0.01% cpu : usr=0.95%, sys=2.94%, ctx=3521460, majf=0, minf=17 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=3394445/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 cachesize-8g: (groupid=0, jobs=1): err= 0: pid=15600: Wed Aug 2 14:53:25 2017 read : io=13886MB, bw=7899.2KB/s, iops=1974, runt=1800112msec slat (usec): min=0, max=2743, avg= 8.26, stdev= 5.84 clat (usec): min=2, max=1515.1K, avg=4040.21, stdev=24950.67 lat (usec): min=69, max=1515.1K, avg=4048.94, stdev=24952.83 clat percentiles (usec): | 1.00th=[ 100], 5.00th=[ 103], 10.00th=[ 105], 20.00th=[ 107], | 30.00th=[ 108], 40.00th=[ 110], 50.00th=[ 118], 60.00th=[ 120], | 70.00th=[ 121], 80.00th=[ 123], 90.00th=[ 157], 95.00th=[15552], | 99.00th=[109056], 99.50th=[166912], 99.90th=[333824], 99.95th=[419840], | 99.99th=[634880] lat (usec) : 4=0.01%, 100=0.56%, 250=92.98%, 500=0.31%, 750=0.05% lat (usec) : 1000=0.05% lat (msec) : 2=0.07%, 4=0.01%, 10=0.24%, 20=1.33%, 50=2.04% lat (msec) : 100=1.25%, 250=0.91%, 500=0.19%, 750=0.02%, 1000=0.01% lat (msec) : 2000=0.01% cpu : usr=0.94%, sys=3.09%, ctx=3684550, majf=0, minf=15 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=3554777/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 Run status group 0 (all jobs): READ: io=27145MB, aggrb=15441KB/s, minb=7542KB/s, maxb=7899KB/s, mint=1800112msec, maxt=1800146msec Disk stats (read/write): dm-2: ios=6948764/45, merge=0/0, ticks=28718292/11380, in_queue=28731160, util=100.00%, aggrios=2383761/603042, aggrmerge=0/0, aggrticks=12202621/76005, aggrin_queue=12278754, aggrutil=100.00% dm-1: ios=48/1607066, merge=0/0, ticks=4/178612, in_queue=178652, util=5.79%, aggrios=6527499/1756743, aggrmerge=0/51937, aggrticks=781204/210664, aggrin_queue=991672, aggrutil=41.93% xvdc: ios=6527499/1756743, merge=0/51937, ticks=781204/210664, in_queue=991672, util=41.93% dm-0: ios=6527451/202019, merge=0/0, ticks=780348/38028, in_queue=818476, util=38.13% dm-3: ios=623784/41, merge=0/0, ticks=35827512/11376, in_queue=35839136, util=100.00%, aggrios=623784/10, aggrmerge=0/31, aggrticks=35827612/2744, aggrin_queue=35830320, aggrutil=100.00% xvdd: ios=623784/10, merge=0/31, ticks=35827612/2744, in_queue=35830320, util=100.00% 16GiB data $ (cd /srv/cache/fio && FIOTEST=cachesize-16g-full fio ~/cachesize-16g.fio) cachesize-16g: (g=0): rw=randread, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=8 ... fio-2.16 Starting 2 processes cachesize-16g: Laying out IO file(s) (1 file(s) / 8192MB) cachesize-16g: Laying out IO file(s) (1 file(s) / 8192MB) Jobs: 2 (f=2): [r(2)] [100.0% done] [8288KB/0KB/0KB /s] [2072/0/0 iops] [eta 00m:00s] cachesize-16g: (groupid=0, jobs=1): err= 0: pid=2957: Wed Aug 2 13:13:01 2017 read : io=5417.5MB, bw=3081.9KB/s, iops=770, runt=1800060msec slat (usec): min=0, max=264, avg=10.14, stdev= 6.63 clat (usec): min=64, max=1972.9K, avg=10370.01, stdev=35718.97 lat (usec): min=71, max=1972.9K, avg=10380.72, stdev=35719.88 clat percentiles (usec): | 1.00th=[ 102], 5.00th=[ 105], 10.00th=[ 107], 20.00th=[ 116], | 30.00th=[ 119], 40.00th=[ 121], 50.00th=[ 122], 60.00th=[ 131], | 70.00th=[ 143], 80.00th=[ 165], 90.00th=[31104], 95.00th=[65280], | 99.00th=[173056], 99.50th=[228352], 99.90th=[374784], 99.95th=[440320], | 99.99th=[618496] lat (usec) : 100=0.28%, 250=82.96%, 500=0.10%, 750=0.04%, 1000=0.03% lat (msec) : 2=0.06%, 4=0.02%, 10=0.38%, 20=3.05%, 50=6.44% lat (msec) : 100=3.82%, 250=2.43%, 500=0.36%, 750=0.02%, 1000=0.01% lat (msec) : 2000=0.01% cpu : usr=0.40%, sys=1.39%, ctx=1393813, majf=0, minf=16 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=1386875/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 cachesize-16g: (groupid=0, jobs=1): err= 0: pid=2958: Wed Aug 2 13:13:01 2017 read : io=6208.7MB, bw=3531.9KB/s, iops=882, runt=1800089msec slat (usec): min=0, max=437, avg=10.21, stdev= 6.74 clat (usec): min=1, max=1988.1K, avg=9046.94, stdev=31703.98 lat (usec): min=71, max=1989.2K, avg=9057.72, stdev=31704.93 clat percentiles (usec): | 1.00th=[ 101], 5.00th=[ 104], 10.00th=[ 105], 20.00th=[ 107], | 30.00th=[ 112], 40.00th=[ 119], 50.00th=[ 121], 60.00th=[ 125], | 70.00th=[ 137], 80.00th=[ 157], 90.00th=[27776], 95.00th=[57088], | 99.00th=[152576], 99.50th=[201728], 99.90th=[329728], 99.95th=[395264], | 99.99th=[577536] lat (usec) : 2=0.01%, 50=0.01%, 100=0.41%, 250=83.62%, 500=0.09% lat (usec) : 750=0.04%, 1000=0.03% lat (msec) : 2=0.05%, 4=0.01%, 10=0.39%, 20=3.06%, 50=6.51% lat (msec) : 100=3.52%, 250=2.00%, 500=0.25%, 750=0.01%, 1000=0.01% lat (msec) : 2000=0.01% cpu : usr=0.53%, sys=1.56%, ctx=1597691, majf=0, minf=15 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=1589415/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 Run status group 0 (all jobs): READ: io=11626MB, aggrb=6613KB/s, minb=3081KB/s, maxb=3531KB/s, mint=1800060msec, maxt=1800089msec Disk stats (read/write): dm-2: ios=2976172/77, merge=0/0, ticks=28759760/45044, in_queue=28805924, util=100.00%, aggrios=998518/56115, aggrmerge=0/0, aggrticks=9860773/22645, aggrin_queue=9883437, aggrutil=100.00% dm-1: ios=88/149089, merge=0/0, ticks=4/18444, in_queue=18452, util=0.58%, aggrios=2489913/161345, aggrmerge=0/6821, aggrticks=314936/21908, aggrin_queue=336800, aggrutil=17.38% xvdc: ios=2489913/161345, merge=0/6821, ticks=314936/21908, in_queue=336800, util=17.38% dm-0: ios=2489825/19183, merge=0/0, ticks=314816/4448, in_queue=319308, util=16.88% dm-3: ios=505643/74, merge=0/0, ticks=29267500/45044, in_queue=29312552, util=100.00%, aggrios=505643/12, aggrmerge=0/62, aggrticks=29267500/10580, aggrin_queue=29278060, aggrutil=100.00% xvdd: ios=505643/12, merge=0/62, ticks=29267500/10580, in_queue=29278060, util=100.00% 32GiB data $ (cd /srv/cache/fio && FIOTEST=cachesize-32g-full fio ~/cachesize-32g.fio) cachesize-32g: (g=0): rw=randread, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=8 ... fio-2.16 Starting 2 processes cachesize-32g: Laying out IO file(s) (1 file(s) / 16384MB) cachesize-32g: Laying out IO file(s) (1 file(s) / 16384MB) Jobs: 2 (f=2): [r(2)] [100.0% done] [4624KB/0KB/0KB /s] [1156/0/0 iops] [eta 00m:00s] cachesize-32g: (groupid=0, jobs=1): err= 0: pid=23915: Wed Aug 2 11:42:12 2017 read : io=3378.9MB, bw=1922.5KB/s, iops=480, runt=1800108msec slat (usec): min=0, max=152, avg=11.84, stdev= 9.33 clat (usec): min=61, max=1523.8K, avg=16633.48, stdev=52554.00 lat (usec): min=68, max=1523.8K, avg=16645.89, stdev=52556.11 clat percentiles (usec): | 1.00th=[ 100], 5.00th=[ 104], 10.00th=[ 106], 20.00th=[ 108], | 30.00th=[ 117], 40.00th=[ 121], 50.00th=[ 123], 60.00th=[ 133], | 70.00th=[ 147], 80.00th=[ 8768], 90.00th=[49920], 95.00th=[104960], | 99.00th=[257024], 99.50th=[333824], 99.90th=[536576], 99.95th=[626688], | 99.99th=[880640] lat (usec) : 100=0.57%, 250=78.79%, 500=0.19%, 750=0.06%, 1000=0.05% lat (msec) : 2=0.09%, 4=0.02%, 10=0.47%, 20=2.96%, 50=6.82% lat (msec) : 100=4.70%, 250=4.22%, 500=0.94%, 750=0.11%, 1000=0.02% lat (msec) : 2000=0.01% cpu : usr=0.34%, sys=0.87%, ctx=916902, majf=0, minf=18 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=864974/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 cachesize-32g: (groupid=0, jobs=1): err= 0: pid=23916: Wed Aug 2 11:42:12 2017 read : io=5022.5MB, bw=2857.5KB/s, iops=714, runt=1800090msec slat (usec): min=0, max=173, avg=11.35, stdev= 9.15 clat (usec): min=62, max=1768.2K, avg=11185.81, stdev=48075.30 lat (usec): min=70, max=1768.2K, avg=11197.69, stdev=48077.75 clat percentiles (usec): | 1.00th=[ 101], 5.00th=[ 104], 10.00th=[ 106], 20.00th=[ 108], | 30.00th=[ 115], 40.00th=[ 120], 50.00th=[ 122], 60.00th=[ 125], | 70.00th=[ 137], 80.00th=[ 153], 90.00th=[26240], 95.00th=[63744], | 99.00th=[220160], 99.50th=[309248], 99.90th=[585728], 99.95th=[733184], | 99.99th=[1122304] lat (usec) : 100=0.46%, 250=85.40%, 500=0.22%, 750=0.06%, 1000=0.04% lat (msec) : 2=0.07%, 4=0.02%, 10=0.25%, 20=2.04%, 50=5.27% lat (msec) : 100=2.99%, 250=2.39%, 500=0.62%, 750=0.12%, 1000=0.03% lat (msec) : 2000=0.02% cpu : usr=0.50%, sys=1.27%, ctx=1372044, majf=0, minf=17 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=1285733/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 Run status group 0 (all jobs): READ: io=8401.3MB, aggrb=4779KB/s, minb=1922KB/s, maxb=2857KB/s, mint=1800090msec, maxt=1800108msec Disk stats (read/write): dm-2: ios=2150707/143, merge=0/0, ticks=28767744/34836, in_queue=28804592, util=100.00%, aggrios=751272/286183, aggrmerge=0/0, aggrticks=11166794/101613, aggrin_queue=11268450, aggrutil=100.00% dm-1: ios=62/755357, merge=0/0, ticks=12/85084, in_queue=85108, util=2.67%, aggrios=1798588/823298, aggrmerge=494/28038, aggrticks=232996/102144, aggrin_queue=335068, aggrutil=15.62% xvdc: ios=1798588/823298, merge=494/28038, ticks=232996/102144, in_queue=335068, util=15.62% dm-0: ios=1799020/96389, merge=0/0, ticks=234124/20548, in_queue=254704, util=13.23% dm-3: ios=454734/6803, merge=0/0, ticks=33266248/199208, in_queue=33465540, util=100.00%, aggrios=454734/6184, aggrmerge=0/619, aggrticks=33266152/97928, aggrin_queue=33364124, aggrutil=100.00% xvdd: ios=454734/6184, merge=0/619, ticks=33266152/97928, in_queue=33364124, util=100.00% 48GiB data $ (cd /srv/cache/fio && FIOTEST=cachesize-48g-full fio ~/cachesize-48g.fio) cachesize-48g: (g=0): rw=randread, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=8 ... fio-2.16 Starting 2 processes cachesize-48g: Laying out IO file(s) (1 file(s) / 24576MB) cachesize-48g: Laying out IO file(s) (1 file(s) / 24576MB) Jobs: 2 (f=2): [r(2)] [100.0% done] [4084KB/0KB/0KB /s] [1021/0/0 iops] [eta 00m:00s] cachesize-48g: (groupid=0, jobs=1): err= 0: pid=11765: Tue Aug 1 12:02:44 2017 read : io=3108.7MB, bw=1768.4KB/s, iops=442, runt=1800134msec slat (usec): min=0, max=75057, avg=12.49, stdev=100.40 clat (usec): min=61, max=7717.4K, avg=18080.36, stdev=79780.10 lat (usec): min=70, max=7717.4K, avg=18093.41, stdev=79783.33 clat percentiles (usec): | 1.00th=[ 101], 5.00th=[ 104], 10.00th=[ 106], 20.00th=[ 108], | 30.00th=[ 115], 40.00th=[ 120], 50.00th=[ 124], 60.00th=[ 133], | 70.00th=[ 145], 80.00th=[ 197], 90.00th=[44288], 95.00th=[103936], | 99.00th=[296960], 99.50th=[419840], 99.90th=[1028096], 99.95th=[1269760], | 99.99th=[2179072] lat (usec) : 100=0.49%, 250=81.20%, 500=0.22%, 750=0.05%, 1000=0.04% lat (msec) : 2=0.07%, 4=0.03%, 10=0.34%, 20=2.26%, 50=6.08% lat (msec) : 100=4.04%, 250=3.79%, 500=1.03%, 750=0.19%, 1000=0.07% lat (msec) : 2000=0.09%, >=2000=0.01% cpu : usr=0.37%, sys=0.78%, ctx=846462, majf=0, minf=17 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=795801/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 cachesize-48g: (groupid=0, jobs=1): err= 0: pid=11766: Tue Aug 1 12:02:44 2017 read : io=3181.9MB, bw=1809.1KB/s, iops=452, runt=1800123msec slat (usec): min=0, max=177, avg=12.61, stdev=10.17 clat (usec): min=51, max=4963.9K, avg=17663.67, stdev=73795.84 lat (usec): min=68, max=4963.1K, avg=17676.84, stdev=73797.60 clat percentiles (usec): | 1.00th=[ 101], 5.00th=[ 105], 10.00th=[ 107], 20.00th=[ 110], | 30.00th=[ 118], 40.00th=[ 122], 50.00th=[ 129], 60.00th=[ 137], | 70.00th=[ 151], 80.00th=[ 9664], 90.00th=[48384], 95.00th=[99840], | 99.00th=[259072], 99.50th=[354304], 99.90th=[978944], 99.95th=[1269760], | 99.99th=[2179072] lat (usec) : 100=0.47%, 250=78.72%, 500=0.21%, 750=0.06%, 1000=0.05% lat (msec) : 2=0.09%, 4=0.03%, 10=0.43%, 20=2.92%, 50=7.31% lat (msec) : 100=4.70%, 250=3.92%, 500=0.82%, 750=0.12%, 1000=0.05% lat (msec) : 2000=0.08%, >=2000=0.02% cpu : usr=0.40%, sys=0.80%, ctx=867597, majf=0, minf=16 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=814542/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 Run status group 0 (all jobs): READ: io=6290.5MB, aggrb=3578KB/s, minb=1768KB/s, maxb=1809KB/s, mint=1800123msec, maxt=1800134msec Disk stats (read/write): dm-2: ios=1610343/207, merge=0/0, ticks=28775436/83448, in_queue=28860328, util=100.00%, aggrios=562278/204739, aggrmerge=0/0, aggrticks=11044750/380021, aggrin_queue=11424792, aggrutil=100.00% dm-1: ios=53/537570, merge=0/0, ticks=4/63980, in_queue=64000, util=1.97%, aggrios=1303106/589473, aggrmerge=993/17280, aggrticks=184484/78092, aggrin_queue=262524, aggrutil=11.76% xvdc: ios=1303106/589473, merge=993/17280, ticks=184484/78092, in_queue=262524, util=11.76% dm-0: ios=1304046/69309, merge=0/0, ticks=188420/16684, in_queue=205128, util=9.97% dm-3: ios=382737/7340, merge=0/0, ticks=32945828/1059400, in_queue=34005248, util=100.00%, aggrios=382737/6163, aggrmerge=0/1177, aggrticks=32945132/641880, aggrin_queue=33587056, aggrutil=100.00% xvdd: ios=382737/6163, merge=0/1177, ticks=32945132/641880, in_queue=33587056, util=100.00%
Categories: LUG Community Blogs

Steve Kemp: So I did a thing, then another thing.

Planet HantsLUG - Wed, 02/08/2017 - 22:00

So I did start a project, to write a puppet-dashboard, it is functionally complete, but the next step is to allow me to raise alerts based on failing runs of puppet - in real-time.

(i.e. Now that I have a dashboard I wish to not use it. I want to be alerted to failures, without having to remember to go look for them. Something puppet-dashboard can't do ..)

In other news a while back I slipped in a casual note about having a brain scan done, here in sunny Helsinki.

One of the cool things about that experience, in addition to being told I wasn't going to drop dead that particular day, was that the radiologist told me that I could pay €25 to get a copy of my brain data in DICOM format.

I've not yet played with this very much, but I couldn't resist a brief animation:

  • See my brain.
    • Not the best quality, or the best detail, but damn. It is my brain.
    • I shall do better with more experimentation I think.
    • After I posted it my wife, a doctor, corrected me: That wasn't a gif of my brain, instead it was a gif of my skull. D'oh!
Categories: LUG Community Blogs

Mick Morgan: a letter to our dear home secretary

Planet ALUG - Wed, 02/08/2017 - 15:56

Dear Amber

So,”real people” don’t care about privacy? All they really want is ease of use and a pretty GUI so that they can chat to all their friends on-line? Only “the enemy” (who is that exactly anyway?) needs encryption? Excuse me for asking, but what have you been smoking? Does the Home Office know about that?

I’m a real person. And I care deeply about privacy. I care enough to fund both my own Tor node and various openVPN servers dotted around the world just to get past your ludicrous attempts at gratuitous surveillance of my (and my family’s) routine use of the ‘net. I care about the security and privacy of my transactions with various commercial enterprises, including my bank (which is why I expect them to use TLS on their website). I care about privacy when I correspond with my Doctor and other professionals. I care about privacy when I use an on-line search engine (which, incidentally, is not Google). I care about privacy because privacy matters. I have the right to freedom of thought and expression. I have the right to discuss those thoughts with others of my choice – when I choose and how I choose. You may not like that, but it’s a fact of life. That doesn’t make me “the enemy”. Get over it.

Love and Kisses

Mick

(Note to readers: Aral Balkan has deconstructed Rudd’s ramblings. I commend the article to you.)

Categories: LUG Community Blogs

Jonathan McDowell: How to make a keyring

Planet ALUG - Mon, 31/07/2017 - 21:17

Every month or two keyring-maint gets a comment about how a key update we say we’ve performed hasn’t actually made it to the active keyring, or a query about why the keyring is so out of date, or told that although a key has been sent to the HKP interface and that is showing the update as received it isn’t working when trying to upload to the Debian archive. It’s frustrating to have to deal with these queries, but the confusion is understandable. There are multiple public interfaces to the Debian keyrings and they’re not all equal. This post attempts to explain the interactions between them, and how I go about working with them as part of the keyring-maint team.

First, a diagram to show the different interfaces to the keyring and how they connect to each other:

Public interfaces rsync: keyring.debian.org::keyrings

This is the most important public interface; it’s the one that the Debian infrastructure uses. It’s the canonical location of the active set of Debian keyrings and is what you should be using if you want the most up to date copy. The validity of the keyrings can be checked using the included sha512sums.txt file, which will be signed by whoever in keyring-maint did the last keyring update.

HKP interface: hkp://keyring.debian.org/

What you talk to with gpg --keyserver keyring.debian.org. Serves out the current keyrings, and accepts updates to any key it already knows about (allowing, for example, expiry updates, new subkeys + uids or new signatures without the need to file a ticket in RT or otherwise explicitly request it). Updates sent to this interface will be available via it within a few hours, but must be manually folded into the active keyring. This in general happens about once a month when preparing for a general update of the keyring; for example b490c1d5f075951e80b22641b2a133c725adaab8.

Why not do this automatically? Even though the site uses GnuPG to verify incoming updates there are still occasions we’ve seen bugs (such as #787046, where GnuPG would always import subkeys it didn’t understand, even when that subkey was already present). Also we don’t want to allow just any UID to be part of the keyring. It is thus useful to retain a final set of human based sanity checking for any update before it becomes part of the keyring proper.

Alioth/anonscm: https://anonscm.debian.org/git/keyring/keyring.git/

A public mirror of the git repository the keyring-maint team use to maintain the keyring. Every action is recorded here, and in general each commit should be a single action (such as adding a new key, doing a key replacement or moving a key between keyrings). Note that pulling in the updates sent via HKP count as a single action, rather than having a commit per key updated. This mirror is updated whenever a new keyring is made active (i.e. made available via the rsync interface). Until that point pending changes are kept private; we sometimes deal with information such as the fact someone has potentially had a key compromised that we don’t want to be public until we’ve actually disabled it. Every “keyring push” (as we refer to the process of making a new keyring active) is tagged with the date it was performed. Releases are also tagged with their codenames, to make it easy to do comparisons over time.

Debian archive

This is actually the least important public interface to the keyring, at least from the perspective of the keyring-maint team. No infrastructure makes use of it and while it’s mostly updated when a new keyring is made active we only make a concerted effort to do so when it is coming up to release. It’s provided as a convenience package rather than something which should be utilised for active verification of which keys are and aren’t currently part of the keyring.

Team interface Master repository: kaufmann.debian.org:/srv/keyring.debian.org/master-keyring.git

The master git repository for keyring maintenance is stored on kaufmann.debian.org AKA keyring.debian.org. This system is centrally managed by DSA, with only DSA and keyring-maint having login rights to it. None of the actual maintenance work takes place here; it is a bare repo providing a central point for the members of keyring-maint to collaborate around.

Private interface Private working clone

This is where all of the actual keyring work happens. I have a local clone of the repository from kaufmann on a personal machine. The key additions / changes I perform all happen here, and are then pushed to the master repository so that they’re visible to the rest of the team. When preparing to make a new keyring active the changes that have been sent to the HKP interface are copied from kaufmann via scp and folded in using the pull-updates script. The tree is assembled into keyrings with a simple make and some sanity tests performed using make test. If these are successful the sha512sums.txt file is signed using gpg --clearsign and the output copied over to kaufmann. update-keyrings is then called to update the active keyrings (both rsync + HKP). A git push public pushes the changes to the public repository on anonscm. Finally gbp buildpackage --git-builder='sbuild -d sid' tells git-buildpackage to use sbuild to build a package ready to be uploaded to the archive.

Hopefully that helps explain the different stages and outputs of keyring maintenance; I’m aware that it would be a good idea for this to exist somewhere on keyring.debian.org as well and will look at doing so.

Categories: LUG Community Blogs

Daniel Silverstone (Kinnison): F/LOSS activity, July 2017

Planet ALUG - Mon, 31/07/2017 - 20:10

Once again, my focus was on Gitano, which we're working toward a 1.1 for. We had another one of our Gitano developer days which was attended by Richard maw and myself. You are invited to read the wiki page but a summary of what happened, which directly involved me, is:

  • Once again, we reviewed our current task state
  • We had a good discussion about our code of conduct including adopting a small change from upstream to improve matters
  • I worked on, and submitted a patch for, improving nested error message reports in Lace.
  • I reviewed and merged some work from Richard about pattern centralisation
  • I responded to comments on a number of in-flight series Richard had reviewed for me.
  • We discussed our plans for 1.1 and agreed that we'll be skipping a developer day in August because so much of it is consumed by DebConf and so on.

Other than that, related to Gitano during July I:

  • Submitted some code series before the developer day covering Gall cleanups and hook support in Gitano.
  • Reviewed and merged some more Makefile updates from Richard Ipsum
  • Reviewed and merged a Supple fix for environment cleardown from Richard Ipsum
  • Fixed an issue in one of the Makefiles which made it harder to build with dh-lua
  • I began work in earnest on Gitano CI, preparing a lot of scripts and support to sit around Jenkins (for now) for CIing packaging etc for Gitano and Debian
  • I began work on a system branch concept for Gitano CI which will let us handle the CI of branches in the repos, even if they cross repos.

I don't think I've done much non-Gitano F/LOSS work in July, but I am now in Montréal for debconf 2017 so hopefully more to say next month.

Categories: LUG Community Blogs

Chris Lamb: Free software activities in July 2017

Planet ALUG - Mon, 31/07/2017 - 18:35

Here is my monthly update covering what I have been doing in the free software world during July 2017 (previous month):

  • Updated travis.debian.net, my hosted service for projects that host their Debian packaging on GitHub to use the Travis CI continuous integration platform to test builds:
    • Moved the default mirror from ftp.de.debian.org to deb.debian.org. []
    • Create a sensible debian/changelog file if one does not exist. []
  • Updated django-slack, my library to easily post messages to the Slack group-messaging utility:
    • Merged a PR to clarify the error message when a channel could not be found. []
    • Reviewed and merged a suggestion to add a TestBackend. []
  • Added Pascal support to Louis Taylor's anyprint hack to add support for "print" statements from other languages into Python. []
  • Filed a PR against Julien Danjou's daiquiri Python logging helper to clarify an issue in the documentation. []
  • Merged a PR to Strava Enhancement Suite — my Chrome extension that improves and fixes annoyances in the web interface of the Strava cycling and running tracker — to remove Zwift activities with maps. []
  • Submitted a pull request for Redis key-value database store to fix a spelling mistake in a binary. []
  • Sent patches upstream to the authors of the OpenSVC cloud engine and the Argyll Color Management System to fix some "1204" typos.
  • Fixed a number of Python and deployment issues in my stravabot IRC bot. []
  • Correct a "1204" typo in Facebook's RocksDB key-value store. []
  • Corrected =+ typos in the Calibre e-book reader software. []
  • Filed a PR against the diaspy Python interface to the DIASPORA social network to correct the number of seconds in a day. []
  • Sent a pull request to remedy a =+ typo in sparqlwrapper, a SPARQL endpoint interface for Python. []
  • Filed a PR against Postfix Admin to fix some =+ typos. []
  • Fixed a "1042" typo in ImageJ, a Java image processing library. []
  • On a less-serious note, I filed an issue for Brad Abraham's bot for the Reddit sub-reddit to add some missing "hit the gym" advice. []

I also blogged about my recent lintian hacking and installation-birthday package.

Reproducible builds

Whilst anyone can inspect the source code of free software for malicious flaws, most software is distributed pre-compiled to end users.

The motivation behind the Reproducible Builds effort is to permit verification that no flaws have been introduced — either maliciously or accidentally — during this compilation process by promising identical results are always generated from a given source, thus allowing multiple third-parties to come to a consensus on whether a build was compromised.

(I have generously been awarded a grant from the Core Infrastructure Initiative to fund my work in this area.)

This month I:

  • Assisted Mattia with a draft of an extensive status update to the debian-devel-announce mailing list. There were interesting follow-up discussions on Hacker News and Reddit.
  • Submitted the following patches to fix reproducibility-related toolchain issues within Debian:
  • I also submitted 5 patches to fix specific reproducibility issues in autopep8, castle-game-engine, grep, libcdio & tinymux.
  • Categorised a large number of packages and issues in the Reproducible Builds "notes" repository.
  • Worked on publishing our weekly reports. (#114 #115, #116 & #117)

I also made the following changes to our tooling:

diffoscope

diffoscope is our in-depth and content-aware diff utility that can locate and diagnose reproducibility issues.

  • comparators.xml:
    • Fix EPUB "missing file" tests; they ship a META-INF/container.xml file. []
    • Misc style fixups. []
  • APK files can also be identified as "DOS/MBR boot sector". (#868486)
  • comparators.sqlite: Simplify file detection by rewriting manual recognizes call with a Sqlite3Database.RE_FILE_TYPE definition. []
  • comparators.directory:
    • Revert the removal of a try-except. (#868534)
    • Tidy module. []

strip-nondeterminism

strip-nondeterminism is our tool to remove specific non-deterministic results from a completed build.

  • Add missing File::Temp imports in the JAR and PNG handlers. This appears to have been exposed by lazily-loading handlers in #867982. (#868077)

buildinfo.debian.net

buildinfo.debian.net is my experiment into how to process, store and distribute .buildinfo files after the Debian archive software has processed them.

  • Avoid a race condition between check-and-creation of Buildinfo instances. []


Debian

My activities as the current Debian Project Leader are covered in my "Bits from the DPL emails to the debian-devel-announce mailing list.

Patches contributed
  • obs-studio: Remove annoying "click wrapper" on first startup. (#867756)
  • vim: Syntax highlighting for debian/copyright files. (#869965)
  • moin: Incorrect timezone offset applied due to "84600" typo. (#868463)
  • ssss: Add a simple autopkgtest. (#869645)
  • dch: Please bump $latest_bpo_dist to current stable release. (#867662)
  • python-kaitaistruct: Remove Markdown and homepage references from package long descriptions. (#869265)
  • album-data: Correct invalid Vcs-Git URI. (#869822)
  • pytest-sourceorder: Update Homepage field. (#869125)

I also made a very large number of contributions to the Lintian static analysis tool. To avoid duplication here, I have outlined them in a separate post.

Debian LTS

This month I have been paid to work 18 hours on Debian Long Term Support (LTS). In that time I did the following:

  • "Frontdesk" duties, triaging CVEs, etc.
  • Issued DLA 1014-1 for libclamunrar, a library to add unrar support to the Clam anti-virus software to fix an arbitrary code execution vulnerability.
  • Issued DLA 1015-1 for the libgcrypt11 crypto library to fix a "sliding windows" information leak.
  • Issued DLA 1016-1 for radare2 (a reverse-engineering framework) to prevent a remote denial-of-service attack.
  • Issued DLA 1017-1 to fix a heap-based buffer over-read in the mpg123 audio library.
  • Issued DLA 1018-1 for the sqlite3 database engine to prevent a vulnerability that could be exploited via a specially-crafted database file.
  • Issued DLA 1019-1 to patch a cross-site scripting (XSS) exploit in phpldapadmin, a web-based interface for administering LDAP servers.
  • Issued DLA 1024-1 to prevent an information leak in nginx via a specially-crafted HTTP range.
  • Issued DLA 1028-1 for apache2 to prevent the leakage of potentially confidential information via providing Authorization Digest headers.
  • Issued DLA 1033-1 for the memcached in-memory object caching server to prevent a remote denial-of-service attack.
Uploads
  • redis:
    • 4:4.0.0-1 — Upload new major upstream release to unstable.
    • 4:4.0.0-2 — Make /usr/bin/redis-server in the primary package a symlink to /usr/bin/redis-check-rdb in the redis-tools package to prevent duplicate debug symbols that result in a package file collision. (#868551)
    • 4:4.0.0-3 — Add -latomic to LDFLAGS to avoid a FTBFS on the mips & mipsel architectures.
    • 4:4.0.1-1 — New upstream version. Install 00-RELEASENOTES as the upstream changelog.
    • 4:4.0.1-2 — Skip non-deterministic tests that rely on timing. (#857855)
  • python-django:
    • 1:1.11.3-1 — New upstream bugfix release. Check DEB_BUILD_PROFILES consistently, not DEB_BUILD_OPTIONS.
  • bfs:
    • 1.0.2-2 & 1.0.2-3 — Use help2man to generate a manpage.
    • 1.0.2-4 — Set hardening=+all for bindnow, etc.
    • 1.0.2-5 & 1.0.2-6 — Don't use upstream's release target as it overrides our CFLAGS & install RELEASES.md as the upstream changelog.
    • 1.1-1 — New upstream release.
  • libfiu:
    • 0.95-4 — Apply patch from Steve Langasek to fix autopkgtests. (#869709)
  • python-daiquiri:
    • 1.0.1-1 — Initial upload. (ITP)
    • 1.1.0-1 — New upstream release.
    • 1.1.0-2 — Tidy package long description.
    • 1.2.1-1 — New upstream release.

I also reviewed and sponsored the uploads of gtts-token 1.1.1-1 and nlopt 2.4.2+dfsg-3.

Debian bugs filed
  • ITP: python-daiquiri — Python library to easily setup basic logging functionality. (#867322)
  • twittering-mode: Correct incorrect time formatting due to "84600" typo. (#868479)
FTP Team

As a Debian FTP assistant I ACCEPTed 45 packages: 2ping, behave, cmake-extras, cockpit, cppunit1.13, curvedns, flask-mongoengine, fparser, gnome-shell-extension-dash-to-panel, graphene, gtts-token, hamlib, hashcat-meta, haskell-alsa-mixer, haskell-floatinghex, haskell-hashable-time, haskell-integer-logarithms, haskell-murmur-hash, haskell-quickcheck-text, haskell-th-abstraction, haskell-uri-bytestring, highlight.js, hoel, libdrm, libhtp, libpgplot-perl, linux, magithub, meson-mode, orcania, pg-dirtyread, prometheus-apache-exporter, pyee, pytest-pep8, python-coverage-test-runner, python-digitalocean, python-django-imagekit, python-rtmidi, python-transitions, qdirstat, redtick, ulfius, weresync, yder & zktop.

I additionally filed 5 RC bugs against packages that had incomplete debian/copyright files against: cockpit, cppunit, cppunit1.13, curvedns & highlight.js.

Categories: LUG Community Blogs

Andy Smith: Tracking down the lvmcache fix

Planet HantsLUG - Sun, 30/07/2017 - 07:00
Background

In the previous article I covered how, in order to get decent performance out of lvmcache with a packaged Debian kernel, you’d have to use the 4.12.2-1~exp1 kernel from experimental. The kernels packaged in sid, testing (buster) and stable (stretch) aren’t new enough.

I decided to bisect the Linux kernel upstream git repository to find out exactly which commit(s) fixed things.

Results

Here’s a graph showing the IOPS over time for baseline SSD and lvmcache with a full cache under several different kernel versions. As in previous articles, the lines are actually Bezier curves fitted to the data which is scattered all over the place from 500ms averages.

What we can see here is that performance starts to improve with commit 4d44ec5ab751 authored by Joe Thornber:

dm cache policy smq: put newly promoted entries at the top of the multiqueue

This stops entries bouncing in and out of the cache quickly.

This is part of a set of commits authored by Joe Thornber on the drivers/md/dm-cache-policy-smq.c

file and committed on 2017-05-14. By the time we reach commit 6cf4cc8f8b3b we have the long-term good performance that we were looking for.

The first of Joe Thornber’s commits on that day in the dm-cache area was 072792dcdfc8 and stepping back to the commit immediately prior to that one (2ea659a9ef48) we get a kernel representing the moment that Linus designated the v4.12-rc1 tag. Joe’s commits went into -rc1, and without them the performance of lvmcache under these test conditions isn’t much better than baseline HDD.

It seems like some of Joe’s changes helped a lot and then the last one really provided the long term performance.

git bisect procedure

Normally when you do a git bisect you’re starting with something that works and you’re looking for the commit that introduced a bug. In this case I was starting off with a known-good state and was interested in which commit(s) got me there. The normal bisect key words of “good” and “bad” in this case would be backwards to what I wanted. Dominic gave me the tip that I could alias the terms in order to reduce my confusion:

$ git bisect start --term-old broken --term-new fixed

From here on, when I encountered a test run that produced poor results I would issue:

$ git bisect broken

and when I had a test run with good results I would issue:

$ git bisect fixed

As I knew that the tag v4.13-rc1 produced a good run and v4.11 was bad, I could start off with:

$ git bisect reset v4.13-rc1 $ git bisect fixed $ git bisect broken v4.11

git would then keep bisecting the search space of commits until I would find the one(s) that resulted in the high performance I was looking for.

Good and bad?

As before I’m using fio to conduct the testing, with the same job specification:

ioengine=libaio direct=1 iodepth=8 numjobs=2 readwrite=randread random_distribution=zipf:1.2 bs=4k size=2g unlink=1 runtime=15m time_based=1 per_job_logs=1 log_avg_msec=500 write_iops_log=/var/tmp/fio-${FIOTEST}

The only difference from the other articles was that the run time was reduced to 15 minutes as all of the interesting behaviour happened within the first 11 minutes.

To recap, this fio job specification lays out two 2GiB files of random data and then starts two processes that perform 4kiB-sized reads against the files. Direct IO is used, in order to bypass the page cache.

A Zipfian distribution with a factor of 1.2 is used; this gives a 90/10 split where about 90% of the reads should come from about 10% of the data. The purpose of this is to simulate the hot spots of popular data that occur in real life. If the access pattern were to be perfectly and uniformly random then caching would not be effective.

In previous tests we had observed that dramatically different performance would be seen on the first run against an empty cache device compared to all other subsequent runs against what would be a full cache device. In the tests using kernels with the fix present the IOPS achieved would converge towards baseline SSD performance, whereas in kernels without the fix the performance would remain down near the level of baseline HDD. Therefore the fio tests were carried out twice.

Where to next?

I think I am going to see what happens when the cache device is pretty small in comparison to the working data.

All of the tests so far have used a 4GiB cache with 4GiB of data, so if everything got promoted it would entirely fit in cache. Not only that but the Zipf distribution makes most of the hits come from 10% of the data, so it’s actually just ~400MiB of hot data. I think it would be interesting to see what happens when the hot 10% is bigger than the cache device.

git bisect progress and test output

Unless you are particularly interested in the fio output and why I considered each one to be either fixed or broken, you probably want to stop reading now.

4.12.0-rc1+

I forgot to record the commit revision for this test so all I know is that it’s from somewhere in the first v4.12 release candidate.

The second job against an empty cache shows poor performance (8,210 average IOPS), and both jobs against a full cache show poor performance (2,141, 730 average IOPS), so this was marked broken.

Empty cache $ (cd /srv/cache/fio && FIOTEST=lvmcache-empty-4.12.0-rc1+ fio ~/partial.fio) partial: (g=0): rw=randread, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=8 ... fio-2.16 Starting 2 processes partial: Laying out IO file(s) (1 file(s) / 2048MB) partial: Laying out IO file(s) (1 file(s) / 2048MB) Jobs: 2 (f=2): [r(2)] [100.0% done] [206.7MB/0KB/0KB /s] [52.9K/0/0 iops] [eta 00m:00s] partial: (groupid=0, jobs=1): err= 0: pid=1275: Fri Jul 28 18:23:26 2017 read : io=126101MB, bw=143465KB/s, iops=35866, runt=900065msec slat (usec): min=3, max=25001, avg= 6.12, stdev= 4.73 clat (usec): min=19, max=808324, avg=214.83, stdev=2941.63 lat (usec): min=68, max=808334, avg=221.36, stdev=2942.04 clat percentiles (usec): | 1.00th=[ 102], 5.00th=[ 105], 10.00th=[ 106], 20.00th=[ 109], | 30.00th=[ 112], 40.00th=[ 116], 50.00th=[ 120], 60.00th=[ 123], | 70.00th=[ 129], 80.00th=[ 137], 90.00th=[ 161], 95.00th=[ 207], | 99.00th=[ 362], 99.50th=[ 422], 99.90th=[27008], 99.95th=[50944], | 99.99th=[138240] lat (usec) : 20=0.01%, 50=0.01%, 100=0.23%, 250=96.86%, 500=2.52% lat (usec) : 750=0.07%, 1000=0.05% lat (msec) : 2=0.11%, 4=0.01%, 10=0.01%, 20=0.03%, 50=0.08% lat (msec) : 100=0.03%, 250=0.02%, 500=0.01%, 750=0.01%, 1000=0.01% cpu : usr=9.28%, sys=32.19%, ctx=19968665, majf=0, minf=17 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=32281968/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 partial: (groupid=0, jobs=1): err= 0: pid=1276: Fri Jul 28 18:23:26 2017 read : io=28868MB, bw=32843KB/s, iops=8210, runt=900062msec slat (usec): min=3, max=238, avg= 7.37, stdev= 3.18 clat (usec): min=1, max=718073, avg=964.43, stdev=8565.89 lat (usec): min=67, max=718080, avg=972.27, stdev=8566.73 clat percentiles (usec): | 1.00th=[ 100], 5.00th=[ 104], 10.00th=[ 106], 20.00th=[ 109], | 30.00th=[ 113], 40.00th=[ 117], 50.00th=[ 120], 60.00th=[ 122], | 70.00th=[ 126], 80.00th=[ 133], 90.00th=[ 157], 95.00th=[ 237], | 99.00th=[27264], 99.50th=[51456], 99.90th=[127488], 99.95th=[164864], | 99.99th=[261120] lat (usec) : 2=0.01%, 4=0.01%, 20=0.01%, 50=0.01%, 100=0.75% lat (usec) : 250=94.77%, 500=2.20%, 750=0.11%, 1000=0.08% lat (msec) : 2=0.15%, 4=0.02%, 10=0.13%, 20=0.52%, 50=0.75% lat (msec) : 100=0.35%, 250=0.16%, 500=0.01%, 750=0.01% cpu : usr=2.57%, sys=8.79%, ctx=6706909, majf=0, minf=16 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=7390152/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 Run status group 0 (all jobs): READ: io=154969MB, aggrb=176307KB/s, minb=32842KB/s, maxb=143465KB/s, mint=900062msec, maxt=900065msec Disk stats (read/write): dm-2: ios=39667388/28, merge=0/0, ticks=14142912/5308, in_queue=14158728, util=100.00%, aggrios=13263605/322030, aggrmerge=0/0, aggrticks=5479672/69964, aggrin_queue=5551697, aggrutil=100.00% dm-1: ios=2/847365, merge=0/0, ticks=0/131084, in_queue=131108, util=10.32%, aggrios=39457066/908046, aggrmerge=1462/48403, aggrticks=5249084/146536, aggrin_queue=5395788, aggrutil=99.89% xvdc: ios=39457066/908046, merge=1462/48403, ticks=5249084/146536, in_queue=5395788, util=99.89% dm-0: ios=39458525/110207, merge=0/0, ticks=5253332/20832, in_queue=5280728, util=99.89% dm-3: ios=332289/8519, merge=0/0, ticks=11185684/57976, in_queue=11243256, util=100.00%, aggrios=332289/6962, aggrmerge=0/1563, aggrticks=11185604/38544, aggrin_queue=11223832, aggrutil=100.00% xvdd: ios=332289/6962, merge=0/1563, ticks=11185604/38544, in_queue=11223832, util=100.00% Full cache $ (cd /srv/cache/fio && FIOTEST=lvmcache-full-4.12.0-rc1+ fio ~/partial.fio) partial: (g=0): rw=randread, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=8 ... fio-2.16 Starting 2 processes partial: Laying out IO file(s) (1 file(s) / 2048MB) partial: Laying out IO file(s) (1 file(s) / 2048MB) Jobs: 2 (f=2): [r(2)] [100.0% done] [14150KB/0KB/0KB /s] [3537/0/0 iops] [eta 00m:00s] partial: (groupid=0, jobs=1): err= 0: pid=1674: Fri Jul 28 18:51:41 2017 read : io=7529.9MB, bw=8566.5KB/s, iops=2141, runt=900093msec slat (usec): min=3, max=190, avg= 7.84, stdev= 5.41 clat (usec): min=34, max=1514.5K, avg=3725.26, stdev=24447.20 lat (usec): min=72, max=1514.6K, avg=3733.56, stdev=24449.04 clat percentiles (usec): | 1.00th=[ 100], 5.00th=[ 103], 10.00th=[ 104], 20.00th=[ 106], | 30.00th=[ 107], 40.00th=[ 108], 50.00th=[ 109], 60.00th=[ 118], | 70.00th=[ 121], 80.00th=[ 123], 90.00th=[ 155], 95.00th=[12992], | 99.00th=[100864], 99.50th=[158720], 99.90th=[325632], 99.95th=[419840], | 99.99th=[675840] lat (usec) : 50=0.01%, 100=0.39%, 250=93.41%, 500=0.29%, 750=0.08% lat (usec) : 1000=0.06% lat (msec) : 2=0.12%, 4=0.01%, 10=0.29%, 20=1.36%, 50=1.88% lat (msec) : 100=1.12%, 250=0.82%, 500=0.17%, 750=0.02%, 1000=0.01% lat (msec) : 2000=0.01% cpu : usr=0.73%, sys=2.52%, ctx=1993978, majf=0, minf=18 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=1927642/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 partial: (groupid=0, jobs=1): err= 0: pid=1675: Fri Jul 28 18:51:41 2017 read : io=2568.1MB, bw=2921.6KB/s, iops=730, runt=900113msec slat (usec): min=3, max=146, avg= 8.82, stdev= 5.83 clat (usec): min=64, max=1522.3K, avg=10941.33, stdev=44467.18 lat (usec): min=70, max=1522.3K, avg=10950.66, stdev=44468.17 clat percentiles (usec): | 1.00th=[ 101], 5.00th=[ 104], 10.00th=[ 106], 20.00th=[ 108], | 30.00th=[ 117], 40.00th=[ 119], 50.00th=[ 121], 60.00th=[ 123], | 70.00th=[ 135], 80.00th=[ 161], 90.00th=[26240], 95.00th=[62720], | 99.00th=[205824], 99.50th=[288768], 99.90th=[528384], 99.95th=[659456], | 99.99th=[1036288] lat (usec) : 100=0.30%, 250=83.22%, 500=0.41%, 750=0.11%, 1000=0.08% lat (msec) : 2=0.15%, 4=0.02%, 10=0.62%, 20=3.47%, 50=5.45% lat (msec) : 100=3.16%, 250=2.31%, 500=0.57%, 750=0.08%, 1000=0.02% lat (msec) : 2000=0.01% cpu : usr=0.35%, sys=0.94%, ctx=673091, majf=0, minf=16 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=657432/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 Run status group 0 (all jobs): READ: io=10098MB, aggrb=11487KB/s, minb=2921KB/s, maxb=8566KB/s, mint=900093msec, maxt=900113msec Disk stats (read/write): dm-2: ios=2585032/29, merge=0/0, ticks=14380160/2084, in_queue=14383828, util=100.00%, aggrios=897708/321791, aggrmerge=0/0, aggrticks=6187020/40796, aggrin_queue=6227841, aggrutil=100.00% dm-1: ios=34/857325, merge=0/0, ticks=4/100092, in_queue=100120, util=6.30%, aggrios=2366278/926181, aggrmerge=0/38684, aggrticks=290092/115464, aggrin_queue=405484, aggrutil=35.21% xvdc: ios=2366278/926181, merge=0/38684, ticks=290092/115464, in_queue=405484, util=35.21% dm-0: ios=2366244/108039, merge=0/0, ticks=290336/20212, in_queue=310600, util=30.59% dm-3: ios=326848/10, merge=0/0, ticks=18270720/2084, in_queue=18272804, util=100.00%, aggrios=326848/6, aggrmerge=0/4, aggrticks=18270688/1332, aggrin_queue=18272160, aggrutil=100.00% xvdd: ios=326848/6, merge=0/4, ticks=18270688/1332, in_queue=18272160, util=100.00% 4.12.0+5518b69b7668 (2017-07-05 12:31:59 -0700)

Over 20k average IOPS on the run against a full cache means this was marked fixed.

Empty cache $ (cd /srv/cache/fio && FIOTEST=lvmcache-empty-4.12.0+ fio ~/partial.fio) partial: (g=0): rw=randread, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=8 ... fio-2.16 Starting 2 processes partial: Laying out IO file(s) (1 file(s) / 2048MB) partial: Laying out IO file(s) (1 file(s) / 2048MB) Jobs: 2 (f=2): [r(2)] [100.0% done] [401.3MB/0KB/0KB /s] [103K/0/0 iops] [eta 00m:00s] partial: (groupid=0, jobs=1): err= 0: pid=1126: Fri Jul 28 21:06:01 2017 read : io=178623MB, bw=203233KB/s, iops=50808, runt=900001msec slat (usec): min=1, max=3059, avg= 7.04, stdev= 3.00 clat (usec): min=37, max=1175.7K, avg=147.92, stdev=585.27 lat (usec): min=66, max=1175.7K, avg=155.43, stdev=585.32 clat percentiles (usec): | 1.00th=[ 103], 5.00th=[ 110], 10.00th=[ 114], 20.00th=[ 121], | 30.00th=[ 126], 40.00th=[ 131], 50.00th=[ 137], 60.00th=[ 143], | 70.00th=[ 153], 80.00th=[ 163], 90.00th=[ 185], 95.00th=[ 207], | 99.00th=[ 274], 99.50th=[ 314], 99.90th=[ 434], 99.95th=[ 498], | 99.99th=[ 1400] lat (usec) : 50=0.01%, 100=0.42%, 250=97.80%, 500=1.72%, 750=0.02% lat (usec) : 1000=0.01% lat (msec) : 2=0.01%, 4=0.01%, 10=0.01%, 20=0.01%, 50=0.01% lat (msec) : 100=0.01%, 250=0.01%, 500=0.01%, 750=0.01%, 1000=0.01% lat (msec) : 2000=0.01% cpu : usr=14.76%, sys=51.47%, ctx=19663307, majf=0, minf=18 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=45727501/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 partial: (groupid=0, jobs=1): err= 0: pid=1127: Fri Jul 28 21:06:01 2017 read : io=170314MB, bw=193779KB/s, iops=48444, runt=900001msec slat (usec): min=0, max=4199, avg= 7.13, stdev= 3.11 clat (usec): min=29, max=493434, avg=155.48, stdev=688.81 lat (usec): min=64, max=493446, avg=163.07, stdev=688.95 clat percentiles (usec): | 1.00th=[ 104], 5.00th=[ 111], 10.00th=[ 116], 20.00th=[ 122], | 30.00th=[ 129], 40.00th=[ 133], 50.00th=[ 139], 60.00th=[ 145], | 70.00th=[ 153], 80.00th=[ 167], 90.00th=[ 189], 95.00th=[ 215], | 99.00th=[ 290], 99.50th=[ 326], 99.90th=[ 446], 99.95th=[ 588], | 99.99th=[27008] lat (usec) : 50=0.01%, 100=0.32%, 250=97.35%, 500=2.27%, 750=0.02% lat (usec) : 1000=0.01% lat (msec) : 2=0.01%, 4=0.01%, 10=0.01%, 20=0.01%, 50=0.01% lat (msec) : 100=0.01%, 250=0.01%, 500=0.01% cpu : usr=13.65%, sys=50.13%, ctx=18808830, majf=0, minf=15 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=43600368/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 Run status group 0 (all jobs): READ: io=348937MB, aggrb=397012KB/s, minb=193779KB/s, maxb=203233KB/s, mint=900001msec, maxt=900001msec Disk stats (read/write): dm-2: ios=89308932/28, merge=0/0, ticks=13329748/144, in_queue=13365712, util=100.00%, aggrios=29798461/41330, aggrmerge=0/0, aggrticks=4447461/538024, aggrin_queue=4995029, aggrutil=100.00% dm-1: ios=54/56500, merge=0/0, ticks=4/10576, in_queue=10580, util=0.86%, aggrios=89368372/54448, aggrmerge=3/8823, aggrticks=12815140/10948, aggrin_queue=12836708, aggrutil=100.00% xvdc: ios=89368372/54448, merge=3/8823, ticks=12815140/10948, in_queue=12836708, util=100.00% dm-0: ios=89368321/7982, merge=0/0, ticks=12772360/1672, in_queue=12802664, util=100.00% dm-3: ios=27010/59510, merge=0/0, ticks=570020/1601824, in_queue=2171844, util=22.47%, aggrios=27010/59506, aggrmerge=0/4, aggrticks=570012/1588432, aggrin_queue=2158444, aggrutil=22.47% xvdd: ios=27010/59506, merge=0/4, ticks=570012/1588432, in_queue=2158444, util=22.47% Full cache $ (cd /srv/cache/fio && FIOTEST=lvmcache-full-4.12.0+ fio ~/partial.fio) partial: (g=0): rw=randread, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=8 ... fio-2.16 Starting 2 processes partial: Laying out IO file(s) (1 file(s) / 2048MB) partial: Laying out IO file(s) (1 file(s) / 2048MB) Jobs: 2 (f=0): [f(2)] [100.0% done] [398.2MB/0KB/0KB /s] [102K/0/0 iops] [eta 00m:00s] partial: (groupid=0, jobs=1): err= 0: pid=1701: Fri Jul 28 21:31:14 2017 read : io=81664MB, bw=92916KB/s, iops=23228, runt=900001msec slat (usec): min=1, max=236, avg= 7.03, stdev= 2.96 clat (usec): min=20, max=1436.8K, avg=334.90, stdev=5455.47 lat (usec): min=65, max=1436.8K, avg=342.37, stdev=5455.94 clat percentiles (usec): | 1.00th=[ 98], 5.00th=[ 106], 10.00th=[ 108], 20.00th=[ 116], | 30.00th=[ 122], 40.00th=[ 127], 50.00th=[ 135], 60.00th=[ 143], | 70.00th=[ 155], 80.00th=[ 171], 90.00th=[ 197], 95.00th=[ 225], | 99.00th=[ 322], 99.50th=[ 406], 99.90th=[57600], 99.95th=[102912], | 99.99th=[244736] lat (usec) : 50=0.01%, 100=1.15%, 250=95.96%, 500=2.51%, 750=0.04% lat (usec) : 1000=0.02% lat (msec) : 2=0.02%, 4=0.01%, 10=0.01%, 20=0.07%, 50=0.11% lat (msec) : 100=0.06%, 250=0.04%, 500=0.01%, 750=0.01%, 1000=0.01% lat (msec) : 2000=0.01% cpu : usr=6.80%, sys=24.11%, ctx=10402905, majf=0, minf=17 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=20906091/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 partial: (groupid=0, jobs=1): err= 0: pid=1702: Fri Jul 28 21:31:14 2017 read : io=70584MB, bw=80309KB/s, iops=20077, runt=900001msec slat (usec): min=0, max=1925, avg= 7.09, stdev= 3.08 clat (usec): min=28, max=1511.1K, avg=388.89, stdev=6127.50 lat (usec): min=66, max=1511.1K, avg=396.42, stdev=6127.96 clat percentiles (usec): | 1.00th=[ 100], 5.00th=[ 108], 10.00th=[ 114], 20.00th=[ 121], | 30.00th=[ 127], 40.00th=[ 135], 50.00th=[ 145], 60.00th=[ 155], | 70.00th=[ 169], 80.00th=[ 187], 90.00th=[ 223], 95.00th=[ 266], | 99.00th=[ 382], 99.50th=[ 470], 99.90th=[69120], 99.95th=[120320], | 99.99th=[272384] lat (usec) : 50=0.01%, 100=0.87%, 250=92.83%, 500=5.85%, 750=0.06% lat (usec) : 1000=0.01% lat (msec) : 2=0.02%, 4=0.01%, 10=0.02%, 20=0.08%, 50=0.12% lat (msec) : 100=0.07%, 250=0.05%, 500=0.01%, 750=0.01%, 1000=0.01% lat (msec) : 2000=0.01% cpu : usr=5.70%, sys=21.56%, ctx=9637603, majf=0, minf=16 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=18069579/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 Run status group 0 (all jobs): READ: io=152249MB, aggrb=173225KB/s, minb=80309KB/s, maxb=92915KB/s, mint=900001msec, maxt=900001msec Disk stats (read/write): dm-2: ios=38952573/29, merge=0/0, ticks=13950768/2216, in_queue=13969108, util=100.00%, aggrios=13013773/192960, aggrmerge=0/0, aggrticks=5424846/37388, aggrin_queue=5466722, aggrutil=70.38% dm-1: ios=50/513251, merge=0/0, ticks=0/63836, in_queue=63844, util=4.22%, aggrios=38843781/560322, aggrmerge=0/17355, aggrticks=5786824/73580, aggrin_queue=5863840, aggrutil=72.24% xvdc: ios=38843781/560322, merge=0/17355, ticks=5786824/73580, in_queue=5863840, util=72.24% dm-0: ios=38843731/64559, merge=0/0, ticks=5772804/12088, in_queue=5798340, util=70.38% dm-3: ios=197538/1071, merge=0/0, ticks=10501736/36240, in_queue=10537984, util=66.09%, aggrios=197538/1068, aggrmerge=0/3, aggrticks=10501736/35036, aggrin_queue=10536764, aggrutil=66.09% xvdd: ios=197538/1068, merge=0/3, ticks=10501736/35036, in_queue=10536764, util=66.09% 4.12.0-rc7+458bc30cec26 (2017-07-04 22:35:16 +0100)

Over 20k average IOPS on the run against a full cache means this was marked fixed.

Empty cache $ (cd /srv/cache/fio && FIOTEST=lvmcache-empty-4.12.0-rc7+ fio ~/partial.fio) partial: (g=0): rw=randread, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=8 ... fio-2.16 Starting 2 processes partial: Laying out IO file(s) (1 file(s) / 2048MB) partial: Laying out IO file(s) (1 file(s) / 2048MB) Jobs: 2 (f=2): [r(2)] [100.0% done] [407.1MB/0KB/0KB /s] [104K/0/0 iops] [eta 00m:00s] partial: (groupid=0, jobs=1): err= 0: pid=1154: Sat Jul 29 00:38:19 2017 read : io=183121MB, bw=208350KB/s, iops=52087, runt=900001msec slat (usec): min=2, max=7756, avg= 6.96, stdev= 2.90 clat (usec): min=44, max=1200.4K, avg=144.14, stdev=472.71 lat (usec): min=71, max=1200.4K, avg=151.59, stdev=472.73 clat percentiles (usec): | 1.00th=[ 104], 5.00th=[ 110], 10.00th=[ 114], 20.00th=[ 120], | 30.00th=[ 125], 40.00th=[ 131], 50.00th=[ 135], 60.00th=[ 143], | 70.00th=[ 151], 80.00th=[ 161], 90.00th=[ 181], 95.00th=[ 201], | 99.00th=[ 262], 99.50th=[ 298], 99.90th=[ 418], 99.95th=[ 466], | 99.99th=[ 1064] lat (usec) : 50=0.01%, 100=0.11%, 250=98.52%, 500=1.34%, 750=0.02% lat (usec) : 1000=0.01% lat (msec) : 2=0.01%, 4=0.01%, 10=0.01%, 20=0.01%, 50=0.01% lat (msec) : 100=0.01%, 250=0.01%, 500=0.01%, 750=0.01%, 1000=0.01% lat (msec) : 2000=0.01% cpu : usr=12.82%, sys=49.46%, ctx=19495852, majf=0, minf=17 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=46878856/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 partial: (groupid=0, jobs=1): err= 0: pid=1155: Sat Jul 29 00:38:19 2017 read : io=173527MB, bw=197435KB/s, iops=49358, runt=900001msec slat (usec): min=2, max=4008, avg= 6.91, stdev= 2.74 clat (usec): min=1, max=1231.4K, avg=152.67, stdev=790.02 lat (usec): min=70, max=1231.4K, avg=160.07, stdev=790.13 clat percentiles (usec): | 1.00th=[ 105], 5.00th=[ 110], 10.00th=[ 115], 20.00th=[ 121], | 30.00th=[ 126], 40.00th=[ 133], 50.00th=[ 137], 60.00th=[ 143], | 70.00th=[ 153], 80.00th=[ 163], 90.00th=[ 183], 95.00th=[ 205], | 99.00th=[ 266], 99.50th=[ 298], 99.90th=[ 430], 99.95th=[ 548], | 99.99th=[24192] lat (usec) : 2=0.01%, 50=0.01%, 100=0.10%, 250=98.42%, 500=1.42% lat (usec) : 750=0.02%, 1000=0.01% lat (msec) : 2=0.01%, 4=0.01%, 10=0.01%, 20=0.01%, 50=0.01% lat (msec) : 100=0.01%, 250=0.01%, 500=0.01%, 750=0.01%, 1000=0.01% lat (msec) : 2000=0.01% cpu : usr=12.64%, sys=46.41%, ctx=18940551, majf=0, minf=15 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=44422812/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 Run status group 0 (all jobs): READ: io=356647MB, aggrb=405784KB/s, minb=197434KB/s, maxb=208350KB/s, mint=900001msec, maxt=900001msec Disk stats (read/write): dm-2: ios=91291408/28, merge=0/0, ticks=13391864/1088, in_queue=13429116, util=100.00%, aggrios=30455976/37704, aggrmerge=0/0, aggrticks=4468269/553084, aggrin_queue=5032300, aggrutil=100.00% dm-1: ios=20/46840, merge=0/0, ticks=4/8444, in_queue=8452, util=0.72%, aggrios=91341450/45704, aggrmerge=35/6871, aggrticks=12941984/9032, aggrin_queue=12962160, aggrutil=100.00% xvdc: ios=91341450/45704, merge=35/6871, ticks=12941984/9032, in_queue=12962160, util=100.00% dm-0: ios=91341465/6637, merge=0/0, ticks=12928860/1388, in_queue=12963072, util=100.00% dm-3: ios=26445/59635, merge=0/0, ticks=475944/1649420, in_queue=2125376, util=22.10%, aggrios=26445/59598, aggrmerge=0/37, aggrticks=475956/1637996, aggrin_queue=2113944, aggrutil=22.10% xvdd: ios=26445/59598, merge=0/37, ticks=475956/1637996, in_queue=2113944, util=22.10% Full cache $ (cd /srv/cache/fio && FIOTEST=lvmcache-full-4.12.0-rc7+ fio ~/partial.fio) partial: (g=0): rw=randread, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=8 ... fio-2.16 Starting 2 processes partial: Laying out IO file(s) (1 file(s) / 2048MB) partial: Laying out IO file(s) (1 file(s) / 2048MB) Jobs: 2 (f=0): [f(2)] [100.0% done] [395.1MB/0KB/0KB /s] [101K/0/0 iops] [eta 00m:00s] partial: (groupid=0, jobs=1): err= 0: pid=1692: Sat Jul 29 01:03:52 2017 read : io=80360MB, bw=91432KB/s, iops=22857, runt=900001msec slat (usec): min=2, max=2817, avg= 6.86, stdev= 2.92 clat (usec): min=29, max=1517.4K, avg=340.64, stdev=5499.29 lat (usec): min=70, max=1517.4K, avg=347.99, stdev=5499.77 clat percentiles (usec): | 1.00th=[ 104], 5.00th=[ 108], 10.00th=[ 112], 20.00th=[ 120], | 30.00th=[ 124], 40.00th=[ 129], 50.00th=[ 135], 60.00th=[ 143], | 70.00th=[ 153], 80.00th=[ 171], 90.00th=[ 205], 95.00th=[ 247], | 99.00th=[ 346], 99.50th=[ 414], 99.90th=[57600], 99.95th=[104960], | 99.99th=[248832] lat (usec) : 50=0.01%, 100=0.11%, 250=95.21%, 500=4.30%, 750=0.03% lat (usec) : 1000=0.02% lat (msec) : 2=0.03%, 4=0.01%, 10=0.01%, 20=0.07%, 50=0.11% lat (msec) : 100=0.06%, 250=0.04%, 500=0.01%, 750=0.01%, 1000=0.01% lat (msec) : 2000=0.01% cpu : usr=5.73%, sys=21.81%, ctx=10535581, majf=0, minf=16 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=20572128/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 partial: (groupid=0, jobs=1): err= 0: pid=1693: Sat Jul 29 01:03:52 2017 read : io=78767MB, bw=89620KB/s, iops=22404, runt=900001msec slat (usec): min=2, max=4079, avg= 6.86, stdev= 3.00 clat (usec): min=37, max=1305.7K, avg=347.72, stdev=5796.35 lat (usec): min=70, max=1305.7K, avg=355.07, stdev=5796.74 clat percentiles (usec): | 1.00th=[ 103], 5.00th=[ 108], 10.00th=[ 112], 20.00th=[ 119], | 30.00th=[ 124], 40.00th=[ 129], 50.00th=[ 135], 60.00th=[ 141], | 70.00th=[ 149], 80.00th=[ 161], 90.00th=[ 181], 95.00th=[ 203], | 99.00th=[ 270], 99.50th=[ 350], 99.90th=[62208], 99.95th=[111104], | 99.99th=[264192] lat (usec) : 50=0.01%, 100=0.14%, 250=98.33%, 500=1.15%, 750=0.02% lat (usec) : 1000=0.01% lat (msec) : 2=0.02%, 4=0.01%, 10=0.02%, 20=0.07%, 50=0.11% lat (msec) : 100=0.06%, 250=0.05%, 500=0.01%, 750=0.01%, 1000=0.01% lat (msec) : 2000=0.01% cpu : usr=5.40%, sys=21.50%, ctx=9823341, majf=0, minf=14 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=20164463/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 Run status group 0 (all jobs): READ: io=159127MB, aggrb=181051KB/s, minb=89619KB/s, maxb=91431KB/s, mint=900001msec, maxt=900001msec Disk stats (read/write): dm-2: ios=40711294/29, merge=0/0, ticks=13985492/1604, in_queue=14002044, util=100.00%, aggrios=13600731/192513, aggrmerge=0/0, aggrticks=5441234/38712, aggrin_queue=5484525, aggrutil=70.85% dm-1: ios=26/511933, merge=0/0, ticks=4/63176, in_queue=63180, util=4.35%, aggrios=40605636/559333, aggrmerge=1/16864, aggrticks=5853336/73380, aggrin_queue=5930420, aggrutil=72.72% xvdc: ios=40605636/559333, merge=1/16864, ticks=5853336/73380, in_queue=5930420, util=72.72% dm-0: ios=40605611/64403, merge=0/0, ticks=5848084/12288, in_queue=5874032, util=70.85% dm-3: ios=196556/1204, merge=0/0, ticks=10475616/40672, in_queue=10516364, util=65.70%, aggrios=196556/1201, aggrmerge=0/3, aggrticks=10475564/39108, aggrin_queue=10514664, aggrutil=65.70% xvdd: ios=196556/1201, merge=0/3, ticks=10475564/39108, in_queue=10514664, util=65.70% 4.12.0-rc4+458bc30cec26 (2017-07-04 22:35:16 +0100)

Over 20k average IOPS on the run against a full cache means this was marked fixed.

Empty cache $ (cd /srv/cache/fio && FIOTEST=lvmcache-empty-4.12.0-rc4+ fio ~/partial.fio) partial: (g=0): rw=randread, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=8 ... fio-2.16 Starting 2 processes partial: Laying out IO file(s) (1 file(s) / 2048MB) partial: Laying out IO file(s) (1 file(s) / 2048MB) Jobs: 2 (f=2): [r(2)] [100.0% done] [395.4MB/0KB/0KB /s] [101K/0/0 iops] [eta 00m:00s] partial: (groupid=0, jobs=1): err= 0: pid=1087: Sat Jul 29 02:19:19 2017 read : io=175192MB, bw=199329KB/s, iops=49832, runt=900001msec slat (usec): min=0, max=3864, avg= 6.57, stdev= 3.22 clat (usec): min=30, max=267928, avg=151.65, stdev=87.18 lat (usec): min=69, max=267942, avg=158.71, stdev=87.17 clat percentiles (usec): | 1.00th=[ 104], 5.00th=[ 110], 10.00th=[ 114], 20.00th=[ 121], | 30.00th=[ 127], 40.00th=[ 133], 50.00th=[ 139], 60.00th=[ 145], | 70.00th=[ 155], 80.00th=[ 171], 90.00th=[ 203], 95.00th=[ 245], | 99.00th=[ 334], 99.50th=[ 374], 99.90th=[ 462], 99.95th=[ 516], | 99.99th=[ 1096] lat (usec) : 50=0.01%, 100=0.13%, 250=95.23%, 500=4.58%, 750=0.04% lat (usec) : 1000=0.01% lat (msec) : 2=0.01%, 4=0.01%, 10=0.01%, 20=0.01%, 50=0.01% lat (msec) : 100=0.01%, 250=0.01%, 500=0.01% cpu : usr=11.80%, sys=44.52%, ctx=20627701, majf=0, minf=16 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=44849083/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 partial: (groupid=0, jobs=1): err= 0: pid=1088: Sat Jul 29 02:19:19 2017 read : io=169484MB, bw=192835KB/s, iops=48208, runt=900001msec slat (usec): min=0, max=920, avg= 6.65, stdev= 3.13 clat (usec): min=27, max=395221, avg=156.93, stdev=712.11 lat (usec): min=64, max=395249, avg=164.07, stdev=712.24 clat percentiles (usec): | 1.00th=[ 92], 5.00th=[ 108], 10.00th=[ 113], 20.00th=[ 120], | 30.00th=[ 125], 40.00th=[ 131], 50.00th=[ 137], 60.00th=[ 143], | 70.00th=[ 153], 80.00th=[ 167], 90.00th=[ 197], 95.00th=[ 235], | 99.00th=[ 322], 99.50th=[ 358], 99.90th=[ 466], 99.95th=[ 636], | 99.99th=[29056] lat (usec) : 50=0.01%, 100=1.35%, 250=94.81%, 500=3.76%, 750=0.03% lat (usec) : 1000=0.01% lat (msec) : 2=0.01%, 4=0.01%, 10=0.01%, 20=0.01%, 50=0.01% lat (msec) : 100=0.01%, 250=0.01%, 500=0.01% cpu : usr=11.83%, sys=43.37%, ctx=19677405, majf=0, minf=14 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=43387901/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 Run status group 0 (all jobs): READ: io=344676MB, aggrb=392163KB/s, minb=192834KB/s, maxb=199329KB/s, mint=900001msec, maxt=900001msec Disk stats (read/write): dm-2: ios=88216016/26, merge=0/0, ticks=13519572/1384, in_queue=13556832, util=100.00%, aggrios=29434288/40523, aggrmerge=0/0, aggrticks=4526756/395165, aggrin_queue=4932334, aggrutil=100.00% dm-1: ios=16/55677, merge=0/0, ticks=0/10000, in_queue=10004, util=0.85%, aggrios=88278149/52300, aggrmerge=0/9623, aggrticks=13075608/10432, aggrin_queue=13103668, aggrutil=100.00% xvdc: ios=88278149/52300, merge=0/9623, ticks=13075608/10432, in_queue=13103668, util=100.00% dm-0: ios=88278133/7958, merge=0/0, ticks=13062252/1688, in_queue=13095112, util=100.00% dm-3: ios=24715/57934, merge=0/0, ticks=518016/1173808, in_queue=1691888, util=19.21%, aggrios=24715/57931, aggrmerge=0/3, aggrticks=518016/1170636, aggrin_queue=1688652, aggrutil=19.21% xvdd: ios=24715/57931, merge=0/3, ticks=518016/1170636, in_queue=1688652, util=19.21% Full cache $ (cd /srv/cache/fio && FIOTEST=lvmcache-full-4.12.0-rc4+ fio ~/partial.fio) partial: (g=0): rw=randread, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=8 ... fio-2.16 Starting 2 processes partial: Laying out IO file(s) (1 file(s) / 2048MB) partial: Laying out IO file(s) (1 file(s) / 2048MB) Jobs: 2 (f=1): [f(2)] [100.0% done] [397.5MB/0KB/0KB /s] [102K/0/0 iops] [eta 00m:00s] partial: (groupid=0, jobs=1): err= 0: pid=1441: Sat Jul 29 02:36:06 2017 read : io=87028MB, bw=99018KB/s, iops=24754, runt=900001msec slat (usec): min=0, max=2668, avg= 6.39, stdev= 3.49 clat (usec): min=4, max=1267.9K, avg=314.52, stdev=5200.82 lat (usec): min=70, max=1267.1K, avg=321.40, stdev=5201.22 clat percentiles (usec): | 1.00th=[ 103], 5.00th=[ 108], 10.00th=[ 112], 20.00th=[ 118], | 30.00th=[ 123], 40.00th=[ 129], 50.00th=[ 133], 60.00th=[ 139], | 70.00th=[ 147], 80.00th=[ 157], 90.00th=[ 179], 95.00th=[ 201], | 99.00th=[ 274], 99.50th=[ 354], 99.90th=[52480], 99.95th=[95744], | 99.99th=[236544] lat (usec) : 10=0.01%, 50=0.01%, 100=0.15%, 250=98.28%, 500=1.22% lat (usec) : 750=0.02%, 1000=0.02% lat (msec) : 2=0.02%, 4=0.01%, 10=0.01%, 20=0.07%, 50=0.10% lat (msec) : 100=0.06%, 250=0.04%, 500=0.01%, 750=0.01%, 1000=0.01% lat (msec) : 2000=0.01% cpu : usr=5.77%, sys=21.69%, ctx=10852657, majf=0, minf=17 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=22279060/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 partial: (groupid=0, jobs=1): err= 0: pid=1442: Sat Jul 29 02:36:06 2017 read : io=75046MB, bw=85385KB/s, iops=21346, runt=900001msec slat (usec): min=0, max=2520, avg= 6.59, stdev= 3.40 clat (usec): min=18, max=1428.8K, avg=365.77, stdev=5975.46 lat (usec): min=70, max=1428.8K, avg=372.86, stdev=5975.77 clat percentiles (usec): | 1.00th=[ 104], 5.00th=[ 111], 10.00th=[ 116], 20.00th=[ 122], | 30.00th=[ 127], 40.00th=[ 133], 50.00th=[ 139], 60.00th=[ 145], | 70.00th=[ 155], 80.00th=[ 173], 90.00th=[ 207], 95.00th=[ 249], | 99.00th=[ 350], 99.50th=[ 426], 99.90th=[63744], 99.95th=[112128], | 99.99th=[264192] lat (usec) : 20=0.01%, 50=0.01%, 100=0.11%, 250=94.94%, 500=4.55% lat (usec) : 750=0.03%, 1000=0.01% lat (msec) : 2=0.02%, 4=0.01%, 10=0.02%, 20=0.08%, 50=0.12% lat (msec) : 100=0.07%, 250=0.05%, 500=0.01%, 750=0.01%, 1000=0.01% lat (msec) : 2000=0.01% cpu : usr=5.28%, sys=19.54%, ctx=9973368, majf=0, minf=15 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=19211686/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 Run status group 0 (all jobs): READ: io=162073MB, aggrb=184403KB/s, minb=85385KB/s, maxb=99017KB/s, mint=900001msec, maxt=900001msec Disk stats (read/write): dm-2: ios=41467013/28, merge=0/0, ticks=13982352/436, in_queue=14002096, util=100.00%, aggrios=13852123/192595, aggrmerge=0/0, aggrticks=5439580/41926, aggrin_queue=5486213, aggrutil=71.52% dm-1: ios=40/512174, merge=0/0, ticks=16/65512, in_queue=65540, util=4.37%, aggrios=41359847/559061, aggrmerge=1/17352, aggrticks=5953780/75680, aggrin_queue=6035140, aggrutil=73.41% xvdc: ios=41359847/559061, merge=1/17352, ticks=5953780/75680, in_queue=6035140, util=73.41% dm-0: ios=41359808/64396, merge=0/0, ticks=5949272/12428, in_queue=5975644, util=71.52% dm-3: ios=196521/1217, merge=0/0, ticks=10369452/47840, in_queue=10417456, util=65.41%, aggrios=196521/1215, aggrmerge=0/2, aggrticks=10369400/46792, aggrin_queue=10416188, aggrutil=65.41% xvdd: ios=196521/1215, merge=0/2, ticks=10369400/46792, in_queue=10416188, util=65.41% 4.12.0-rc2+b870aa901f4b (2017-05-31 19:29:48 -0400)

Over 20k average IOPS on the run against a full cache means this was marked fixed.

Empty cache $ (cd /srv/cache/fio && FIOTEST=lvmcache-empty-4.12.0-rc2+ fio ~/partial.fio) partial: (g=0): rw=randread, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=8 ... fio-2.16 Starting 2 processes partial: Laying out IO file(s) (1 file(s) / 2048MB) partial: Laying out IO file(s) (1 file(s) / 2048MB) Jobs: 2 (f=2): [r(2)] [100.0% done] [387.1MB/0KB/0KB /s] [99.3K/0/0 iops] [eta 00m:00s] partial: (groupid=0, jobs=1): err= 0: pid=1034: Sat Jul 29 03:42:15 2017 read : io=170714MB, bw=194235KB/s, iops=48558, runt=900001msec slat (usec): min=0, max=5188, avg= 7.17, stdev= 3.84 clat (usec): min=33, max=868253, avg=154.79, stdev=246.43 lat (usec): min=74, max=868258, avg=162.45, stdev=246.45 clat percentiles (usec): | 1.00th=[ 106], 5.00th=[ 112], 10.00th=[ 118], 20.00th=[ 125], | 30.00th=[ 131], 40.00th=[ 137], 50.00th=[ 143], 60.00th=[ 151], | 70.00th=[ 161], 80.00th=[ 175], 90.00th=[ 203], 95.00th=[ 239], | 99.00th=[ 326], 99.50th=[ 362], 99.90th=[ 454], 99.95th=[ 510], | 99.99th=[ 1176] lat (usec) : 50=0.01%, 100=0.07%, 250=95.81%, 500=4.06%, 750=0.03% lat (usec) : 1000=0.01% lat (msec) : 2=0.01%, 4=0.01%, 10=0.01%, 20=0.01%, 50=0.01% lat (msec) : 100=0.01%, 250=0.01%, 500=0.01%, 750=0.01%, 1000=0.01% cpu : usr=13.58%, sys=46.69%, ctx=17639239, majf=0, minf=17 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=43702872/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 partial: (groupid=0, jobs=1): err= 0: pid=1035: Sat Jul 29 03:42:15 2017 read : io=166633MB, bw=189591KB/s, iops=47397, runt=900001msec slat (usec): min=0, max=5427, avg= 7.20, stdev= 3.86 clat (usec): min=25, max=1052.1K, avg=158.78, stdev=971.36 lat (usec): min=67, max=1052.1K, avg=166.47, stdev=971.50 clat percentiles (usec): | 1.00th=[ 105], 5.00th=[ 111], 10.00th=[ 116], 20.00th=[ 123], | 30.00th=[ 129], 40.00th=[ 135], 50.00th=[ 141], 60.00th=[ 147], | 70.00th=[ 157], 80.00th=[ 169], 90.00th=[ 191], 95.00th=[ 211], | 99.00th=[ 274], 99.50th=[ 310], 99.90th=[ 454], 99.95th=[ 740], | 99.99th=[31104] lat (usec) : 50=0.01%, 100=0.09%, 250=98.15%, 500=1.69%, 750=0.02% lat (usec) : 1000=0.01% lat (msec) : 2=0.01%, 4=0.01%, 10=0.01%, 20=0.01%, 50=0.01% lat (msec) : 100=0.01%, 250=0.01%, 500=0.01%, 750=0.01%, 2000=0.01% cpu : usr=13.55%, sys=45.80%, ctx=17358595, majf=0, minf=16 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=42657995/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 Run status group 0 (all jobs): READ: io=337347MB, aggrb=383825KB/s, minb=189590KB/s, maxb=194234KB/s, mint=900001msec, maxt=900001msec Disk stats (read/write): dm-2: ios=86351783/28, merge=0/0, ticks=13253620/1212, in_queue=13300668, util=100.00%, aggrios=28809668/39785, aggrmerge=0/0, aggrticks=4427297/502156, aggrin_queue=4941461, aggrutil=100.00% dm-1: ios=23/51212, merge=0/0, ticks=0/9628, in_queue=9632, util=0.83%, aggrios=86400786/48163, aggrmerge=36/10034, aggrticks=12739236/9992, aggrin_queue=12763444, aggrutil=100.00% xvdc: ios=86400786/48163, merge=36/10034, ticks=12739236/9992, in_queue=12763444, util=100.00% dm-0: ios=86400799/7291, merge=0/0, ticks=12710904/1508, in_queue=12748372, util=100.00% dm-3: ios=28182/60853, merge=0/0, ticks=570988/1495332, in_queue=2066380, util=21.95%, aggrios=28182/60807, aggrmerge=0/46, aggrticks=570992/1486948, aggrin_queue=2057924, aggrutil=21.95% xvdd: ios=28182/60807, merge=0/46, ticks=570992/1486948, in_queue=2057924, util=21.95% Full cache $ (cd /srv/cache/fio && FIOTEST=lvmcache-full-4.12.0-rc2+ fio ~/partial.fio) partial: (g=0): rw=randread, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=8 ... fio-2.16 Starting 2 processes partial: Laying out IO file(s) (1 file(s) / 2048MB) partial: Laying out IO file(s) (1 file(s) / 2048MB) Jobs: 2 (f=2): [r(2)] [100.0% done] [373.7MB/0KB/0KB /s] [95.7K/0/0 iops] [eta 00m:00s] partial: (groupid=0, jobs=1): err= 0: pid=1530: Sat Jul 29 03:59:03 2017 read : io=76723MB, bw=87294KB/s, iops=21823, runt=900001msec slat (usec): min=0, max=2653, avg= 6.62, stdev= 4.06 clat (usec): min=30, max=1178.5K, avg=357.41, stdev=5505.55 lat (usec): min=70, max=1178.5K, avg=364.48, stdev=5505.64 clat percentiles (usec): | 1.00th=[ 105], 5.00th=[ 112], 10.00th=[ 117], 20.00th=[ 124], | 30.00th=[ 131], 40.00th=[ 135], 50.00th=[ 143], 60.00th=[ 151], | 70.00th=[ 163], 80.00th=[ 183], 90.00th=[ 217], 95.00th=[ 262], | 99.00th=[ 374], 99.50th=[ 458], 99.90th=[61696], 99.95th=[109056], | 99.99th=[246784] lat (usec) : 50=0.01%, 100=0.09%, 250=93.93%, 500=5.55%, 750=0.06% lat (usec) : 1000=0.02% lat (msec) : 2=0.03%, 4=0.01%, 10=0.01%, 20=0.08%, 50=0.11% lat (msec) : 100=0.07%, 250=0.05%, 500=0.01%, 750=0.01%, 1000=0.01% lat (msec) : 2000=0.01% cpu : usr=5.69%, sys=19.74%, ctx=9908053, majf=0, minf=17 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=19641135/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 partial: (groupid=0, jobs=1): err= 0: pid=1531: Sat Jul 29 03:59:03 2017 read : io=74239MB, bw=84468KB/s, iops=21116, runt=900001msec slat (usec): min=0, max=317, avg= 6.86, stdev= 3.89 clat (usec): min=24, max=1537.3K, avg=369.35, stdev=5950.92 lat (usec): min=71, max=1537.3K, avg=376.68, stdev=5950.98 clat percentiles (usec): | 1.00th=[ 104], 5.00th=[ 109], 10.00th=[ 113], 20.00th=[ 120], | 30.00th=[ 126], 40.00th=[ 131], 50.00th=[ 137], 60.00th=[ 145], | 70.00th=[ 157], 80.00th=[ 173], 90.00th=[ 207], 95.00th=[ 247], | 99.00th=[ 350], 99.50th=[ 434], 99.90th=[66048], 99.95th=[116224], | 99.99th=[264192] lat (usec) : 50=0.01%, 100=0.16%, 250=95.11%, 500=4.32%, 750=0.04% lat (usec) : 1000=0.01% lat (msec) : 2=0.02%, 4=0.01%, 10=0.02%, 20=0.08%, 50=0.12% lat (msec) : 100=0.07%, 250=0.05%, 500=0.01%, 750=0.01%, 1000=0.01% lat (msec) : 2000=0.01% cpu : usr=5.71%, sys=19.66%, ctx=9087432, majf=0, minf=16 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=19005271/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 Run status group 0 (all jobs): READ: io=150963MB, aggrb=171761KB/s, minb=84467KB/s, maxb=87293KB/s, mint=900001msec, maxt=900001msec Disk stats (read/write): dm-2: ios=38629806/29, merge=0/0, ticks=13959752/3564, in_queue=13980884, util=100.00%, aggrios=12904005/192734, aggrmerge=0/0, aggrticks=5435258/41146, aggrin_queue=5481312, aggrutil=71.34% dm-1: ios=57/512619, merge=0/0, ticks=4/65252, in_queue=65272, util=4.40%, aggrios=38515218/559828, aggrmerge=0/17125, aggrticks=5837752/75716, aggrin_queue=5921004, aggrutil=73.26% xvdc: ios=38515218/559828, merge=0/17125, ticks=5837752/75716, in_queue=5921004, util=73.26% dm-0: ios=38515161/64478, merge=0/0, ticks=5828092/12596, in_queue=5855388, util=71.34% dm-3: ios=196799/1107, merge=0/0, ticks=10477680/45592, in_queue=10523276, util=65.98%, aggrios=196799/1100, aggrmerge=0/7, aggrticks=10477632/43520, aggrin_queue=10521220, aggrutil=65.98% xvdd: ios=196799/1100, merge=0/7, ticks=10477632/43520, in_queue=10521220, util=65.98% 4.12.0-rc2+6ce478291137 (2017-05-26 10:51:18 -0700)

Over 20k average IOPS on the run against a full cache means this was marked fixed.

Empty cache $ (cd /srv/cache/fio && FIOTEST=lvmcache-empty-4.12.0-rc2+6ce478291137 fio ~/partial.fio) partial: (g=0): rw=randread, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=8 ... fio-2.16 Starting 2 processes partial: Laying out IO file(s) (1 file(s) / 2048MB) partial: Laying out IO file(s) (1 file(s) / 2048MB) Jobs: 2 (f=2): [r(2)] [100.0% done] [398.7MB/0KB/0KB /s] [102K/0/0 iops] [eta 00m:00s] partial: (groupid=0, jobs=1): err= 0: pid=1324: Sat Jul 29 05:18:27 2017 read : io=181395MB, bw=206387KB/s, iops=51596, runt=900001msec slat (usec): min=0, max=3628, avg= 6.85, stdev= 3.18 clat (usec): min=31, max=650283, avg=145.71, stdev=401.45 lat (usec): min=70, max=650322, avg=153.04, stdev=401.53 clat percentiles (usec): | 1.00th=[ 104], 5.00th=[ 110], 10.00th=[ 114], 20.00th=[ 120], | 30.00th=[ 125], 40.00th=[ 131], 50.00th=[ 135], 60.00th=[ 141], | 70.00th=[ 149], 80.00th=[ 161], 90.00th=[ 179], 95.00th=[ 201], | 99.00th=[ 266], 99.50th=[ 302], 99.90th=[ 430], 99.95th=[ 502], | 99.99th=[ 1704] lat (usec) : 50=0.01%, 100=0.17%, 250=98.42%, 500=1.36%, 750=0.02% lat (usec) : 1000=0.01% lat (msec) : 2=0.01%, 4=0.01%, 10=0.01%, 20=0.01%, 50=0.01% lat (msec) : 100=0.01%, 250=0.01%, 500=0.01%, 750=0.01% cpu : usr=15.23%, sys=53.43%, ctx=19704592, majf=0, minf=18 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=46437113/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 partial: (groupid=0, jobs=1): err= 0: pid=1325: Sat Jul 29 05:18:27 2017 read : io=163235MB, bw=185725KB/s, iops=46431, runt=900001msec slat (usec): min=0, max=7249, avg= 7.00, stdev= 3.64 clat (usec): min=29, max=321686, avg=162.76, stdev=759.82 lat (usec): min=69, max=321717, avg=170.23, stdev=759.98 clat percentiles (usec): | 1.00th=[ 105], 5.00th=[ 112], 10.00th=[ 117], 20.00th=[ 124], | 30.00th=[ 129], 40.00th=[ 135], 50.00th=[ 141], 60.00th=[ 147], | 70.00th=[ 157], 80.00th=[ 173], 90.00th=[ 203], 95.00th=[ 243], | 99.00th=[ 330], 99.50th=[ 370], 99.90th=[ 474], 99.95th=[ 716], | 99.99th=[32128] lat (usec) : 50=0.01%, 100=0.12%, 250=95.44%, 500=4.36%, 750=0.03% lat (usec) : 1000=0.01% lat (msec) : 2=0.01%, 4=0.01%, 10=0.01%, 20=0.01%, 50=0.01% lat (msec) : 100=0.01%, 250=0.01%, 500=0.01% cpu : usr=13.56%, sys=49.51%, ctx=18629816, majf=0, minf=16 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=41788282/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 Run status group 0 (all jobs): READ: io=344630MB, aggrb=392112KB/s, minb=185725KB/s, maxb=206386KB/s, mint=900001msec, maxt=900001msec Disk stats (read/write): dm-2: ios=88203561/28, merge=0/0, ticks=13332148/1696, in_queue=13367996, util=100.00%, aggrios=29431008/44535, aggrmerge=0/0, aggrticks=4467504/392230, aggrin_queue=4869529, aggrutil=100.00% dm-1: ios=13/65959, merge=0/0, ticks=4/11628, in_queue=11636, util=0.98%, aggrios=88262702/62581, aggrmerge=0/10717, aggrticks=12756980/12036, aggrin_queue=12776352, aggrutil=100.00% xvdc: ios=88262702/62581, merge=0/10717, ticks=12756980/12036, in_queue=12776352, util=100.00% dm-0: ios=88262689/9237, merge=0/0, ticks=12731748/1756, in_queue=12762868, util=100.00% dm-3: ios=30323/58410, merge=0/0, ticks=670760/1163308, in_queue=1834084, util=20.15%, aggrios=30323/58407, aggrmerge=0/3, aggrticks=670772/1159656, aggrin_queue=1830424, aggrutil=20.15% xvdd: ios=30323/58407, merge=0/3, ticks=670772/1159656, in_queue=1830424, util=20.15% Full cache $ (cd /srv/cache/fio && FIOTEST=lvmcache-full-4.12.0-rc2+6ce478291137 fio ~/partial.fio) partial: (g=0): rw=randread, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=8 ... fio-2.16 Starting 2 processes partial: Laying out IO file(s) (1 file(s) / 2048MB) partial: Laying out IO file(s) (1 file(s) / 2048MB) Jobs: 2 (f=2): [r(2)] [100.0% done] [364.8MB/0KB/0KB /s] [93.4K/0/0 iops] [eta 00m:00s] partial: (groupid=0, jobs=1): err= 0: pid=1722: Sat Jul 29 05:41:43 2017 read : io=74359MB, bw=84603KB/s, iops=21150, runt=900001msec slat (usec): min=0, max=2436, avg= 6.76, stdev= 3.33 clat (usec): min=37, max=1305.6K, avg=369.04, stdev=5594.01 lat (usec): min=68, max=1305.9K, avg=376.26, stdev=5594.50 clat percentiles (usec): | 1.00th=[ 103], 5.00th=[ 109], 10.00th=[ 113], 20.00th=[ 120], | 30.00th=[ 124], 40.00th=[ 129], 50.00th=[ 135], 60.00th=[ 143], | 70.00th=[ 155], 80.00th=[ 179], 90.00th=[ 258], 95.00th=[ 346], | 99.00th=[ 532], 99.50th=[ 636], 99.90th=[63232], 99.95th=[110080], | 99.99th=[250880] lat (usec) : 50=0.01%, 100=0.17%, 250=89.28%, 500=9.28%, 750=0.88% lat (usec) : 1000=0.03% lat (msec) : 2=0.03%, 4=0.01%, 10=0.02%, 20=0.08%, 50=0.12% lat (msec) : 100=0.07%, 250=0.05%, 500=0.01%, 750=0.01%, 1000=0.01% lat (msec) : 2000=0.01% cpu : usr=6.42%, sys=22.97%, ctx=10466417, majf=0, minf=18 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=19035803/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 partial: (groupid=0, jobs=1): err= 0: pid=1723: Sat Jul 29 05:41:43 2017 read : io=75299MB, bw=85674KB/s, iops=21418, runt=900001msec slat (usec): min=0, max=2420, avg= 6.72, stdev= 3.30 clat (usec): min=32, max=1379.2K, avg=364.38, stdev=5736.94 lat (usec): min=71, max=1379.2K, avg=371.55, stdev=5737.35 clat percentiles (usec): | 1.00th=[ 103], 5.00th=[ 108], 10.00th=[ 111], 20.00th=[ 117], | 30.00th=[ 122], 40.00th=[ 127], 50.00th=[ 133], 60.00th=[ 141], | 70.00th=[ 149], 80.00th=[ 167], 90.00th=[ 205], 95.00th=[ 274], | 99.00th=[ 490], 99.50th=[ 612], 99.90th=[64768], 99.95th=[113152], | 99.99th=[259072] lat (usec) : 50=0.01%, 100=0.27%, 250=93.50%, 500=5.31%, 750=0.54% lat (usec) : 1000=0.02% lat (msec) : 2=0.02%, 4=0.01%, 10=0.02%, 20=0.08%, 50=0.12% lat (msec) : 100=0.07%, 250=0.05%, 500=0.01%, 750=0.01%, 1000=0.01% lat (msec) : 2000=0.01% cpu : usr=6.67%, sys=22.54%, ctx=10228527, majf=0, minf=16 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=19276639/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 Run status group 0 (all jobs): READ: io=149658MB, aggrb=170277KB/s, minb=84603KB/s, maxb=85673KB/s, mint=900001msec, maxt=900001msec Disk stats (read/write): dm-2: ios=38294873/29, merge=0/0, ticks=13980376/4156, in_queue=13996968, util=100.00%, aggrios=12792699/192601, aggrmerge=0/0, aggrticks=5453128/37806, aggrin_queue=5494990, aggrutil=70.72% dm-1: ios=86/512203, merge=0/0, ticks=16/61356, in_queue=61388, util=4.27%, aggrios=38180502/560167, aggrmerge=1/16429, aggrticks=5907852/71764, aggrin_queue=5984152, aggrutil=72.60% xvdc: ios=38180502/560167, merge=1/16429, ticks=5907852/71764, in_queue=5984152, util=72.60% dm-0: ios=38180417/64538, merge=0/0, ticks=5896096/12280, in_queue=5920524, util=70.72% dm-3: ios=197595/1063, merge=0/0, ticks=10463272/39784, in_queue=10503060, util=65.39%, aggrios=197595/1056, aggrmerge=0/7, aggrticks=10463272/36948, aggrin_queue=10500280, aggrutil=65.39% xvdd: ios=197595/1056, merge=0/7, ticks=10463272/36948, in_queue=10500280, util=65.39% 4.12.0-rc1+331da109ec20 (2017-05-20 08:44:22 -0700)

Over 20k average IOPS on the run against a full cache means this was marked fixed.

Empty cache $ (cd /srv/cache/fio && FIOTEST=lvmcache-empty-4.12.0-rc1+331da109ec20 fio ~/partial.fio) partial: (g=0): rw=randread, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=8 ... fio-2.16 Starting 2 processes partial: Laying out IO file(s) (1 file(s) / 2048MB) partial: Laying out IO file(s) (1 file(s) / 2048MB) Jobs: 2 (f=2): [r(2)] [100.0% done] [378.6MB/0KB/0KB /s] [96.1K/0/0 iops] [eta 00m:00s] partial: (groupid=0, jobs=1): err= 0: pid=1342: Sat Jul 29 06:54:00 2017 read : io=168144MB, bw=191310KB/s, iops=47827, runt=900001msec slat (usec): min=2, max=2850, avg= 6.93, stdev= 2.60 clat (usec): min=39, max=1150.2K, avg=157.80, stdev=403.97 lat (usec): min=70, max=1150.2K, avg=165.21, stdev=404.00 clat percentiles (usec): | 1.00th=[ 105], 5.00th=[ 111], 10.00th=[ 116], 20.00th=[ 124], | 30.00th=[ 131], 40.00th=[ 137], 50.00th=[ 145], 60.00th=[ 153], | 70.00th=[ 165], 80.00th=[ 181], 90.00th=[ 211], 95.00th=[ 247], | 99.00th=[ 330], 99.50th=[ 370], 99.90th=[ 466], 99.95th=[ 532], | 99.99th=[ 1336] lat (usec) : 50=0.01%, 100=0.08%, 250=95.27%, 500=4.58%, 750=0.04% lat (usec) : 1000=0.01% lat (msec) : 2=0.01%, 4=0.01%, 10=0.01%, 20=0.01%, 50=0.01% lat (msec) : 100=0.01%, 250=0.01%, 500=0.01%, 750=0.01%, 1000=0.01% lat (msec) : 2000=0.01% cpu : usr=12.05%, sys=45.56%, ctx=19112237, majf=0, minf=17 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=43044758/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 partial: (groupid=0, jobs=1): err= 0: pid=1343: Sat Jul 29 06:54:00 2017 read : io=162387MB, bw=184760KB/s, iops=46190, runt=900001msec slat (usec): min=2, max=3771, avg= 6.95, stdev= 2.70 clat (usec): min=18, max=528413, avg=163.71, stdev=689.58 lat (usec): min=70, max=528456, avg=171.14, stdev=689.73 clat percentiles (usec): | 1.00th=[ 104], 5.00th=[ 110], 10.00th=[ 115], 20.00th=[ 122], | 30.00th=[ 129], 40.00th=[ 135], 50.00th=[ 143], 60.00th=[ 151], | 70.00th=[ 163], 80.00th=[ 181], 90.00th=[ 211], 95.00th=[ 247], | 99.00th=[ 334], 99.50th=[ 374], 99.90th=[ 482], 99.95th=[ 708], | 99.99th=[27520] lat (usec) : 20=0.01%, 50=0.01%, 100=0.11%, 250=95.14%, 500=4.67% lat (usec) : 750=0.04%, 1000=0.01% lat (msec) : 2=0.01%, 4=0.01%, 10=0.01%, 20=0.01%, 50=0.01% lat (msec) : 100=0.01%, 250=0.01%, 500=0.01%, 750=0.01% cpu : usr=12.07%, sys=43.77%, ctx=18853321, majf=0, minf=16 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=41571072/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 Run status group 0 (all jobs): READ: io=330531MB, aggrb=376069KB/s, minb=184760KB/s, maxb=191309KB/s, mint=900001msec, maxt=900001msec Disk stats (read/write): dm-2: ios=84604087/28, merge=0/0, ticks=13465432/868, in_queue=13500164, util=100.00%, aggrios=28227541/40723, aggrmerge=0/0, aggrticks=4500645/520276, aggrin_queue=5032592, aggrutil=100.00% dm-1: ios=25/55370, merge=0/0, ticks=4/10480, in_queue=10484, util=0.88%, aggrios=84654863/53148, aggrmerge=27/9173, aggrticks=12992604/11056, aggrin_queue=13010688, aggrutil=100.00% xvdc: ios=84654863/53148, merge=27/9173, ticks=12992604/11056, in_queue=13010688, util=100.00% dm-0: ios=84654865/7809, merge=0/0, ticks=12987816/1676, in_queue=13024444, util=100.00% dm-3: ios=27734/58990, merge=0/0, ticks=514116/1548672, in_queue=2062848, util=22.31%, aggrios=27734/58961, aggrmerge=0/29, aggrticks=514100/1541080, aggrin_queue=2055176, aggrutil=22.31% xvdd: ios=27734/58961, merge=0/29, ticks=514100/1541080, in_queue=2055176, util=22.31% Full cache $ (cd /srv/cache/fio && FIOTEST=lvmcache-full-4.12.0-rc1+331da109ec20 fio ~/partial.fio) partial: (g=0): rw=randread, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=8 ... fio-2.16 Starting 2 processes partial: Laying out IO file(s) (1 file(s) / 2048MB) partial: Laying out IO file(s) (1 file(s) / 2048MB) Jobs: 2 (f=2): [r(2)] [100.0% done] [409.7MB/0KB/0KB /s] [105K/0/0 iops] [eta 00m:00s] partial: (groupid=0, jobs=1): err= 0: pid=1729: Sat Jul 29 07:10:43 2017 read : io=84440MB, bw=96074KB/s, iops=24018, runt=900001msec slat (usec): min=2, max=2584, avg= 6.82, stdev= 2.79 clat (usec): min=16, max=1503.2K, avg=323.80, stdev=5298.35 lat (usec): min=67, max=1503.2K, avg=331.09, stdev=5298.79 clat percentiles (usec): | 1.00th=[ 79], 5.00th=[ 98], 10.00th=[ 107], 20.00th=[ 115], | 30.00th=[ 122], 40.00th=[ 127], 50.00th=[ 135], 60.00th=[ 141], | 70.00th=[ 151], 80.00th=[ 165], 90.00th=[ 189], 95.00th=[ 211], | 99.00th=[ 282], 99.50th=[ 366], 99.90th=[56064], 99.95th=[100864], | 99.99th=[238592] lat (usec) : 20=0.01%, 50=0.01%, 100=5.36%, 250=92.78%, 500=1.51% lat (usec) : 750=0.03%, 1000=0.02% lat (msec) : 2=0.02%, 4=0.01%, 10=0.01%, 20=0.07%, 50=0.10% lat (msec) : 100=0.06%, 250=0.04%, 500=0.01%, 750=0.01%, 1000=0.01% lat (msec) : 2000=0.01% cpu : usr=6.09%, sys=22.54%, ctx=10504259, majf=0, minf=18 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=21616707/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 partial: (groupid=0, jobs=1): err= 0: pid=1730: Sat Jul 29 07:10:43 2017 read : io=80128MB, bw=91168KB/s, iops=22791, runt=900001msec slat (usec): min=2, max=2258, avg= 6.89, stdev= 2.81 clat (usec): min=21, max=1497.9K, avg=341.59, stdev=5610.12 lat (usec): min=66, max=1497.9K, avg=348.97, stdev=5610.53 clat percentiles (usec): | 1.00th=[ 76], 5.00th=[ 89], 10.00th=[ 104], 20.00th=[ 113], | 30.00th=[ 121], 40.00th=[ 127], 50.00th=[ 133], 60.00th=[ 141], | 70.00th=[ 151], 80.00th=[ 167], 90.00th=[ 191], 95.00th=[ 219], | 99.00th=[ 314], 99.50th=[ 394], 99.90th=[60672], 99.95th=[108032], | 99.99th=[252928] lat (usec) : 50=0.01%, 100=8.41%, 250=88.94%, 500=2.27%, 750=0.03% lat (usec) : 1000=0.02% lat (msec) : 2=0.02%, 4=0.01%, 10=0.02%, 20=0.07%, 50=0.11% lat (msec) : 100=0.06%, 250=0.05%, 500=0.01%, 750=0.01%, 1000=0.01% lat (msec) : 2000=0.01% cpu : usr=5.90%, sys=21.52%, ctx=9740291, majf=0, minf=15 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=20512763/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 Run status group 0 (all jobs): READ: io=164568MB, aggrb=187241KB/s, minb=91167KB/s, maxb=96074KB/s, mint=900001msec, maxt=900001msec Disk stats (read/write): dm-2: ios=42117663/29, merge=0/0, ticks=13957468/4044, in_queue=13976576, util=100.00%, aggrios=14065022/191669, aggrmerge=0/0, aggrticks=5437961/43466, aggrin_queue=5485902, aggrutil=71.18% dm-1: ios=23/509401, merge=0/0, ticks=4/64012, in_queue=64032, util=4.37%, aggrios=41998935/556367, aggrmerge=0/16995, aggrticks=5877544/74016, aggrin_queue=5952992, aggrutil=73.08% xvdc: ios=41998935/556367, merge=0/16995, ticks=5877544/74016, in_queue=5952992, util=73.08% dm-0: ios=41998912/64099, merge=0/0, ticks=5872440/12180, in_queue=5897884, util=71.18% dm-3: ios=196133/1507, merge=0/0, ticks=10441440/54208, in_queue=10495792, util=65.28%, aggrios=196133/1501, aggrmerge=0/6, aggrticks=10441400/51888, aggrin_queue=10493276, aggrutil=65.28% xvdd: ios=196133/1501, merge=0/6, ticks=10441400/51888, in_queue=10493276, util=65.28% 4.12.0-rc1+d51aff16e821 (2017-05-20 06:00:49 +1000)

Over 20k average IOPS on the run against a full cache means this was marked fixed.

Empty cache $ (cd /srv/cache/fio && FIOTEST=lvmcache-empty-4.12.0-rc1+d51aff16e821 fio ~/partial.fio) partial: (g=0): rw=randread, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=8 ... fio-2.16 Starting 2 processes partial: Laying out IO file(s) (1 file(s) / 2048MB) partial: Laying out IO file(s) (1 file(s) / 2048MB) Jobs: 2 (f=2): [r(2)] [100.0% done] [406.3MB/0KB/0KB /s] [104K/0/0 iops] [eta 00m:00s] partial: (groupid=0, jobs=1): err= 0: pid=1248: Sat Jul 29 08:51:19 2017 read : io=177645MB, bw=202121KB/s, iops=50530, runt=900001msec slat (usec): min=0, max=3003, avg= 7.12, stdev= 3.03 clat (usec): min=39, max=971679, avg=148.57, stdev=681.72 lat (usec): min=70, max=971686, avg=156.15, stdev=681.79 clat percentiles (usec): | 1.00th=[ 105], 5.00th=[ 110], 10.00th=[ 115], 20.00th=[ 122], | 30.00th=[ 127], 40.00th=[ 133], 50.00th=[ 137], 60.00th=[ 145], | 70.00th=[ 151], 80.00th=[ 163], 90.00th=[ 181], 95.00th=[ 201], | 99.00th=[ 262], 99.50th=[ 302], 99.90th=[ 438], 99.95th=[ 556], | 99.99th=[ 7264] lat (usec) : 50=0.01%, 100=0.11%, 250=98.53%, 500=1.30%, 750=0.03% lat (usec) : 1000=0.01% lat (msec) : 2=0.01%, 4=0.01%, 10=0.01%, 20=0.01%, 50=0.01% lat (msec) : 100=0.01%, 250=0.01%, 500=0.01%, 750=0.01%, 1000=0.01% cpu : usr=15.07%, sys=52.23%, ctx=18395569, majf=0, minf=18 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=45477192/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 partial: (groupid=0, jobs=1): err= 0: pid=1249: Sat Jul 29 08:51:19 2017 read : io=169585MB, bw=192950KB/s, iops=48237, runt=900001msec slat (usec): min=0, max=2529, avg= 7.21, stdev= 3.13 clat (usec): min=27, max=1731.8K, avg=156.00, stdev=919.90 lat (usec): min=67, max=1731.8K, avg=163.66, stdev=920.02 clat percentiles (usec): | 1.00th=[ 105], 5.00th=[ 111], 10.00th=[ 116], 20.00th=[ 123], | 30.00th=[ 129], 40.00th=[ 133], 50.00th=[ 139], 60.00th=[ 145], | 70.00th=[ 153], 80.00th=[ 165], 90.00th=[ 185], 95.00th=[ 205], | 99.00th=[ 266], 99.50th=[ 302], 99.90th=[ 450], 99.95th=[ 724], | 99.99th=[31104] lat (usec) : 50=0.01%, 100=0.19%, 250=98.36%, 500=1.38%, 750=0.03% lat (usec) : 1000=0.01% lat (msec) : 2=0.01%, 4=0.01%, 10=0.01%, 20=0.01%, 50=0.01% lat (msec) : 100=0.01%, 250=0.01%, 500=0.01%, 750=0.01%, 1000=0.01% lat (msec) : 2000=0.01% cpu : usr=14.06%, sys=50.57%, ctx=17854020, majf=0, minf=16 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=43413691/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 Run status group 0 (all jobs): READ: io=347230MB, aggrb=395070KB/s, minb=192949KB/s, maxb=202120KB/s, mint=900001msec, maxt=900001msec Disk stats (read/write): dm-2: ios=88868766/28, merge=0/0, ticks=13255048/544, in_queue=13291156, util=100.00%, aggrios=29652308/43870, aggrmerge=0/0, aggrticks=4437944/678066, aggrin_queue=5124804, aggrutil=100.00% dm-1: ios=40/65580, merge=0/0, ticks=8/11168, in_queue=11184, util=0.96%, aggrios=88925731/62252, aggrmerge=5/10546, aggrticks=12610900/11908, aggrin_queue=12628964, aggrutil=100.00% xvdc: ios=88925731/62252, merge=5/10546, ticks=12610900/11908, in_queue=12628964, util=100.00% dm-0: ios=88925696/9160, merge=0/0, ticks=12587208/1880, in_queue=12615460, util=100.00% dm-3: ios=31188/56871, merge=0/0, ticks=726616/2021152, in_queue=2747768, util=27.31%, aggrios=31188/56865, aggrmerge=0/6, aggrticks=726608/2002592, aggrin_queue=2729192, aggrutil=27.32% xvdd: ios=31188/56865, merge=0/6, ticks=726608/2002592, in_queue=2729192, util=27.32% Full cache $ (cd /srv/cache/fio && FIOTEST=lvmcache-full-4.12.0-rc1+d51aff16e821 fio ~/partial.fio) partial: (g=0): rw=randread, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=8 ... fio-2.16 Starting 2 processes partial: Laying out IO file(s) (1 file(s) / 2048MB) partial: Laying out IO file(s) (1 file(s) / 2048MB) Jobs: 2 (f=2): [r(2)] [100.0% done] [384.3MB/0KB/0KB /s] [98.4K/0/0 iops] [eta 00m:00s] partial: (groupid=0, jobs=1): err= 0: pid=1535: Sat Jul 29 09:10:07 2017 read : io=81142MB, bw=92322KB/s, iops=23080, runt=900001msec slat (usec): min=0, max=2500, avg= 6.89, stdev= 3.06 clat (usec): min=27, max=1250.7K, avg=337.19, stdev=5337.52 lat (usec): min=66, max=1250.8K, avg=344.53, stdev=5338.02 clat percentiles (usec): | 1.00th=[ 89], 5.00th=[ 107], 10.00th=[ 110], 20.00th=[ 118], | 30.00th=[ 123], 40.00th=[ 129], 50.00th=[ 135], 60.00th=[ 143], | 70.00th=[ 153], 80.00th=[ 171], 90.00th=[ 203], 95.00th=[ 245], | 99.00th=[ 358], 99.50th=[ 434], 99.90th=[57600], 99.95th=[103936], | 99.99th=[240640] lat (usec) : 50=0.01%, 100=1.73%, 250=93.69%, 500=4.18%, 750=0.04% lat (usec) : 1000=0.02% lat (msec) : 2=0.03%, 4=0.01%, 10=0.01%, 20=0.07%, 50=0.11% lat (msec) : 100=0.06%, 250=0.04%, 500=0.01%, 750=0.01%, 1000=0.01% lat (msec) : 2000=0.01% cpu : usr=6.95%, sys=23.93%, ctx=10312344, majf=0, minf=17 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=20772473/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 partial: (groupid=0, jobs=1): err= 0: pid=1536: Sat Jul 29 09:10:07 2017 read : io=73428MB, bw=83544KB/s, iops=20886, runt=900001msec slat (usec): min=0, max=1453, avg= 6.96, stdev= 2.98 clat (usec): min=15, max=1524.7K, avg=373.51, stdev=6231.54 lat (usec): min=67, max=1524.7K, avg=380.92, stdev=6231.92 clat percentiles (usec): | 1.00th=[ 90], 5.00th=[ 107], 10.00th=[ 112], 20.00th=[ 120], | 30.00th=[ 125], 40.00th=[ 131], 50.00th=[ 139], 60.00th=[ 145], | 70.00th=[ 157], 80.00th=[ 173], 90.00th=[ 203], 95.00th=[ 241], | 99.00th=[ 350], 99.50th=[ 434], 99.90th=[66048], 99.95th=[117248], | 99.99th=[276480] lat (usec) : 20=0.01%, 50=0.01%, 100=1.63%, 250=94.04%, 500=3.91% lat (usec) : 750=0.04%, 1000=0.02% lat (msec) : 2=0.02%, 4=0.01%, 10=0.02%, 20=0.08%, 50=0.12% lat (msec) : 100=0.07%, 250=0.05%, 500=0.01%, 750=0.01%, 1000=0.01% lat (msec) : 2000=0.01% cpu : usr=6.40%, sys=21.56%, ctx=9325698, majf=0, minf=15 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=18797466/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 Run status group 0 (all jobs): READ: io=154570MB, aggrb=175866KB/s, minb=83544KB/s, maxb=92321KB/s, mint=900001msec, maxt=900001msec Disk stats (read/write): dm-2: ios=39560967/29, merge=0/0, ticks=13949328/1084, in_queue=13964452, util=100.00%, aggrios=13211863/192921, aggrmerge=0/0, aggrticks=5416640/38728, aggrin_queue=5458597, aggrutil=70.47% dm-1: ios=47/513127, merge=0/0, ticks=0/64104, in_queue=64112, util=4.32%, aggrios=39438165/560401, aggrmerge=0/17140, aggrticks=5784740/74192, aggrin_queue=5861736, aggrutil=72.34% xvdc: ios=39438165/560401, merge=0/17140, ticks=5784740/74192, in_queue=5861736, util=72.34% dm-0: ios=39438118/64534, merge=0/0, ticks=5774760/12144, in_queue=5796584, util=70.47% dm-3: ios=197426/1102, merge=0/0, ticks=10475160/39936, in_queue=10515096, util=66.94%, aggrios=197426/1101, aggrmerge=0/1, aggrticks=10475168/39392, aggrin_queue=10514556, aggrutil=66.94% xvdd: ios=197426/1101, merge=0/1, ticks=10475168/39392, in_queue=10514556, util=66.94% 4.12.0-rc1+a58a260fd96b (2017-05-18 11:21:10 -0700)

Over 20k average IOPS on the run against a full cache means this was marked fixed.

Empty cache $ (cd /srv/cache/fio && FIOTEST=lvmcache-empty-4.12.0-rc1+a58a260fd96b fio ~/partial.fio) partial: (g=0): rw=randread, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=8 ... fio-2.16 Starting 2 processes partial: Laying out IO file(s) (1 file(s) / 2048MB) partial: Laying out IO file(s) (1 file(s) / 2048MB) Jobs: 2 (f=2): [r(2)] [100.0% done] [403.7MB/0KB/0KB /s] [103K/0/0 iops] [eta 00m:00s] partial: (groupid=0, jobs=1): err= 0: pid=1469: Sat Jul 29 10:38:52 2017 read : io=178006MB, bw=202531KB/s, iops=50632, runt=900001msec slat (usec): min=0, max=6867, avg= 7.12, stdev= 3.46 clat (usec): min=32, max=1286.2K, avg=148.28, stdev=540.32 lat (usec): min=67, max=1286.2K, avg=155.87, stdev=540.36 clat percentiles (usec): | 1.00th=[ 105], 5.00th=[ 111], 10.00th=[ 116], 20.00th=[ 123], | 30.00th=[ 129], 40.00th=[ 133], 50.00th=[ 139], 60.00th=[ 145], | 70.00th=[ 153], 80.00th=[ 165], 90.00th=[ 185], 95.00th=[ 207], | 99.00th=[ 270], 99.50th=[ 306], 99.90th=[ 430], 99.95th=[ 494], | 99.99th=[ 1352] lat (usec) : 50=0.01%, 100=0.12%, 250=98.28%, 500=1.55%, 750=0.02% lat (usec) : 1000=0.01% lat (msec) : 2=0.01%, 4=0.01%, 10=0.01%, 20=0.01%, 50=0.01% lat (msec) : 100=0.01%, 250=0.01%, 500=0.01%, 750=0.01%, 1000=0.01% lat (msec) : 2000=0.01% cpu : usr=15.17%, sys=54.06%, ctx=18845932, majf=0, minf=17 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=45569414/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 partial: (groupid=0, jobs=1): err= 0: pid=1470: Sat Jul 29 10:38:52 2017 read : io=173743MB, bw=197681KB/s, iops=49420, runt=900001msec slat (usec): min=0, max=3071, avg= 7.07, stdev= 3.36 clat (usec): min=19, max=1304.0K, avg=152.23, stdev=680.26 lat (usec): min=69, max=1304.2K, avg=159.77, stdev=680.38 clat percentiles (usec): | 1.00th=[ 104], 5.00th=[ 110], 10.00th=[ 115], 20.00th=[ 122], | 30.00th=[ 127], 40.00th=[ 133], 50.00th=[ 137], 60.00th=[ 143], | 70.00th=[ 153], 80.00th=[ 163], 90.00th=[ 185], 95.00th=[ 205], | 99.00th=[ 266], 99.50th=[ 302], 99.90th=[ 438], 99.95th=[ 588], | 99.99th=[22912] lat (usec) : 20=0.01%, 50=0.01%, 100=0.17%, 250=98.29%, 500=1.48% lat (usec) : 750=0.02%, 1000=0.01% lat (msec) : 2=0.01%, 4=0.01%, 10=0.01%, 20=0.01%, 50=0.01% lat (msec) : 100=0.01%, 250=0.01%, 500=0.01%, 750=0.01%, 1000=0.01% lat (msec) : 2000=0.01% cpu : usr=15.16%, sys=52.26%, ctx=18799543, majf=0, minf=15 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=44478196/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 Run status group 0 (all jobs): READ: io=351748MB, aggrb=400211KB/s, minb=197680KB/s, maxb=202530KB/s, mint=900001msec, maxt=900001msec Disk stats (read/write): dm-2: ios=90047147/28, merge=0/0, ticks=13242192/1464, in_queue=13298304, util=100.00%, aggrios=30038236/40110, aggrmerge=0/0, aggrticks=4422056/701994, aggrin_queue=5135569, aggrutil=100.00% dm-1: ios=45/53246, merge=0/0, ticks=8/9560, in_queue=9572, util=0.81%, aggrios=90087618/50539, aggrmerge=21/8883, aggrticks=12812936/9916, aggrin_queue=12830368, aggrutil=100.00% xvdc: ios=90087618/50539, merge=21/8883, ticks=12812936/9916, in_queue=12830368, util=100.00% dm-0: ios=90087594/7476, merge=0/0, ticks=12789572/1472, in_queue=12825580, util=100.00% dm-3: ios=27070/59608, merge=0/0, ticks=476588/2094952, in_queue=2571556, util=26.41%, aggrios=27070/59583, aggrmerge=0/25, aggrticks=476596/2078296, aggrin_queue=2554892, aggrutil=26.41% xvdd: ios=27070/59583, merge=0/25, ticks=476596/2078296, in_queue=2554892, util=26.41% Full cache $ (cd /srv/cache/fio && FIOTEST=lvmcache-full-4.12.0-rc1+a58a260fd96b fio ~/partial.fio) partial: (g=0): rw=randread, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=8 ... fio-2.16 Starting 2 processes partial: Laying out IO file(s) (1 file(s) / 2048MB) partial: Laying out IO file(s) (1 file(s) / 2048MB) Jobs: 2 (f=2): [r(2)] [100.0% done] [369.8MB/0KB/0KB /s] [94.7K/0/0 iops] [eta 00m:00s] partial: (groupid=0, jobs=1): err= 0: pid=1970: Sat Jul 29 11:17:21 2017 read : io=77095MB, bw=87717KB/s, iops=21929, runt=900001msec slat (usec): min=0, max=2471, avg= 6.97, stdev= 3.30 clat (usec): min=4, max=1523.7K, avg=355.35, stdev=5578.26 lat (usec): min=64, max=1523.7K, avg=362.77, stdev=5578.75 clat percentiles (usec): | 1.00th=[ 101], 5.00th=[ 108], 10.00th=[ 111], 20.00th=[ 120], | 30.00th=[ 125], 40.00th=[ 133], 50.00th=[ 143], 60.00th=[ 153], | 70.00th=[ 167], 80.00th=[ 185], 90.00th=[ 213], 95.00th=[ 247], | 99.00th=[ 346], 99.50th=[ 426], 99.90th=[61184], 99.95th=[108032], | 99.99th=[248832] lat (usec) : 10=0.01%, 50=0.01%, 100=0.83%, 250=94.43%, 500=4.33% lat (usec) : 750=0.04%, 1000=0.02% lat (msec) : 2=0.03%, 4=0.01%, 10=0.02%, 20=0.08%, 50=0.11% lat (msec) : 100=0.07%, 250=0.05%, 500=0.01%, 750=0.01%, 1000=0.01% lat (msec) : 2000=0.01% cpu : usr=6.49%, sys=24.26%, ctx=10152879, majf=0, minf=18 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=19736266/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 partial: (groupid=0, jobs=1): err= 0: pid=1971: Sat Jul 29 11:17:21 2017 read : io=70627MB, bw=80357KB/s, iops=20089, runt=900001msec slat (usec): min=0, max=1736, avg= 6.99, stdev= 3.37 clat (usec): min=17, max=1334.4K, avg=388.69, stdev=6080.75 lat (usec): min=62, max=1334.4K, avg=396.14, stdev=6081.19 clat percentiles (usec): | 1.00th=[ 101], 5.00th=[ 108], 10.00th=[ 114], 20.00th=[ 122], | 30.00th=[ 129], 40.00th=[ 137], 50.00th=[ 147], 60.00th=[ 159], | 70.00th=[ 173], 80.00th=[ 191], 90.00th=[ 225], 95.00th=[ 262], | 99.00th=[ 366], 99.50th=[ 454], 99.90th=[69120], 99.95th=[119296], | 99.99th=[272384] lat (usec) : 20=0.01%, 50=0.01%, 100=0.76%, 250=92.96%, 500=5.83% lat (usec) : 750=0.04%, 1000=0.02% lat (msec) : 2=0.02%, 4=0.01%, 10=0.02%, 20=0.08%, 50=0.12% lat (msec) : 100=0.07%, 250=0.05%, 500=0.01%, 750=0.01%, 1000=0.01% lat (msec) : 2000=0.01% cpu : usr=5.95%, sys=22.37%, ctx=9542001, majf=0, minf=16 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=18080386/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 Run status group 0 (all jobs): READ: io=147721MB, aggrb=168073KB/s, minb=80357KB/s, maxb=87716KB/s, mint=900001msec, maxt=900001msec Disk stats (read/write): dm-2: ios=37811927/29, merge=0/0, ticks=13950924/2420, in_queue=13976400, util=100.00%, aggrios=12627432/192884, aggrmerge=0/0, aggrticks=5423964/40908, aggrin_queue=5469672, aggrutil=70.48% dm-1: ios=41/513019, merge=0/0, ticks=8/61768, in_queue=61776, util=4.19%, aggrios=37684593/560591, aggrmerge=0/16798, aggrticks=5810780/72380, aggrin_queue=5885452, aggrutil=72.25% xvdc: ios=37684593/560591, merge=0/16798, ticks=5810780/72380, in_queue=5885452, util=72.25% dm-0: ios=37684552/64512, merge=0/0, ticks=5808316/12596, in_queue=5835296, util=70.48% dm-3: ios=197703/1122, merge=0/0, ticks=10463568/48360, in_queue=10511944, util=65.97%, aggrios=197703/1119, aggrmerge=0/3, aggrticks=10463584/46584, aggrin_queue=10510148, aggrutil=65.97% xvdd: ios=197703/1119, merge=0/3, ticks=10463584/46584, in_queue=10510148, util=65.97% 4.12.0-rc1+243bfd2c052d (2017-05-17 14:13:44 -0700)

just 2,130 and 738 average IOPS on the run against a full cache means this was marked broken.

Empty cache $ (cd /srv/cache/fio && FIOTEST=lvmcache-empty-4.12.0-rc1+243bfd2c052d fio ~/partial.fio) partial: (g=0): rw=randread, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=8 ... fio-2.16 Starting 2 processes partial: Laying out IO file(s) (1 file(s) / 2048MB) partial: Laying out IO file(s) (1 file(s) / 2048MB) Jobs: 2 (f=2): [r(2)] [100.0% done] [223.5MB/0KB/0KB /s] [57.2K/0/0 iops] [eta 00m:00s] partial: (groupid=0, jobs=1): err= 0: pid=1033: Sat Jul 29 13:21:34 2017 read : io=136455MB, bw=155242KB/s, iops=38810, runt=900078msec slat (usec): min=0, max=26662, avg= 4.82, stdev= 6.30 clat (usec): min=21, max=880182, avg=199.68, stdev=2322.99 lat (usec): min=70, max=880190, avg=204.84, stdev=2323.29 clat percentiles (usec): | 1.00th=[ 102], 5.00th=[ 106], 10.00th=[ 109], 20.00th=[ 114], | 30.00th=[ 119], 40.00th=[ 122], 50.00th=[ 126], 60.00th=[ 131], | 70.00th=[ 137], 80.00th=[ 149], 90.00th=[ 189], 95.00th=[ 245], | 99.00th=[ 382], 99.50th=[ 446], 99.90th=[17792], 99.95th=[36608], | 99.99th=[108032] lat (usec) : 50=0.01%, 100=0.24%, 250=95.07%, 500=4.31%, 750=0.09% lat (usec) : 1000=0.05% lat (msec) : 2=0.11%, 4=0.01%, 10=0.01%, 20=0.03%, 50=0.06% lat (msec) : 100=0.02%, 250=0.01%, 500=0.01%, 750=0.01%, 1000=0.01% cpu : usr=7.38%, sys=26.41%, ctx=19119794, majf=0, minf=16 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=34932423/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 partial: (groupid=0, jobs=1): err= 0: pid=1034: Sat Jul 29 13:21:34 2017 read : io=42407MB, bw=48247KB/s, iops=12061, runt=900066msec slat (usec): min=0, max=236, avg= 7.12, stdev= 4.37 clat (usec): min=2, max=1038.3K, avg=653.49, stdev=6208.11 lat (usec): min=71, max=1038.3K, avg=661.11, stdev=6209.00 clat percentiles (usec): | 1.00th=[ 100], 5.00th=[ 104], 10.00th=[ 106], 20.00th=[ 109], | 30.00th=[ 113], 40.00th=[ 117], 50.00th=[ 120], 60.00th=[ 124], | 70.00th=[ 129], 80.00th=[ 137], 90.00th=[ 163], 95.00th=[ 237], | 99.00th=[16512], 99.50th=[35072], 99.90th=[93696], 99.95th=[123392], | 99.99th=[195584] lat (usec) : 4=0.01%, 10=0.01%, 20=0.01%, 50=0.01%, 100=0.64% lat (usec) : 250=94.91%, 500=2.76%, 750=0.11%, 1000=0.07% lat (msec) : 2=0.14%, 4=0.02%, 10=0.10%, 20=0.37%, 50=0.56% lat (msec) : 100=0.23%, 250=0.08%, 500=0.01%, 750=0.01%, 1000=0.01% lat (msec) : 2000=0.01% cpu : usr=3.63%, sys=12.48%, ctx=9079177, majf=0, minf=14 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=10856295/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 Run status group 0 (all jobs): READ: io=178862MB, aggrb=203487KB/s, minb=48246KB/s, maxb=155241KB/s, mint=900066msec, maxt=900078msec Disk stats (read/write): dm-2: ios=45783724/28, merge=0/0, ticks=14086884/552, in_queue=14099888, util=100.00%, aggrios=15302554/317325, aggrmerge=0/0, aggrticks=5324778/75793, aggrin_queue=5403120, aggrutil=100.00% dm-1: ios=5/833005, merge=0/0, ticks=0/136424, in_queue=136468, util=10.74%, aggrios=45578059/918360, aggrmerge=965/23157, aggrticks=6367068/155120, aggrin_queue=6522812, aggrutil=100.00% xvdc: ios=45578059/918360, merge=965/23157, ticks=6367068/155120, in_queue=6522812, util=100.00% dm-0: ios=45579019/109294, merge=0/0, ticks=6367368/21496, in_queue=6396436, util=100.00% dm-3: ios=328639/9676, merge=0/0, ticks=9606968/69460, in_queue=9676456, util=100.00%, aggrios=328639/8639, aggrmerge=0/1037, aggrticks=9606840/46124, aggrin_queue=9652956, aggrutil=100.00% xvdd: ios=328639/8639, merge=0/1037, ticks=9606840/46124, in_queue=9652956, util=100.00% Full cache $ (cd /srv/cache/fio && FIOTEST=lvmcache-full-4.12.0-rc1+243bfd2c052d fio ~/partial.fio) partial: (g=0): rw=randread, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=8 ... fio-2.16 Starting 2 processes partial: Laying out IO file(s) (1 file(s) / 2048MB) partial: Laying out IO file(s) (1 file(s) / 2048MB) Jobs: 2 (f=2): [r(2)] [100.0% done] [12052KB/0KB/0KB /s] [3013/0/0 iops] [eta 00m:00s] partial: (groupid=0, jobs=1): err= 0: pid=1455: Sat Jul 29 13:50:32 2017 read : io=7490.4MB, bw=8521.4KB/s, iops=2130, runt=900105msec slat (usec): min=0, max=128, avg= 1.71, stdev= 4.39 clat (usec): min=64, max=1526.2K, avg=3752.99, stdev=24771.48 lat (usec): min=73, max=1526.2K, avg=3754.82, stdev=24772.16 clat percentiles (usec): | 1.00th=[ 101], 5.00th=[ 106], 10.00th=[ 111], 20.00th=[ 115], | 30.00th=[ 117], 40.00th=[ 118], 50.00th=[ 119], 60.00th=[ 125], | 70.00th=[ 131], 80.00th=[ 133], 90.00th=[ 171], 95.00th=[12736], | 99.00th=[101888], 99.50th=[160768], 99.90th=[333824], 99.95th=[428032], | 99.99th=[692224] lat (usec) : 100=0.26%, 250=93.35%, 500=0.50%, 750=0.07%, 1000=0.06% lat (msec) : 2=0.11%, 4=0.01%, 10=0.29%, 20=1.36%, 50=1.87% lat (msec) : 100=1.09%, 250=0.82%, 500=0.18%, 750=0.02%, 1000=0.01% lat (msec) : 2000=0.01% cpu : usr=0.19%, sys=0.72%, ctx=1983309, majf=0, minf=18 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=1917523/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 partial: (groupid=0, jobs=1): err= 0: pid=1456: Sat Jul 29 13:50:32 2017 read : io=2596.8MB, bw=2953.6KB/s, iops=738, runt=900054msec slat (usec): min=0, max=154, avg= 3.92, stdev= 5.64 clat (usec): min=66, max=1527.1K, avg=10829.22, stdev=43048.40 lat (usec): min=72, max=1527.1K, avg=10833.40, stdev=43048.88 clat percentiles (usec): | 1.00th=[ 100], 5.00th=[ 105], 10.00th=[ 106], 20.00th=[ 111], | 30.00th=[ 116], 40.00th=[ 118], 50.00th=[ 120], 60.00th=[ 131], | 70.00th=[ 139], 80.00th=[ 173], 90.00th=[26240], 95.00th=[63232], | 99.00th=[201728], 99.50th=[280576], 99.90th=[501760], 99.95th=[626688], | 99.99th=[937984] lat (usec) : 100=0.47%, 250=83.17%, 500=0.37%, 750=0.09%, 1000=0.07% lat (msec) : 2=0.14%, 4=0.02%, 10=0.60%, 20=3.44%, 50=5.41% lat (msec) : 100=3.19%, 250=2.37%, 500=0.55%, 750=0.08%, 1000=0.02% lat (msec) : 2000=0.01% cpu : usr=0.14%, sys=0.48%, ctx=670686, majf=0, minf=15 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=664578/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 Run status group 0 (all jobs): READ: io=10086MB, aggrb=11474KB/s, minb=2953KB/s, maxb=8521KB/s, mint=900054msec, maxt=900105msec Disk stats (read/write): dm-2: ios=2581744/29, merge=0/0, ticks=14383904/4548, in_queue=14390016, util=100.00%, aggrios=896781/322000, aggrmerge=0/0, aggrticks=6180766/42330, aggrin_queue=6223142, aggrutil=100.00% dm-1: ios=5/857732, merge=0/0, ticks=0/101316, in_queue=101320, util=6.42%, aggrios=2363753/933247, aggrmerge=0/32409, aggrticks=294652/118376, aggrin_queue=412980, aggrutil=35.73% xvdc: ios=2363753/933247, merge=0/32409, ticks=294652/118376, in_queue=412980, util=35.73% dm-0: ios=2363748/108251, merge=0/0, ticks=294752/21128, in_queue=315924, util=31.04% dm-3: ios=326590/17, merge=0/0, ticks=18247548/4548, in_queue=18252184, util=100.00%, aggrios=326590/10, aggrmerge=0/7, aggrticks=18247532/2576, aggrin_queue=18250100, aggrutil=100.00% xvdd: ios=326590/10, merge=0/7, ticks=18247532/2576, in_queue=18250100, util=100.00% 4.12.0-rc1+f98e0eb68008 (2017-05-15 15:09:53 -0400)

Over 20k average IOPS on the run against a full cache means this was marked fixed.

Empty cache $ (cd /srv/cache/fio && FIOTEST=lvmcache-empty-4.12.0-rc1+f98e0eb68008 fio ~/partial.fio) partial: (g=0): rw=randread, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=8 ... fio-2.16 Starting 2 processes partial: Laying out IO file(s) (1 file(s) / 2048MB) partial: Laying out IO file(s) (1 file(s) / 2048MB) Jobs: 2 (f=2): [r(2)] [100.0% done] [389.1MB/0KB/0KB /s] [99.9K/0/0 iops] [eta 00m:00s] partial: (groupid=0, jobs=1): err= 0: pid=1473: Sat Jul 29 15:01:22 2017 read : io=175480MB, bw=199657KB/s, iops=49914, runt=900001msec slat (usec): min=0, max=2865, avg= 7.12, stdev= 3.47 clat (usec): min=32, max=272750, avg=150.49, stdev=61.07 lat (usec): min=82, max=272765, avg=158.13, stdev=61.08 clat percentiles (usec): | 1.00th=[ 105], 5.00th=[ 111], 10.00th=[ 116], 20.00th=[ 123], | 30.00th=[ 129], 40.00th=[ 133], 50.00th=[ 139], 60.00th=[ 145], | 70.00th=[ 155], 80.00th=[ 169], 90.00th=[ 197], 95.00th=[ 235], | 99.00th=[ 326], 99.50th=[ 362], 99.90th=[ 454], 99.95th=[ 502], | 99.99th=[ 1020] lat (usec) : 50=0.01%, 100=0.09%, 250=95.99%, 500=3.87%, 750=0.03% lat (usec) : 1000=0.01% lat (msec) : 2=0.01%, 4=0.01%, 10=0.01%, 20=0.01%, 500=0.01% cpu : usr=13.53%, sys=47.87%, ctx=18357918, majf=0, minf=16 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=44922870/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 partial: (groupid=0, jobs=1): err= 0: pid=1474: Sat Jul 29 15:01:22 2017 read : io=166695MB, bw=189662KB/s, iops=47415, runt=900001msec slat (usec): min=0, max=7688, avg= 7.16, stdev= 3.64 clat (usec): min=14, max=600437, avg=158.90, stdev=650.77 lat (usec): min=69, max=600476, avg=166.58, stdev=650.92 clat percentiles (usec): | 1.00th=[ 106], 5.00th=[ 113], 10.00th=[ 118], 20.00th=[ 124], | 30.00th=[ 129], 40.00th=[ 135], 50.00th=[ 141], 60.00th=[ 147], | 70.00th=[ 155], 80.00th=[ 171], 90.00th=[ 197], 95.00th=[ 231], | 99.00th=[ 318], 99.50th=[ 350], 99.90th=[ 454], 99.95th=[ 564], | 99.99th=[24448] lat (usec) : 20=0.01%, 50=0.01%, 100=0.06%, 250=96.33%, 500=3.54% lat (usec) : 750=0.02%, 1000=0.01% lat (msec) : 2=0.01%, 4=0.01%, 10=0.01%, 20=0.01%, 50=0.01% lat (msec) : 100=0.01%, 250=0.01%, 500=0.01%, 750=0.01% cpu : usr=13.03%, sys=45.62%, ctx=17895059, majf=0, minf=14 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=42673942/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 Run status group 0 (all jobs): READ: io=342175MB, aggrb=389318KB/s, minb=189661KB/s, maxb=199656KB/s, mint=900001msec, maxt=900001msec Disk stats (read/write): dm-2: ios=87581336/28, merge=0/0, ticks=13288760/1272, in_queue=13321684, util=100.00%, aggrios=29220805/38094, aggrmerge=0/0, aggrticks=4442181/395562, aggrin_queue=4846680, aggrutil=100.00% dm-1: ios=13/48662, merge=0/0, ticks=4/8880, in_queue=8892, util=0.76%, aggrios=87640393/44939, aggrmerge=1/9151, aggrticks=12922660/9064, aggrin_queue=12942364, aggrutil=100.00% xvdc: ios=87640393/44939, merge=1/9151, ticks=12922660/9064, in_queue=12942364, util=100.00% dm-0: ios=87640381/6972, merge=0/0, ticks=12891608/1372, in_queue=12919780, util=100.00% dm-3: ios=22021/58648, merge=0/0, ticks=434932/1176436, in_queue=1611368, util=17.77%, aggrios=22021/58631, aggrmerge=0/17, aggrticks=434920/1170812, aggrin_queue=1605732, aggrutil=17.77% xvdd: ios=22021/58631, merge=0/17, ticks=434920/1170812, in_queue=1605732, util=17.77% Full cache $ (cd /srv/cache/fio && FIOTEST=lvmcache-full-4.12.0-rc1+f98e0eb68008 fio ~/partial.fio) partial: (g=0): rw=randread, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=8 ... fio-2.16 Starting 2 processes partial: Laying out IO file(s) (1 file(s) / 2048MB) partial: Laying out IO file(s) (1 file(s) / 2048MB) Jobs: 2 (f=2): [r(2)] [100.0% done] [378.6MB/0KB/0KB /s] [96.8K/0/0 iops] [eta 00m:00s] partial: (groupid=0, jobs=1): err= 0: pid=1827: Sat Jul 29 15:19:18 2017 read : io=81213MB, bw=92402KB/s, iops=23100, runt=900001msec slat (usec): min=0, max=653, avg= 6.99, stdev= 3.51 clat (usec): min=25, max=1352.2K, avg=336.83, stdev=5321.69 lat (usec): min=72, max=1352.2K, avg=344.32, stdev=5322.11 clat percentiles (usec): | 1.00th=[ 104], 5.00th=[ 108], 10.00th=[ 112], 20.00th=[ 119], | 30.00th=[ 125], 40.00th=[ 131], 50.00th=[ 139], 60.00th=[ 149], | 70.00th=[ 159], 80.00th=[ 175], 90.00th=[ 201], 95.00th=[ 229], | 99.00th=[ 314], 99.50th=[ 390], 99.90th=[56576], 99.95th=[101888], | 99.99th=[242688] lat (usec) : 50=0.01%, 100=0.13%, 250=96.71%, 500=2.78%, 750=0.03% lat (usec) : 1000=0.01% lat (msec) : 2=0.02%, 4=0.01%, 10=0.01%, 20=0.07%, 50=0.11% lat (msec) : 100=0.06%, 250=0.04%, 500=0.01%, 750=0.01%, 1000=0.01% lat (msec) : 2000=0.01% cpu : usr=5.96%, sys=21.63%, ctx=10178854, majf=0, minf=17 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=20790563/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 partial: (groupid=0, jobs=1): err= 0: pid=1828: Sat Jul 29 15:19:18 2017 read : io=73647MB, bw=83794KB/s, iops=20948, runt=900001msec slat (usec): min=0, max=2496, avg= 7.18, stdev= 3.62 clat (usec): min=23, max=1510.2K, avg=372.08, stdev=6082.40 lat (usec): min=72, max=1510.2K, avg=379.78, stdev=6082.74 clat percentiles (usec): | 1.00th=[ 104], 5.00th=[ 110], 10.00th=[ 114], 20.00th=[ 122], | 30.00th=[ 129], 40.00th=[ 135], 50.00th=[ 143], 60.00th=[ 151], | 70.00th=[ 163], 80.00th=[ 179], 90.00th=[ 207], 95.00th=[ 237], | 99.00th=[ 330], 99.50th=[ 414], 99.90th=[65280], 99.95th=[113152], | 99.99th=[272384] lat (usec) : 50=0.01%, 100=0.13%, 250=96.03%, 500=3.44%, 750=0.03% lat (usec) : 1000=0.01% lat (msec) : 2=0.02%, 4=0.01%, 10=0.02%, 20=0.08%, 50=0.12% lat (msec) : 100=0.07%, 250=0.05%, 500=0.01%, 750=0.01%, 1000=0.01% lat (msec) : 2000=0.01% cpu : usr=5.82%, sys=20.07%, ctx=9121390, majf=0, minf=15 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=18853758/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 Run status group 0 (all jobs): READ: io=154861MB, aggrb=176196KB/s, minb=83794KB/s, maxb=92402KB/s, mint=900001msec, maxt=900001msec Disk stats (read/write): dm-2: ios=39629245/29, merge=0/0, ticks=13922184/2932, in_queue=13938180, util=100.00%, aggrios=13236641/192742, aggrmerge=0/0, aggrticks=5404900/39769, aggrin_queue=5447944, aggrutil=71.24% dm-1: ios=35/512628, merge=0/0, ticks=0/63156, in_queue=63168, util=4.26%, aggrios=39512858/560041, aggrmerge=1/16890, aggrticks=5866812/73188, aggrin_queue=5946060, aggrutil=73.11% xvdc: ios=39512858/560041, merge=1/16890, ticks=5866812/73188, in_queue=5946060, util=73.11% dm-0: ios=39512824/64453, merge=0/0, ticks=5858616/12180, in_queue=5880596, util=71.24% dm-3: ios=197065/1146, merge=0/0, ticks=10356084/43972, in_queue=10400068, util=65.55%, aggrios=197065/1143, aggrmerge=0/3, aggrticks=10356072/42172, aggrin_queue=10398236, aggrutil=65.55% xvdd: ios=197065/1143, merge=0/3, ticks=10356072/42172, in_queue=10398236, util=65.55% 4.12.0-rc1+701e03e4e180 (2017-05-14 21:54:33 -0400)

Over 20k average IOPS on the run against a full cache means this was marked fixed.

Empty cache $ (cd /srv/cache/fio && FIOTEST=lvmcache-empty-4.12.0-rc1+701e03e4e180 fio ~/partial.fio) partial: (g=0): rw=randread, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=8 ... fio-2.16 Starting 2 processes partial: Laying out IO file(s) (1 file(s) / 2048MB) partial: Laying out IO file(s) (1 file(s) / 2048MB) Jobs: 2 (f=2): [r(2)] [100.0% done] [383.6MB/0KB/0KB /s] [98.2K/0/0 iops] [eta 00m:00s] partial: (groupid=0, jobs=1): err= 0: pid=1488: Sun Jul 30 00:38:12 2017 read : io=163416MB, bw=185931KB/s, iops=46482, runt=900001msec slat (usec): min=0, max=6338, avg= 6.90, stdev= 4.29 clat (usec): min=2, max=423004, avg=162.74, stdev=659.06 lat (usec): min=70, max=423007, avg=170.12, stdev=659.18 clat percentiles (usec): | 1.00th=[ 105], 5.00th=[ 112], 10.00th=[ 117], 20.00th=[ 124], | 30.00th=[ 131], 40.00th=[ 137], 50.00th=[ 143], 60.00th=[ 153], | 70.00th=[ 163], 80.00th=[ 179], 90.00th=[ 207], 95.00th=[ 241], | 99.00th=[ 326], 99.50th=[ 362], 99.90th=[ 490], 99.95th=[ 828], | 99.99th=[23680] lat (usec) : 4=0.01%, 20=0.01%, 50=0.01%, 100=0.10%, 250=95.64% lat (usec) : 500=4.17%, 750=0.04%, 1000=0.01% lat (msec) : 2=0.01%, 4=0.01%, 10=0.01%, 20=0.01%, 50=0.01% lat (msec) : 100=0.01%, 250=0.01%, 500=0.01% cpu : usr=11.29%, sys=43.37%, ctx=18655951, majf=0, minf=17 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=41834439/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 partial: (groupid=0, jobs=1): err= 0: pid=1489: Sun Jul 30 00:38:12 2017 read : io=163729MB, bw=186287KB/s, iops=46571, runt=900001msec slat (usec): min=0, max=3379, avg= 6.91, stdev= 4.05 clat (usec): min=1, max=647713, avg=162.39, stdev=1109.49 lat (usec): min=71, max=647715, avg=169.78, stdev=1109.58 clat percentiles (usec): | 1.00th=[ 105], 5.00th=[ 112], 10.00th=[ 117], 20.00th=[ 123], | 30.00th=[ 129], 40.00th=[ 135], 50.00th=[ 141], 60.00th=[ 149], | 70.00th=[ 159], 80.00th=[ 173], 90.00th=[ 195], 95.00th=[ 219], | 99.00th=[ 286], 99.50th=[ 322], 99.90th=[ 462], 99.95th=[ 764], | 99.99th=[36096] lat (usec) : 2=0.01%, 20=0.01%, 50=0.01%, 100=0.10%, 250=97.69% lat (usec) : 500=2.13%, 750=0.03%, 1000=0.01% lat (msec) : 2=0.01%, 4=0.01%, 10=0.01%, 20=0.01%, 50=0.01% lat (msec) : 100=0.01%, 250=0.01%, 500=0.01%, 750=0.01% cpu : usr=11.62%, sys=43.26%, ctx=18444169, majf=0, minf=15 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=41914621/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 Run status group 0 (all jobs): READ: io=327145MB, aggrb=372217KB/s, minb=185930KB/s, maxb=186286KB/s, mint=900001msec, maxt=900001msec Disk stats (read/write): dm-2: ios=83732468/28, merge=0/0, ticks=13437692/4572, in_queue=13474260, util=100.00%, aggrios=27939916/52846, aggrmerge=0/0, aggrticks=4517696/389793, aggrin_queue=4918218, aggrutil=100.00% dm-1: ios=3/87822, merge=0/0, ticks=0/14672, in_queue=14672, util=1.21%, aggrios=83780322/91760, aggrmerge=1107/8163, aggrticks=12562052/16096, aggrin_queue=12583792, aggrutil=100.00% xvdc: ios=83780322/91760, merge=1107/8163, ticks=12562052/16096, in_queue=12583792, util=100.00% dm-0: ios=83781426/12436, merge=0/0, ticks=12554856/2392, in_queue=12589888, util=100.00% dm-3: ios=38320/58280, merge=0/0, ticks=998232/1152316, in_queue=2150096, util=21.10%, aggrios=38320/57106, aggrmerge=0/1182, aggrticks=998232/1128504, aggrin_queue=2126504, aggrutil=21.10% xvdd: ios=38320/57106, merge=0/1182, ticks=998232/1128504, in_queue=2126504, util=21.10% Full cache $ (cd /srv/cache/fio && FIOTEST=lvmcache-full-4.12.0-rc1+701e03e4e180 fio ~/partial.fio) partial: (g=0): rw=randread, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=8 ... fio-2.16 Starting 2 processes partial: Laying out IO file(s) (1 file(s) / 2048MB) partial: Laying out IO file(s) (1 file(s) / 2048MB) Jobs: 2 (f=2): [r(2)] [100.0% done] [396.7MB/0KB/0KB /s] [102K/0/0 iops] [eta 00m:00s] partial: (groupid=0, jobs=1): err= 0: pid=4235: Sun Jul 30 00:57:53 2017 read : io=83984MB, bw=95555KB/s, iops=23888, runt=900001msec slat (usec): min=0, max=2757, avg= 6.65, stdev= 4.15 clat (usec): min=0, max=1331.1K, avg=325.84, stdev=5327.61 lat (usec): min=70, max=1331.1K, avg=333.00, stdev=5327.93 clat percentiles (usec): | 1.00th=[ 104], 5.00th=[ 108], 10.00th=[ 113], 20.00th=[ 118], | 30.00th=[ 124], 40.00th=[ 129], 50.00th=[ 135], 60.00th=[ 141], | 70.00th=[ 149], 80.00th=[ 161], 90.00th=[ 183], 95.00th=[ 205], | 99.00th=[ 278], 99.50th=[ 362], 99.90th=[56064], 99.95th=[100864], | 99.99th=[242688] lat (usec) : 2=0.01%, 20=0.01%, 50=0.01%, 100=0.14%, 250=98.20% lat (usec) : 500=1.30%, 750=0.02%, 1000=0.01% lat (msec) : 2=0.02%, 4=0.01%, 10=0.01%, 20=0.07%, 50=0.10% lat (msec) : 100=0.06%, 250=0.04%, 500=0.01%, 750=0.01%, 1000=0.01% lat (msec) : 2000=0.01% cpu : usr=5.85%, sys=21.52%, ctx=10254989, majf=0, minf=17 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=21499909/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 partial: (groupid=0, jobs=1): err= 0: pid=4236: Sun Jul 30 00:57:53 2017 read : io=75994MB, bw=86464KB/s, iops=21616, runt=900001msec slat (usec): min=0, max=3457, avg= 6.91, stdev= 4.10 clat (usec): min=2, max=1517.1K, avg=360.70, stdev=5924.51 lat (usec): min=72, max=1517.1K, avg=368.13, stdev=5924.81 clat percentiles (usec): | 1.00th=[ 104], 5.00th=[ 110], 10.00th=[ 114], 20.00th=[ 121], | 30.00th=[ 126], 40.00th=[ 131], 50.00th=[ 137], 60.00th=[ 145], | 70.00th=[ 153], 80.00th=[ 169], 90.00th=[ 195], 95.00th=[ 227], | 99.00th=[ 326], 99.50th=[ 406], 99.90th=[64256], 99.95th=[114176], | 99.99th=[264192] lat (usec) : 4=0.01%, 10=0.01%, 20=0.01%, 50=0.01%, 100=0.11% lat (usec) : 250=96.53%, 500=2.96%, 750=0.03%, 1000=0.01% lat (msec) : 2=0.02%, 4=0.01%, 10=0.02%, 20=0.07%, 50=0.11% lat (msec) : 100=0.07%, 250=0.05%, 500=0.01%, 750=0.01%, 1000=0.01% lat (msec) : 2000=0.01% cpu : usr=5.46%, sys=20.26%, ctx=9368609, majf=0, minf=15 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=19454516/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 Run status group 0 (all jobs): READ: io=159978MB, aggrb=182019KB/s, minb=86464KB/s, maxb=95555KB/s, mint=900001msec, maxt=900001msec Disk stats (read/write): dm-2: ios=40941858/29, merge=0/0, ticks=13939452/2924, in_queue=13957884, util=100.00%, aggrios=13673355/191614, aggrmerge=0/0, aggrticks=5425713/41914, aggrin_queue=5472632, aggrutil=70.78% dm-1: ios=72/509243, merge=0/0, ticks=12/62896, in_queue=62908, util=4.30%, aggrios=40823706/556590, aggrmerge=1/16815, aggrticks=5811880/73008, aggrin_queue=5889632, aggrutil=72.65% xvdc: ios=40823706/556590, merge=1/16815, ticks=5811880/73008, in_queue=5889632, util=72.65% dm-0: ios=40823635/64315, merge=0/0, ticks=5806500/12056, in_queue=5833472, util=70.78% dm-3: ios=196358/1284, merge=0/0, ticks=10470628/50792, in_queue=10521516, util=65.71%, aggrios=196358/1281, aggrmerge=0/3, aggrticks=10470612/48468, aggrin_queue=10519068, aggrutil=65.71% xvdd: ios=196358/1281, merge=0/3, ticks=10470612/48468, in_queue=10519068, util=65.71% 4.12.0-rc1+78c45607b909 (2017-05-14 21:54:32 -0400)

The first job running against a full cache managed 17,398 average IOPS which isn’t terrible, but the second job only managed 694 average IOPS. Although this is a lot better than the worst performance seen, it is far below the best so this must be considered broken.

Empty cache $ (cd /srv/cache/fio && FIOTEST=lvmcache-empty-4.12.0-rc1+78c45607b909 fio ~/partial.fio) partial: (g=0): rw=randread, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=8 ... fio-2.16 Starting 2 processes partial: Laying out IO file(s) (1 file(s) / 2048MB) partial: Laying out IO file(s) (1 file(s) / 2048MB) Jobs: 2 (f=2): [r(2)] [100.0% done] [127.8MB/0KB/0KB /s] [32.8K/0/0 iops] [eta 00m:00s] partial: (groupid=0, jobs=1): err= 0: pid=1633: Sun Jul 30 01:32:22 2017 read : io=20052MB, bw=22814KB/s, iops=5703, runt=900027msec slat (usec): min=2, max=79803, avg= 7.19, stdev=36.71 clat (usec): min=13, max=929368, avg=1392.96, stdev=9447.28 lat (usec): min=72, max=929376, avg=1400.61, stdev=9448.72 clat percentiles (usec): | 1.00th=[ 102], 5.00th=[ 105], 10.00th=[ 108], 20.00th=[ 114], | 30.00th=[ 118], 40.00th=[ 121], 50.00th=[ 124], 60.00th=[ 131], | 70.00th=[ 143], 80.00th=[ 175], 90.00th=[ 247], 95.00th=[ 378], | 99.00th=[39168], 99.50th=[61184], 99.90th=[124416], 99.95th=[158720], | 99.99th=[257024] lat (usec) : 20=0.01%, 50=0.01%, 100=0.37%, 250=89.87%, 500=5.63% lat (usec) : 750=0.28%, 1000=0.19% lat (msec) : 2=0.30%, 4=0.01%, 10=0.16%, 20=1.05%, 50=1.44% lat (msec) : 100=0.52%, 250=0.17%, 500=0.01%, 750=0.01%, 1000=0.01% cpu : usr=1.61%, sys=5.89%, ctx=4272767, majf=0, minf=18 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=5133359/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 partial: (groupid=0, jobs=1): err= 0: pid=1634: Sun Jul 30 01:32:22 2017 read : io=70562MB, bw=80281KB/s, iops=20070, runt=900023msec slat (usec): min=2, max=63808, avg= 6.52, stdev=17.03 clat (usec): min=12, max=1526.4K, avg=389.81, stdev=4546.59 lat (usec): min=69, max=1526.4K, avg=396.77, stdev=4547.95 clat percentiles (usec): | 1.00th=[ 101], 5.00th=[ 104], 10.00th=[ 106], 20.00th=[ 108], | 30.00th=[ 112], 40.00th=[ 118], 50.00th=[ 121], 60.00th=[ 125], | 70.00th=[ 135], 80.00th=[ 159], 90.00th=[ 227], 95.00th=[ 286], | 99.00th=[ 988], 99.50th=[16064], 99.90th=[59136], 99.95th=[84480], | 99.99th=[168960] lat (usec) : 20=0.01%, 50=0.01%, 100=0.34%, 250=92.06%, 500=6.20% lat (usec) : 750=0.23%, 1000=0.18% lat (msec) : 2=0.34%, 4=0.01%, 10=0.03%, 20=0.19%, 50=0.29% lat (msec) : 100=0.10%, 250=0.03%, 500=0.01%, 750=0.01%, 1000=0.01% lat (msec) : 2000=0.01% cpu : usr=4.86%, sys=17.98%, ctx=12698034, majf=0, minf=16 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=18063745/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 Run status group 0 (all jobs): READ: io=90614MB, aggrb=103095KB/s, minb=22814KB/s, maxb=80281KB/s, mint=900023msec, maxt=900027msec Disk stats (read/write): dm-2: ios=23193142/28, merge=0/0, ticks=14243636/2712, in_queue=14251904, util=100.00%, aggrios=7849034/861075, aggrmerge=0/0, aggrticks=5211602/303989, aggrin_queue=5516568, aggrutil=99.10% dm-1: ios=1/2233198, merge=0/0, ticks=0/337548, in_queue=337612, util=25.48%, aggrios=22971489/2441741, aggrmerge=998/75445, aggrticks=3693756/390528, aggrin_queue=4083748, aggrutil=94.88% xvdc: ios=22971489/2441741, merge=998/75445, ticks=3693756/390528, in_queue=4083748, util=94.88% dm-0: ios=22972486/284707, merge=0/0, ticks=3711344/62548, in_queue=3776724, util=94.74% dm-3: ios=574615/65320, merge=0/0, ticks=11923464/511872, in_queue=12435368, util=99.10%, aggrios=574505/64312, aggrmerge=109/1008, aggrticks=11894448/464704, aggrin_queue=12359116, aggrutil=99.10% xvdd: ios=574505/64312, merge=109/1008, ticks=11894448/464704, in_queue=12359116, util=99.10% Full cache $ (cd /srv/cache/fio && FIOTEST=lvmcache-full-4.12.0-rc1+78c45607b909 fio ~/partial.fio) partial: (g=0): rw=randread, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=8 ... fio-2.16 Starting 2 processes partial: Laying out IO file(s) (1 file(s) / 2048MB) partial: Laying out IO file(s) (1 file(s) / 2048MB) Jobs: 2 (f=2): [r(2)] [100.0% done] [71928KB/0KB/0KB /s] [17.1K/0/0 iops] [eta 00m:00s] partial: (groupid=0, jobs=1): err= 0: pid=4136: Sun Jul 30 01:48:29 2017 read : io=61171MB, bw=69594KB/s, iops=17398, runt=900076msec slat (usec): min=0, max=3387, avg= 6.22, stdev= 3.45 clat (usec): min=1, max=1174.6K, avg=451.49, stdev=7201.13 lat (usec): min=68, max=1174.6K, avg=458.13, stdev=7201.29 clat percentiles (usec): | 1.00th=[ 102], 5.00th=[ 104], 10.00th=[ 106], 20.00th=[ 108], | 30.00th=[ 110], 40.00th=[ 116], 50.00th=[ 120], 60.00th=[ 121], | 70.00th=[ 123], 80.00th=[ 129], 90.00th=[ 173], 95.00th=[ 239], | 99.00th=[ 548], 99.50th=[ 7008], 99.90th=[91648], 99.95th=[150528], | 99.99th=[313344] lat (usec) : 2=0.01%, 4=0.01%, 20=0.01%, 50=0.01%, 100=0.30% lat (usec) : 250=95.24%, 500=3.42%, 750=0.18%, 1000=0.15% lat (msec) : 2=0.19%, 4=0.01%, 10=0.04%, 20=0.12%, 50=0.17% lat (msec) : 100=0.09%, 250=0.07%, 500=0.02%, 750=0.01%, 1000=0.01% lat (msec) : 2000=0.01% cpu : usr=3.99%, sys=15.44%, ctx=12579924, majf=0, minf=17 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=15659896/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 partial: (groupid=0, jobs=1): err= 0: pid=4137: Sun Jul 30 01:48:29 2017 read : io=2440.7MB, bw=2776.7KB/s, iops=694, runt=900089msec slat (usec): min=2, max=821, avg= 7.64, stdev= 2.96 clat (usec): min=1, max=1511.6K, avg=11514.55, stdev=48644.41 lat (usec): min=69, max=1511.7K, avg=11522.66, stdev=48644.81 clat percentiles (usec): | 1.00th=[ 99], 5.00th=[ 104], 10.00th=[ 106], 20.00th=[ 112], | 30.00th=[ 117], 40.00th=[ 119], 50.00th=[ 121], 60.00th=[ 123], | 70.00th=[ 126], 80.00th=[ 159], 90.00th=[22656], 95.00th=[70144], | 99.00th=[240640], 99.50th=[329728], 99.90th=[569344], 99.95th=[675840], | 99.99th=[921600] lat (usec) : 2=0.01%, 20=0.01%, 100=1.12%, 250=83.31%, 500=2.64% lat (usec) : 750=0.21%, 1000=0.15% lat (msec) : 2=0.26%, 4=0.04%, 10=0.33%, 20=1.50%, 50=4.00% lat (msec) : 100=2.81%, 250=2.69%, 500=0.77%, 750=0.13%, 1000=0.02% lat (msec) : 2000=0.01% cpu : usr=0.25%, sys=0.76%, ctx=624059, majf=0, minf=16 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=624801/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 Run status group 0 (all jobs): READ: io=63612MB, aggrb=72369KB/s, minb=2776KB/s, maxb=69593KB/s, mint=900076msec, maxt=900089msec Disk stats (read/write): dm-2: ios=16284697/27, merge=0/0, ticks=14316884/11932, in_queue=14332000, util=100.00%, aggrios=5485619/348652, aggrmerge=0/0, aggrticks=6603850/63144, aggrin_queue=6667324, aggrutil=100.00% dm-1: ios=2/873767, merge=0/0, ticks=0/151744, in_queue=151760, util=8.83%, aggrios=16104758/960703, aggrmerge=0/80804, aggrticks=2186320/160864, aggrin_queue=2346844, aggrutil=91.57% xvdc: ios=16104758/960703, merge=0/80804, ticks=2186320/160864, in_queue=2346844, util=91.57% dm-0: ios=16104756/172087, merge=0/0, ticks=2187352/31620, in_queue=2219940, util=91.28% dm-3: ios=352100/102, merge=0/0, ticks=17624200/6068, in_queue=17630272, util=100.00%, aggrios=352101/91, aggrmerge=0/11, aggrticks=17624100/3584, aggrin_queue=17627592, aggrutil=100.00% xvdd: ios=352101/91, merge=0/11, ticks=17624100/3584, in_queue=17627592, util=100.00% 4.12.0-rc1+6cf4cc8f8b3b (2017-05-14 21:54:33 -0400)

Over 20k average IOPS on the run against a full cache means this was marked fixed.

Empty cache $ (cd /srv/cache/fio && FIOTEST=lvmcache-empty-4.12.0-rc1+6cf4cc8f8b3b fio ~/partial.fio) partial: (g=0): rw=randread, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=8 ... fio-2.16 Starting 2 processes partial: Laying out IO file(s) (1 file(s) / 2048MB) partial: Laying out IO file(s) (1 file(s) / 2048MB) Jobs: 2 (f=2): [r(2)] [100.0% done] [399.9MB/0KB/0KB /s] [102K/0/0 iops] [eta 00m:00s] partial: (groupid=0, jobs=1): err= 0: pid=1314: Sun Jul 30 02:20:12 2017 read : io=132841MB, bw=151143KB/s, iops=37785, runt=900001msec slat (usec): min=2, max=4635, avg= 6.74, stdev= 3.66 clat (usec): min=1, max=1208.1K, avg=202.59, stdev=2398.09 lat (usec): min=68, max=1209.8K, avg=209.79, stdev=2398.38 clat percentiles (usec): | 1.00th=[ 103], 5.00th=[ 108], 10.00th=[ 111], 20.00th=[ 119], | 30.00th=[ 123], 40.00th=[ 129], 50.00th=[ 135], 60.00th=[ 141], | 70.00th=[ 151], 80.00th=[ 163], 90.00th=[ 189], 95.00th=[ 217], | 99.00th=[ 322], 99.50th=[ 402], 99.90th=[18560], 99.95th=[31360], | 99.99th=[88576] lat (usec) : 2=0.01%, 4=0.01%, 20=0.01%, 50=0.01%, 100=0.17% lat (usec) : 250=97.09%, 500=2.42%, 750=0.06%, 1000=0.03% lat (msec) : 2=0.05%, 4=0.01%, 10=0.02%, 20=0.05%, 50=0.07% lat (msec) : 100=0.02%, 250=0.01%, 500=0.01%, 750=0.01%, 1000=0.01% lat (msec) : 2000=0.01% cpu : usr=9.52%, sys=36.77%, ctx=17387398, majf=0, minf=18 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=34007324/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 partial: (groupid=0, jobs=1): err= 0: pid=1315: Sun Jul 30 02:20:12 2017 read : io=134807MB, bw=153381KB/s, iops=38345, runt=900001msec slat (usec): min=2, max=4192, avg= 6.64, stdev= 3.55 clat (usec): min=1, max=1525.4K, avg=199.62, stdev=3082.99 lat (usec): min=66, max=1525.4K, avg=206.71, stdev=3083.18 clat percentiles (usec): | 1.00th=[ 103], 5.00th=[ 107], 10.00th=[ 111], 20.00th=[ 118], | 30.00th=[ 122], 40.00th=[ 127], 50.00th=[ 133], 60.00th=[ 139], | 70.00th=[ 149], 80.00th=[ 161], 90.00th=[ 187], 95.00th=[ 221], | 99.00th=[ 326], 99.50th=[ 398], 99.90th=[13888], 99.95th=[26496], | 99.99th=[99840] lat (usec) : 2=0.01%, 10=0.01%, 50=0.01%, 100=0.19%, 250=96.79% lat (usec) : 500=2.73%, 750=0.05%, 1000=0.03% lat (msec) : 2=0.06%, 4=0.01%, 10=0.02%, 20=0.05%, 50=0.05% lat (msec) : 100=0.01%, 250=0.01%, 500=0.01%, 750=0.01%, 1000=0.01% lat (msec) : 2000=0.01% cpu : usr=9.82%, sys=36.76%, ctx=17659747, majf=0, minf=15 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=34510679/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 Run status group 0 (all jobs): READ: io=267648MB, aggrb=304524KB/s, minb=151143KB/s, maxb=153380KB/s, mint=900001msec, maxt=900001msec Disk stats (read/write): dm-2: ios=68501557/28, merge=0/0, ticks=13693912/524, in_queue=13720060, util=100.00%, aggrios=22876855/176918, aggrmerge=0/0, aggrticks=4875376/104950, aggrin_queue=4986021, aggrutil=98.38% dm-1: ios=19/418181, merge=0/0, ticks=4/70080, in_queue=70112, util=5.49%, aggrios=68456360/446285, aggrmerge=2397/24774, aggrticks=9939560/79736, aggrin_queue=10019744, aggrutil=98.40% xvdc: ios=68456360/446285, merge=2397/24774, ticks=9939560/79736, in_queue=10019744, util=98.40% dm-0: ios=68458738/53971, merge=0/0, ticks=9966748/12776, in_queue=9996560, util=98.38% dm-3: ios=171810/58604, merge=0/0, ticks=4659376/231996, in_queue=4891392, util=57.31%, aggrios=171801/56085, aggrmerge=9/2519, aggrticks=4655812/142768, aggrin_queue=4798556, aggrutil=57.31% xvdd: ios=171801/56085, merge=9/2519, ticks=4655812/142768, in_queue=4798556, util=57.31% Full cache $ (cd /srv/cache/fio && FIOTEST=lvmcache-full-4.12.0-rc1+6cf4cc8f8b3b fio ~/partial.fio) partial: (g=0): rw=randread, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=8 ... fio-2.16 Starting 2 processes partial: Laying out IO file(s) (1 file(s) / 2048MB) partial: Laying out IO file(s) (1 file(s) / 2048MB) Jobs: 2 (f=2): [r(2)] [100.0% done] [397.6MB/0KB/0KB /s] [102K/0/0 iops] [eta 00m:00s] partial: (groupid=0, jobs=1): err= 0: pid=3900: Sun Jul 30 02:38:37 2017 read : io=73397MB, bw=83509KB/s, iops=20877, runt=900001msec slat (usec): min=3, max=3087, avg= 6.85, stdev= 3.37 clat (usec): min=9, max=1501.2K, avg=373.90, stdev=6030.69 lat (usec): min=72, max=1501.2K, avg=381.22, stdev=6031.19 clat percentiles (usec): | 1.00th=[ 104], 5.00th=[ 109], 10.00th=[ 114], 20.00th=[ 121], | 30.00th=[ 125], 40.00th=[ 131], 50.00th=[ 137], 60.00th=[ 143], | 70.00th=[ 153], 80.00th=[ 169], 90.00th=[ 197], 95.00th=[ 235], | 99.00th=[ 338], 99.50th=[ 418], 99.90th=[69120], 99.95th=[118272], | 99.99th=[268288] lat (usec) : 10=0.01%, 50=0.01%, 100=0.10%, 250=96.05%, 500=3.43% lat (usec) : 750=0.03%, 1000=0.02% lat (msec) : 2=0.02%, 4=0.01%, 10=0.02%, 20=0.08%, 50=0.12% lat (msec) : 100=0.07%, 250=0.05%, 500=0.01%, 750=0.01%, 1000=0.01% lat (msec) : 2000=0.01% cpu : usr=5.68%, sys=20.45%, ctx=9729438, majf=0, minf=16 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=18789539/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 partial: (groupid=0, jobs=1): err= 0: pid=3901: Sun Jul 30 02:38:37 2017 read : io=76248MB, bw=86753KB/s, iops=21688, runt=900001msec slat (usec): min=3, max=3309, avg= 6.82, stdev= 3.51 clat (usec): min=1, max=1436.1K, avg=359.59, stdev=5873.40 lat (usec): min=70, max=1436.1K, avg=366.87, stdev=5873.83 clat percentiles (usec): | 1.00th=[ 103], 5.00th=[ 107], 10.00th=[ 110], 20.00th=[ 117], | 30.00th=[ 122], 40.00th=[ 127], 50.00th=[ 133], 60.00th=[ 139], | 70.00th=[ 147], 80.00th=[ 159], 90.00th=[ 181], 95.00th=[ 205], | 99.00th=[ 282], 99.50th=[ 370], 99.90th=[67072], 99.95th=[116224], | 99.99th=[268288] lat (usec) : 2=0.01%, 4=0.01%, 10=0.01%, 20=0.01%, 50=0.01% lat (usec) : 100=0.18%, 250=98.06%, 500=1.36%, 750=0.02%, 1000=0.02% lat (msec) : 2=0.02%, 4=0.01%, 10=0.02%, 20=0.07%, 50=0.12% lat (msec) : 100=0.07%, 250=0.05%, 500=0.01%, 750=0.01%, 1000=0.01% lat (msec) : 2000=0.01% cpu : usr=5.57%, sys=21.29%, ctx=9691035, majf=0, minf=14 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=19519474/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 Run status group 0 (all jobs): READ: io=149645MB, aggrb=170262KB/s, minb=83508KB/s, maxb=86753KB/s, mint=900001msec, maxt=900001msec Disk stats (read/write): dm-2: ios=38297973/29, merge=0/0, ticks=13982664/7004, in_queue=14003132, util=100.00%, aggrios=12791550/194298, aggrmerge=0/0, aggrticks=5442113/27136, aggrin_queue=5472816, aggrutil=68.60% dm-1: ios=102/517327, merge=0/0, ticks=12/62076, in_queue=62116, util=4.27%, aggrios=38174313/566608, aggrmerge=0/16117, aggrticks=5431508/72500, aggrin_queue=5506176, aggrutil=70.51% xvdc: ios=38174313/566608, merge=0/16117, ticks=5431508/72500, in_queue=5506176, util=70.51% dm-0: ios=38174211/65537, merge=0/0, ticks=5427632/12328, in_queue=5450628, util=68.60% dm-3: ios=200338/30, merge=0/0, ticks=10898696/7004, in_queue=10905704, util=68.37%, aggrios=200338/12, aggrmerge=0/18, aggrticks=10898668/2728, aggrin_queue=10901396, aggrutil=68.37% xvdd: ios=200338/12, merge=0/18, ticks=10898668/2728, in_queue=10901396, util=68.37% 4.12.0-rc1+4d44ec5ab751 (2017-05-14 21:54:33 -0400)

Although this time against a full cache both jobs manage a fairly consistent 6 or 7 thousand IOPS, this is nowhere near the level of performance we had seen before so this must be considered broken.

At this point git bisect was able to report that 6cf4cc8f8b3b was the first fixed commit.

Empty cache $ (cd /srv/cache/fio && FIOTEST=lvmcache-empty-4.12.0-rc1+4d44ec5ab751 fio ~/partial.fio) partial: (g=0): rw=randread, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=8 ... fio-2.16 Starting 2 processes partial: Laying out IO file(s) (1 file(s) / 2048MB) partial: Laying out IO file(s) (1 file(s) / 2048MB) Jobs: 2 (f=2): [r(2)] [100.0% done] [48908KB/0KB/0KB /s] [12.3K/0/0 iops] [eta 00m:00s] partial: (groupid=0, jobs=1): err= 0: pid=1745: Sun Jul 30 03:23:34 2017 read : io=24635MB, bw=28027KB/s, iops=7006, runt=900037msec slat (usec): min=1, max=14906, avg= 6.77, stdev= 8.06 clat (usec): min=1, max=1249.6K, avg=1132.59, stdev=9627.84 lat (usec): min=69, max=1249.6K, avg=1139.79, stdev=9628.80 clat percentiles (usec): | 1.00th=[ 101], 5.00th=[ 104], 10.00th=[ 106], 20.00th=[ 108], | 30.00th=[ 112], 40.00th=[ 118], 50.00th=[ 121], 60.00th=[ 123], | 70.00th=[ 127], 80.00th=[ 147], 90.00th=[ 213], 95.00th=[ 282], | 99.00th=[32128], 99.50th=[57088], 99.90th=[136192], 99.95th=[177152], | 99.99th=[292864] lat (usec) : 2=0.01%, 4=0.01%, 10=0.01%, 20=0.01%, 50=0.01% lat (usec) : 100=0.38%, 250=93.13%, 500=3.55%, 750=0.22%, 1000=0.21% lat (msec) : 2=0.29%, 4=0.01%, 10=0.07%, 20=0.57%, 50=0.98% lat (msec) : 100=0.41%, 250=0.18%, 500=0.02%, 750=0.01%, 1000=0.01% lat (msec) : 2000=0.01% cpu : usr=2.13%, sys=6.56%, ctx=5311621, majf=1, minf=17 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=6306443/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 partial: (groupid=0, jobs=1): err= 0: pid=1746: Sun Jul 30 03:23:34 2017 read : io=35476MB, bw=40361KB/s, iops=10090, runt=900046msec slat (usec): min=1, max=23444, avg= 6.51, stdev=11.66 clat (usec): min=1, max=1501.4K, avg=784.01, stdev=8022.09 lat (usec): min=67, max=1501.4K, avg=790.95, stdev=8022.73 clat percentiles (usec): | 1.00th=[ 101], 5.00th=[ 104], 10.00th=[ 106], 20.00th=[ 108], | 30.00th=[ 111], 40.00th=[ 117], 50.00th=[ 121], 60.00th=[ 123], | 70.00th=[ 127], 80.00th=[ 145], 90.00th=[ 211], 95.00th=[ 278], | 99.00th=[19840], 99.50th=[40192], 99.90th=[113152], 99.95th=[152576], | 99.99th=[280576] lat (usec) : 2=0.01%, 4=0.01%, 10=0.01%, 20=0.01%, 50=0.01% lat (usec) : 100=0.37%, 250=93.16%, 500=4.24%, 750=0.27%, 1000=0.20% lat (msec) : 2=0.29%, 4=0.02%, 10=0.07%, 20=0.37%, 50=0.62% lat (msec) : 100=0.25%, 250=0.11%, 500=0.01%, 750=0.01%, 1000=0.01% lat (msec) : 2000=0.01% cpu : usr=2.58%, sys=9.44%, ctx=6971695, majf=0, minf=16 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=9081785/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 Run status group 0 (all jobs): READ: io=60110MB, aggrb=68388KB/s, minb=28027KB/s, maxb=40361KB/s, mint=900037msec, maxt=900046msec Disk stats (read/write): dm-2: ios=15387198/28, merge=0/0, ticks=14306100/6972, in_queue=14316452, util=100.00%, aggrios=5233578/737062, aggrmerge=0/0, aggrticks=5314757/297484, aggrin_queue=5612629, aggrutil=100.00% dm-1: ios=0/1898650, merge=0/0, ticks=0/275700, in_queue=275740, util=20.28%, aggrios=15166622/2060890, aggrmerge=2630/85657, aggrticks=2377016/315952, aggrin_queue=2692844, aggrutil=88.91% xvdc: ios=15166622/2060890, merge=2630/85657, ticks=2377016/315952, in_queue=2692844, util=88.91% dm-0: ios=15169252/249770, merge=0/0, ticks=2424412/51644, in_queue=2477168, util=88.37% dm-3: ios=531482/62766, merge=0/0, ticks=13519860/565108, in_queue=14084980, util=100.00%, aggrios=531464/60098, aggrmerge=18/2668, aggrticks=13515428/447352, aggrin_queue=13962752, aggrutil=100.00% xvdd: ios=531464/60098, merge=18/2668, ticks=13515428/447352, in_queue=13962752, util=100.00% Full cache $ (cd /srv/cache/fio && FIOTEST=lvmcache-full-4.12.0-rc1+4d44ec5ab751 fio ~/partial.fio) partial: (g=0): rw=randread, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=8 ... fio-2.16 Starting 2 processes partial: Laying out IO file(s) (1 file(s) / 2048MB) partial: Laying out IO file(s) (1 file(s) / 2048MB) Jobs: 2 (f=2): [r(2)] [100.0% done] [42352KB/0KB/0KB /s] [10.6K/0/0 iops] [eta 00m:00s] partial: (groupid=0, jobs=1): err= 0: pid=4248: Sun Jul 30 03:40:34 2017 read : io=27816MB, bw=31644KB/s, iops=7911, runt=900111msec slat (usec): min=1, max=3143, avg= 6.38, stdev= 3.68 clat (usec): min=1, max=1247.3K, avg=1002.62, stdev=10214.33 lat (usec): min=69, max=1247.4K, avg=1009.42, stdev=10214.63 clat percentiles (usec): | 1.00th=[ 101], 5.00th=[ 103], 10.00th=[ 105], 20.00th=[ 107], | 30.00th=[ 109], 40.00th=[ 114], 50.00th=[ 119], 60.00th=[ 121], | 70.00th=[ 123], 80.00th=[ 135], 90.00th=[ 207], 95.00th=[ 278], | 99.00th=[25472], 99.50th=[53504], 99.90th=[150528], 99.95th=[195584], | 99.99th=[337920] lat (usec) : 2=0.01%, 4=0.01%, 20=0.01%, 50=0.01%, 100=0.49% lat (usec) : 250=93.10%, 500=4.06%, 750=0.23%, 1000=0.21% lat (msec) : 2=0.29%, 4=0.01%, 10=0.05%, 20=0.36%, 50=0.66% lat (msec) : 100=0.32%, 250=0.20%, 500=0.02%, 750=0.01%, 1000=0.01% lat (msec) : 2000=0.01% cpu : usr=2.18%, sys=7.27%, ctx=6208585, majf=0, minf=18 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=7120878/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 partial: (groupid=0, jobs=1): err= 0: pid=4249: Sun Jul 30 03:40:34 2017 read : io=21517MB, bw=24481KB/s, iops=6120, runt=900042msec slat (usec): min=1, max=3946, avg= 6.52, stdev= 4.06 clat (usec): min=1, max=1225.4K, avg=1298.37, stdev=13872.59 lat (usec): min=68, max=1225.4K, avg=1305.32, stdev=13872.88 clat percentiles (usec): | 1.00th=[ 100], 5.00th=[ 103], 10.00th=[ 105], 20.00th=[ 107], | 30.00th=[ 108], 40.00th=[ 111], 50.00th=[ 118], 60.00th=[ 121], | 70.00th=[ 122], 80.00th=[ 127], 90.00th=[ 195], 95.00th=[ 270], | 99.00th=[29568], 99.50th=[82432], 99.90th=[207872], 99.95th=[268288], | 99.99th=[452608] lat (usec) : 2=0.01%, 4=0.01%, 20=0.01%, 50=0.01%, 100=0.60% lat (usec) : 250=93.47%, 500=3.81%, 750=0.20%, 1000=0.17% lat (msec) : 2=0.28%, 4=0.01%, 10=0.05%, 20=0.23%, 50=0.44% lat (msec) : 100=0.34%, 250=0.34%, 500=0.05%, 750=0.01%, 1000=0.01% lat (msec) : 2000=0.01% cpu : usr=1.71%, sys=5.81%, ctx=5136977, majf=0, minf=16 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=5508414/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 Run status group 0 (all jobs): READ: io=49333MB, aggrb=56123KB/s, minb=24480KB/s, maxb=31644KB/s, mint=900042msec, maxt=900111msec Disk stats (read/write): dm-2: ios=12628996/29, merge=0/0, ticks=14325248/9004, in_queue=14337928, util=100.00%, aggrios=4283504/430396, aggrmerge=0/0, aggrticks=6408228/152828, aggrin_queue=6561282, aggrutil=100.00% dm-1: ios=1/1069937, merge=0/0, ticks=0/186088, in_queue=186096, util=11.15%, aggrios=12454547/1169074, aggrmerge=94/92406, aggrticks=1764348/199032, aggrin_queue=1963216, aggrutil=82.20% xvdc: ios=12454547/1169074, merge=94/92406, ticks=1764348/199032, in_queue=1963216, util=82.20% dm-0: ios=12454640/195514, merge=0/0, ticks=1766212/37200, in_queue=1804008, util=82.11% dm-3: ios=395873/25738, merge=0/0, ticks=17458472/235196, in_queue=17693744, util=100.00%, aggrios=395871/25673, aggrmerge=2/65, aggrticks=17458124/214396, aggrin_queue=17672604, aggrutil=100.00% xvdd: ios=395871/25673, merge=2/65, ticks=17458124/214396, in_queue=17672604, util=100.00% Tests against additional kernel builds 4.12.0-rc1 2ea659a9ef48 (2017-05-13 13:19:49 -0700)

A couple of the release candidates with some of Joe’s fixes in had started to produce approaching decent performance so I wanted to go back to the first tagged kernel for this release candidate to get an overview of where Joe had been starting from.

2,069 and 689 average IOPS against a full cache demonstrate the poor performance.

Empty cache $ (cd /srv/cache/fio && FIOTEST=lvmcache-empty-4.12.0-rc1+2ea659a9ef48 fio ~/partial.fio) partial: (g=0): rw=randread, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=8 ... fio-2.16 Starting 2 processes partial: Laying out IO file(s) (1 file(s) / 2048MB) partial: Laying out IO file(s) (1 file(s) / 2048MB) Jobs: 2 (f=2): [r(2)] [100.0% done] [226.2MB/0KB/0KB /s] [57.9K/0/0 iops] [eta 00m:00s] partial: (groupid=0, jobs=1): err= 0: pid=1410: Sun Jul 30 05:18:46 2017 read : io=119229MB, bw=135648KB/s, iops=33911, runt=900055msec slat (usec): min=3, max=4243, avg= 6.13, stdev= 2.67 clat (usec): min=12, max=777623, avg=227.66, stdev=3034.59 lat (usec): min=69, max=777634, avg=234.21, stdev=3035.00 clat percentiles (usec): | 1.00th=[ 102], 5.00th=[ 105], 10.00th=[ 107], 20.00th=[ 111], | 30.00th=[ 117], 40.00th=[ 121], 50.00th=[ 123], 60.00th=[ 126], | 70.00th=[ 131], 80.00th=[ 143], 90.00th=[ 183], 95.00th=[ 237], | 99.00th=[ 370], 99.50th=[ 466], 99.90th=[29568], 99.95th=[52480], | 99.99th=[140288] lat (usec) : 20=0.01%, 50=0.01%, 100=0.22%, 250=95.59%, 500=3.73% lat (usec) : 750=0.10%, 1000=0.07% lat (msec) : 2=0.10%, 4=0.01%, 10=0.01%, 20=0.03%, 50=0.09% lat (msec) : 100=0.03%, 250=0.02%, 500=0.01%, 750=0.01%, 1000=0.01% cpu : usr=8.43%, sys=31.48%, ctx=19010691, majf=1, minf=16 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=30522650/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 partial: (groupid=0, jobs=1): err= 0: pid=1411: Sun Jul 30 05:18:46 2017 read : io=38320MB, bw=43598KB/s, iops=10899, runt=900034msec slat (usec): min=3, max=2937, avg= 7.12, stdev= 3.52 clat (usec): min=1, max=664000, avg=724.45, stdev=7322.47 lat (usec): min=69, max=664008, avg=732.02, stdev=7323.28 clat percentiles (usec): | 1.00th=[ 101], 5.00th=[ 104], 10.00th=[ 107], 20.00th=[ 111], | 30.00th=[ 117], 40.00th=[ 120], 50.00th=[ 122], 60.00th=[ 125], | 70.00th=[ 129], 80.00th=[ 137], 90.00th=[ 165], 95.00th=[ 235], | 99.00th=[16512], 99.50th=[38656], 99.90th=[111104], 99.95th=[148480], | 99.99th=[246784] lat (usec) : 2=0.01%, 4=0.01%, 10=0.01%, 20=0.01%, 50=0.01% lat (usec) : 100=0.59%, 250=95.04%, 500=2.69%, 750=0.11%, 1000=0.08% lat (msec) : 2=0.14%, 4=0.02%, 10=0.10%, 20=0.34%, 50=0.52% lat (msec) : 100=0.25%, 250=0.11%, 500=0.01%, 750=0.01% cpu : usr=3.25%, sys=11.57%, ctx=8505263, majf=0, minf=15 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=9809817/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 Run status group 0 (all jobs): READ: io=157549MB, aggrb=179244KB/s, minb=43597KB/s, maxb=135647KB/s, mint=900034msec, maxt=900055msec Disk stats (read/write): dm-2: ios=40332438/28, merge=0/0, ticks=14117864/2196, in_queue=14130156, util=100.00%, aggrios=13483192/313952, aggrmerge=0/0, aggrticks=5420121/72913, aggrin_queue=5494664, aggrutil=100.00% dm-1: ios=2/824719, merge=0/0, ticks=0/128108, in_queue=128144, util=10.06%, aggrios=40125306/891909, aggrmerge=1810/39159, aggrticks=5531356/144120, aggrin_queue=5674304, aggrutil=99.96% xvdc: ios=40125306/891909, merge=1810/39159, ticks=5531356/144120, in_queue=5674304, util=99.96% dm-0: ios=40127114/107088, merge=0/0, ticks=5533456/20608, in_queue=5559116, util=99.96% dm-3: ios=322461/10050, merge=0/0, ticks=10726908/70024, in_queue=10796732, util=100.00%, aggrios=322461/8135, aggrmerge=0/1923, aggrticks=10726860/46396, aggrin_queue=10773180, aggrutil=100.00% xvdd: ios=322461/8135, merge=0/1923, ticks=10726860/46396, in_queue=10773180, util=100.00% Full cache $ (cd /srv/cache/fio && FIOTEST=lvmcache-full-4.12.0-rc1+2ea659a9ef48 fio ~/partial.fio) partial: (g=0): rw=randread, bs=4K-4K/4K-4K/4K-4K, ioengine=libaio, iodepth=8 ... fio-2.16 Starting 2 processes partial: Laying out IO file(s) (1 file(s) / 2048MB) partial: Laying out IO file(s) (1 file(s) / 2048MB) Jobs: 2 (f=2): [r(2)] [100.0% done] [11616KB/0KB/0KB /s] [2904/0/0 iops] [eta 00m:00s] partial: (groupid=0, jobs=1): err= 0: pid=3880: Sun Jul 30 05:36:12 2017 read : io=7278.8MB, bw=8279.1KB/s, iops=2069, runt=900169msec slat (usec): min=3, max=749, avg= 7.94, stdev= 6.36 clat (usec): min=2, max=1369.3K, avg=3854.37, stdev=24787.42 lat (usec): min=72, max=1369.3K, avg=3862.76, stdev=24789.32 clat percentiles (usec): | 1.00th=[ 102], 5.00th=[ 104], 10.00th=[ 107], 20.00th=[ 108], | 30.00th=[ 116], 40.00th=[ 118], 50.00th=[ 121], 60.00th=[ 121], | 70.00th=[ 122], 80.00th=[ 125], 90.00th=[ 163], 95.00th=[13632], | 99.00th=[104960], 99.50th=[162816], 99.90th=[337920], 99.95th=[423936], | 99.99th=[659456] lat (usec) : 4=0.01%, 50=0.01%, 100=0.15%, 250=93.36%, 500=0.46% lat (usec) : 750=0.09%, 1000=0.07% lat (msec) : 2=0.11%, 4=0.01%, 10=0.29%, 20=1.36%, 50=1.89% lat (msec) : 100=1.15%, 250=0.85%, 500=0.18%, 750=0.02%, 1000=0.01% lat (msec) : 2000=0.01% cpu : usr=0.71%, sys=2.61%, ctx=1927655, majf=0, minf=16 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=1863344/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 partial: (groupid=0, jobs=1): err= 0: pid=3881: Sun Jul 30 05:36:12 2017 read : io=2423.8MB, bw=2757.4KB/s, iops=689, runt=900123msec slat (usec): min=3, max=702, avg= 8.61, stdev= 5.54 clat (usec): min=64, max=1534.9K, avg=11593.97, stdev=45491.15 lat (usec): min=70, max=1534.9K, avg=11603.08, stdev=45492.10 clat percentiles (usec): | 1.00th=[ 100], 5.00th=[ 103], 10.00th=[ 104], 20.00th=[ 106], | 30.00th=[ 108], 40.00th=[ 113], 50.00th=[ 119], 60.00th=[ 122], | 70.00th=[ 131], 80.00th=[ 163], 90.00th=[28288], 95.00th=[68096], | 99.00th=[216064], 99.50th=[296960], 99.90th=[544768], 99.95th=[659456], | 99.99th=[929792] lat (usec) : 100=0.68%, 250=82.38%, 500=0.40%, 750=0.11%, 1000=0.08% lat (msec) : 2=0.15%, 4=0.02%, 10=0.62%, 20=3.41%, 50=5.54% lat (msec) : 100=3.34%, 250=2.53%, 500=0.61%, 750=0.10%, 1000=0.02% lat (msec) : 2000=0.01% cpu : usr=0.36%, sys=0.86%, ctx=628886, majf=0, minf=14 IO depths : 1=0.1%, 2=0.1%, 4=0.1%, 8=100.0%, 16=0.0%, 32=0.0%, >=64=0.0% submit : 0=0.0%, 4=100.0%, 8=0.0%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% complete : 0=0.0%, 4=100.0%, 8=0.1%, 16=0.0%, 32=0.0%, 64=0.0%, >=64=0.0% issued : total=r=620477/w=0/d=0, short=r=0/w=0/d=0, drop=r=0/w=0/d=0 latency : target=0, window=0, percentile=100.00%, depth=8 Run status group 0 (all jobs): READ: io=9702.5MB, aggrb=11037KB/s, minb=2757KB/s, maxb=8279KB/s, mint=900123msec, maxt=900169msec Disk stats (read/write): dm-2: ios=2483744/29, merge=0/0, ticks=14379036/2900, in_queue=14383400, util=100.00%, aggrios=863141/314477, aggrmerge=0/0, aggrticks=6157485/39758, aggrin_queue=6197288, aggrutil=100.00% dm-1: ios=33/837830, merge=0/0, ticks=0/96648, in_queue=96660, util=6.07%, aggrios=2269963/907940, aggrmerge=0/35094, aggrticks=285192/112048, aggrin_queue=397148, aggrutil=34.50% xvdc: ios=2269963/907940, merge=0/35094, ticks=285192/112048, in_queue=397148, util=34.50% dm-0: ios=2269930/105586, merge=0/0, ticks=285436/19728, in_queue=305184, util=30.03% dm-3: ios=319462/16, merge=0/0, ticks=18187020/2900, in_queue=18190020, util=100.00%, aggrios=319462/8, aggrmerge=0/8, aggrticks=18187012/1068, aggrin_queue=18188076, aggrutil=100.00% xvdd: ios=319462/8, merge=0/8, ticks=18187012/1068, in_queue=18188076, util=100.00%
Categories: LUG Community Blogs

Chris Lamb: More Lintian hacking

Planet ALUG - Sat, 29/07/2017 - 09:31

Lintian is static analysis tool for Debian packages, reporting on various errors, omissions and quality-assurance issues to the maintainer.

I seem to have found myself hacking on it a bit more recently (see my previous installment). In particular, here's the code of mine — which made for a total of 20 bugs closed — that made it into the recent 2.5.52 release:

New tags
  • Check for the presence of an .asc signature in a .changes file if an upstream signing key is present. (#833585, tag)
  • Warn when dpkg-statoverride --add is called without a corresponding --list. (#652963, tag)
  • Check for years in debian/copyright that are later than the top entry in debian/changelog. (#807461, tag)
  • Trigger a warning when DEB_BUILD_OPTIONS is used instead of DEB_BUILD_MAINT_OPTIONS. (#833691, tag)
  • Look for "FIXME" and similar placeholders in various files in the debian directory. (#846009, tag)
  • Check for useless build-dependencies on dh-autoreconf or autotools-dev under Debhelper compatibility levels 10 or higher. (#844191, tag)
  • Emit a warning if GObject Introspection packages are missing dependencies on ${gir:Depends}. (#860801, tag)
  • Check packages do not contain upstart configuration under /etc/init. (#825348, tag)
  • Emit a classification tag if maintainer scripts such as debian/postinst is an ELF binary. (tag)
  • Check for overly-generic manual pages such as README.3pm.gz. (#792846, tag)
  • Ensure that (non-ELF) maintainer scripts begin with #!. (#843428, tag)
Regression fixes
  • Ensure r-data-without-readme-source checks the source package, not the binary; README.source files are not installed in the latter. (#866322, tag)
  • Don't emit source-contains-prebuilt-ms-help-file for files generated by Halibut. (#867673, tag)
  • Add .yml to the list of file extensions to avoid false positives when emitting extra-license-file. (#856137, tag)
  • Append a regression test for enumerated lists in the "a) b) c) …" style, which would previously trigger a "duplicate word" warning if the following paragraph began with an "a." (#844166, tag)
Documentation updates
  • Rename copyright-contains-dh-make-perl-boilerplate to copyright-contains-automatically-extracted-boilerplate as it can be generated by other tools such as dh-make-elpa. (#841832, tag)
  • Changes to new-package-should-not-package-python2-module (tag):
    • Upgrade from I: to W:. (#829744)
    • Clarify wording in description to make the justification clearer.
  • Clarify justification in debian-rules-parses-dpkg-parsechangelog. (#865882, tag)
  • Expand the rationale for the latest-debian-changelog-entry-without-new-date tag to mention possible implications for reproducible builds. (tag)
  • Update the source-contains-prebuilt-ms-help-file description; there exists free software to generate .chm files. (tag)
  • Append an example shell snippet to explain how to prevent init.d-script-sourcing-without-test. (tag)
  • Add a missing "contains" verb to the description of the debhelper-autoscript-in-maintainer-scripts tag. (tag)
  • Consistently use the same "Debian style" RFC822 date format for both "Mirror timestamp" and "Last updated" on the Lintian index page. (#828720)
Misc
  • Allow the use of suppress-tags=<tag>[,<tag>[,<tag>]] in ~/.lintianrc. (#764486)
  • Improve the support for "3.0 (git)" packages. However, they remain marked as unsupported-source-format as they are not accepted by the Debian archive. (#605999)
  • Apply patch from Dylan Aïssi to also check for .RData files (not just .Rdata) when checking for the copyright status of R Project data files. (#868178, tag)
  • Match more Lena Söderberg images. (#827941, tag)
  • Refactor a hard-coded list of possible upstream key locations to the common/signing-key-filenames Lintian::Data resource.
Categories: LUG Community Blogs

Steve Kemp: So I'm considering a new project

Planet HantsLUG - Fri, 28/07/2017 - 22:00

In the past there used to be a puppet-labs project called puppet-dashboard, which would let you see the state of your managed-nodes. Having even a very basic and simple "report user-interface" is pretty neat when you're pushing out a change, and you want to see it be applied across your fleet of hosts.

There are some other neat features, such as allowing you to identify failures easily, and see nodes that haven't reported-in recently.

This was spun out into a community-supported project which is largely stale:

Having a dashboard is nice, but the current state of the software is less good. It turns out that the implementation is pretty simple though:

  • Puppet runs on a node.
  • The node reports back to the puppet-master what happened.
  • The puppet-master can optionally HTTP-post that report to the reporting node.

The reporting node can thus receive real-time updates, and do what it wants with them. You can even sidestep the extra server if you wish:

  • The puppet-master can archive the reports locally.

For example on my puppet-master I have this:

root@master /var/lib/puppet/reports # ls | tail -n4 smaug.dh.bytemark.co.uk ssh.steve.org.uk www.dns-api.com www.steve.org.uk

Inside each directory is a bunch of YAML files which describe the state of the host, and the recipes that were applied. Parsing those is pretty simple, the hardest part would be making a useful/attractive GUI. But happily we have the existing one to "inspire" us.

I think I just need to write down a list of assumptions and see if they make sense. After all the existing installation(s) won't break, it's just a matter of deciding whether it is useful/worthwhile way to spend some time.

  • Assume you have 100+ hosts running puppet 4.x
  • Assume you want a broad overview:
    • All the nodes you're managing.
    • Whether their last run triggered a change, resulted in an error, or logged anything.
    • If so what changed/failed/was output?
  • For each individual run you want to see:
    • Rough overview.
  • Assume you don't want to keep history indefinitely, just the last 50 runs or so of each host.

Beyond that you might want to export data about the managed-nodes themselves. For example you might want a list of all the hosts which have "bash" installed on them. Or "All nodes with local user "steve"." I've written that stuff already, as it is very useful for auditing & etc.

The hard part about that is that to get the extra data you'll need to include a puppet module to collect it. I suspect a new dashboard would be broadly interesting/useful but unless you have that extra detail it might not be so useful. You can't point to a slightly more modern installation and say "Yes this is worth migrating to". But if you have extra meta-data you can say:

  • Give me a list of all hosts running wheezy.
  • Give me a list of all hosts running exim4 version 4.84.2-2+deb8u4.

And that facility is very useful when you have shellshock, or similar knocking at your door.

Anyway as a hacky start I wrote some code to parse reports, avoiding the magic object-fu that the YAML would usually invoke. The end result is this:

root@master ~# dump-run www.steve.org.uk www.steve.org.uk Puppet Version: 4.8.2 /var/lib/puppet/reports/www.steve.org.uk/201707291813.yaml Runtime: 2.16 Status:changed Time:2017-07-29 18:13:04 +0000 Resources total -> 176 skipped -> 2 failed -> 0 changed -> 3 out_of_sync -> 3 scheduled -> 0 corrective_change -> 3 Changed Resources Ssh_authorized_key[skx@shelob-s-fi] /etc/puppet/code/environments/production/modules/ssh_keys/manifests/init.pp:17 Ssh_authorized_key[skx@deagol-s-fi] /etc/puppet/code/environments/production/modules/ssh_keys/manifests/init.pp:22 Ssh_authorized_key[steve@ssh.steve.org.uk-s-fi] /etc/puppet/code/environments/production/modules/ssh_keys/manifests/init.pp:27 Skipped Resources Exec[clone sysadmin utils] Exec[update sysadmin utils]
Categories: LUG Community Blogs
Syndicate content