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 7644659
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T09:44:38+00:00 2026-05-31T09:44:38+00:00

I have Sphinx Search running on a Linux server with 38GB of RAM. The

  • 0

I have Sphinx Search running on a Linux server with 38GB of RAM. The sphinx index contains 35M full text documents plus meta data indexed from a MySQL table. When I launch a fresh server, I run a script that “warms up the sphinx cache” by sending my 10,000 most common queries through it. It takes about an hour to run the warm up script the first time, but the same script completes in just a few minutes if I run it again.

My confusion arises from the fact that Sphinx doesn’t have any documented caching, other than a file based cache that I am not using. The index is loaded into memory when Sphinx starts, but individual queries take the same length of time each time they are run after the system has been “warmed up”.

There is a clear warm up period when I run my scripts. What is going on? Is Linux caching something that helps Sphinx run faster? Does the underlying MySQL system cache queries ( I believe Sphinx is basically a custom MySQL storage engine )? How are new queries that have never been run being made faster by what is going on?

I realize there is likely a very complex explanation for this, but even a little direction should help be dig deeper.

  • 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-31T09:44:39+00:00Added an answer on May 31, 2026 at 9:44 am

    ( I believe Sphinx is basically a custom MySQL storage engine )
    SphinxSE is a ‘fake’ storage engine. fake because it doesnt store any data – but rather take requests for data from its ‘table’, but really it just proxies it back to a running searchd instance in the background.

    searchd itself doesnt have any caching – but as mentioned as indexed are read from, the OS may well start caching the files – so dont have to go all the way back to disk.

    If you are using SphinxSE – then queries may be cached by the normal mysql query cache – so whole result sets are cached. But in addiction, the usual way to use SphinxSE, is to join the search results back with the original dataset, so you get both returned to the app in one go. So your queries are also dependent on the real mysql data tables. And they will be subject to the same OS caching – as mysql reads data it will be cached.

    When I launch a fresh server

    that suggests you are using a VM? If so the virtual disk might actully be located on a remote SAN. (or EBS on Amazon ec2)

    • which means loading a large sphinx index via that route might well be slow.

    Depending on where your VM is hosted might be able to get some special high performance disks – ideally local to the host – maybe even SSD – which may well help.


    Anyway to trace the issue, more you should almost certainly enable the sphinx query log. Look into that to see if queries are slow executing there. There is also a startup upoption to searchd – where you can enable iostats. This will log more information to the quyery log about io stats as queries are run. This can give you additional insights.

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

Sidebar

Related Questions

I have a Sphinx index with UTF-8 documents, in particular the names of artists.
I’m evaluating full text search methods for Rails 3 ATM. Does anyone here have
We have a database that we would like to index with Sphinx search engine.
I have a website that is using Sphinx search server to search through a
We are running thinking sphinx on a utility instance in our server cluster. It
I have been trying to connect sphinx server with nodejs and limestone module. But
Sphinx search displays correct results but I'm running into a problem with pagination. If
Have my sphinx search going like so: $result = $cl->query($_REQUEST['term'], 'myindex'); But I'd like
I have database of products and I use Thinking Sphinx to search through them.
I have a Wordpress-based website which uses Sphinx as a search engine, with a

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.