Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7493701
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T17:07:18+00:00 2026-05-29T17:07:18+00:00

Reading the Redis documentation on Virtual Memory at: http://redis.io/topics/virtual-memory With regards to vm-max-threads they

  • 0

Reading the Redis documentation on Virtual Memory at:
http://redis.io/topics/virtual-memory

With regards to “vm-max-threads” they say “This is the maximum number of threads used in order to perform I/O from/to the swap file. A good value is just to match the number of cores in your system.”

I dont understand why this should match the number of cores, as from my understanding once a lookup is made for something in the redis swap then this is delegated to one of these threads, however they will presumably immediately enter some suspended IO waiting stage after issuing the read file call allowing the CPU to do other work?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T17:07:18+00:00Added an answer on May 29, 2026 at 5:07 pm

    Redis VM was already deprecated in Redis 2.4, and has been removed in Redis 2.6. It is a dead end: don’t use it.

    Using the number of cores for the vm-max-threads was only a rule of thumb. As you pointed out, these threads will be either waiting for some job to do, either waiting for the completion of synchronous I/Os. Furthermore these threads are dynamically spawned.

    The correct value actually depends on how the I/Os can be parallelized, rather than the pure CPU consumption of these threads. If the swap file is striped on an array of SSD disks, then using more threads make sense (possibly more than the number of CPU cores). If your swap file is on a single rotational disk, then it does not. But because of the filesystem cache, some I/Os will be kept logical (and therefore will not generate physical wait states), so putting at least the number of cores is a good general purpose choice.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Reading a post about redis I saw this word: REPL . Can someone tell
Reading through the CKEditor documentation , I see that they have an option to
Reading the documentation at http://jersey.java.net/nonav/documentation/latest/client-api.html#d4e704 makes me think that ClientFilter s are processed in
Reading this: http://guides.rubyonrails.org/routing.html#adding-more-restful-actions What does it mean to add a 'member route'? or do
Reading this question I found this as (note the quotation marks) code to solve
Reading over the responses to this question Disadvantages of Test Driven Development? I got
Reading through the Flickr API documentation it keeps stating I require an API key
Reading through this question on multi-threaded javascript, I was wondering if there would be
Reading this post has left me wondering; are nightly builds ever better for a
Reading code from other posts, I'm seeing something like this. struct Foo { Foo()

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.