Setting limits to a sane value

84 views
Skip to first unread message

Walter Lee Davis

unread,
Sep 10, 2012, 12:45:31 PM9/10/12
to thinkin...@googlegroups.com
I see this sort of thing (once per model) every time I run the index rake task. Where would I go about setting these defaults to a sane value, and where can I find documentation with what sanity would mean in that context?

indexing index 'title_core'...
WARNING: collect_hits: mem_limit=0 kb too low, increasing to 14592 kb
collected 1466 docs, 820.1 MB
WARNING: sort_hits: merge_block_size=108 kb too low, increasing mem_limit may improve performance

Thanks in advance,

Walter

Pat Allan

unread,
Sep 14, 2012, 6:48:46 PM9/14/12
to thinkin...@googlegroups.com
The setting you're after is mem_limit - which I think at some point had a default of 32M, but Sphinx has now decided it must be set, I guess.

You can customise it in config/sphinx.yml (which you'll need to create if you don't have it already):

development:
mem_limit: 64M

Set as high or low as you like... it depends on how much data you're dealing with, but maybe 128M is a good starting point? Also, keep in mind that this is just the memory limit for the indexing process, not the daemon.

--
Pat

> --
> You received this message because you are subscribed to the Google Groups "Thinking Sphinx" group.
> To post to this group, send email to thinkin...@googlegroups.com.
> To unsubscribe from this group, send email to thinking-sphi...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/thinking-sphinx?hl=en.
>


Reply all
Reply to author
Forward
0 new messages