• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Yellow Bricks

by Duncan Epping

  • Home
  • Unexplored Territory Podcast
  • HA Deepdive
  • ESXTOP
  • Stickers/Shirts
  • Privacy Policy
  • About
  • Show Search
Hide Search

Queuedepth, how and when

Duncan Epping · Oct 27, 2008 ·

So you’ve heard this probably from a few dozens of people by now when you don’t hit the expected SAN performance: Set your queuedepth to a larger size.

So how do you set this queuedepth? Find out for which module you’ll need to set this option:

vmkload_mod -l | grep qla

Now set it to a depth of 64 for module qla2300_707

esxcfg-module -s ql2xmaxqdepth=64 qla2300_707
esxcfg-boot –b

So now you’ve set the queue depth to 64 for your HBA cards, but why? Well I hope the answer is:”because I monitored my system with esxtop and I noticed that the “QUED” value was high”.

So there’s your when. You’ll need to set this setting if you notice a high “QUED” value in esxtop. Take a look at the following example I borrowed from a great blog on this subject:

As you can see in the example, the “ACTV” has a value of 32. Indeed 32 active commands cause that’s the default queue depth for qlogic cards. And 31 outstanding commands, in other words if we bump up the queue depth to 64 than all the commands should be processed instead of queued in the VMkernel.

What will this result in?

Related

Server ESX, esxi, Howto, performance, Storage

Reader Interactions

Comments

  1. Brent Ozar says

    27 October, 2008 at 23:37

    You should also check your fiber switch metrics for errors, because you’re probably causing collisions. Cranking up the queue depth too far can mean cranking up the error numbers.

  2. tgreat says

    28 October, 2008 at 13:47

    Hi, what can I do if there is no data in columns ACTV/QUED/%USD/LOAD (there is a “-” sign there instead) ?

  3. Duncan Epping says

    28 October, 2008 at 14:49

    Start with the following: S 2 (this means refresh the data every 2 seconds)

  4. AlexB says

    29 October, 2008 at 09:37

    @tgreat: Have the same Problem

    @ Duncan: Did not work for the colums ACTV/QUED/%USD/LOAD …

    Any solution?

  5. Duncan Epping says

    29 October, 2008 at 12:24

    I am going to look into this, see if I can find any related problems… can’t promise anything though cause I’m not able to reproduce this it’s hard to troubleshoot.

  6. AlexB says

    29 October, 2008 at 13:28

    Got it!

    Open esxtop
    Press “d” for Disk Statistics
    Press “v” to display the storage system information per virtual machine
    or
    Press “u” to display the information per storage device.

    Found the information on the technical note from VMware about “Perfomance Analysis Methods”

  7. JasonD says

    31 October, 2008 at 08:01

    I assume this problem also applies to ESXi? How would you increase the q-len on that platform?

Primary Sidebar

About the Author

Duncan Epping is a Chief Technologist and Distinguished Engineering Architect at Broadcom. Besides writing on Yellow-Bricks, Duncan is the co-author of the vSAN Deep Dive and the vSphere Clustering Deep Dive book series. Duncan is also the host of the Unexplored Territory Podcast.

Follow Us

  • X
  • Spotify
  • RSS Feed
  • LinkedIn

Recommended Book(s)

Advertisements




Copyright Yellow-Bricks.com © 2025 · Log in