[Varnish] #1034: Dual storage depending on object size

Varnish varnish-bugs at varnish-cache.org
Wed Oct 19 16:30:07 CEST 2011


#1034: Dual storage depending on object size
-------------------------+--------------------------------------------------
  Reporter:  gdelacroix  |        Type:  enhancement
    Status:  closed      |    Priority:  normal     
 Milestone:              |   Component:  varnishd   
   Version:  trunk       |    Severity:  normal     
Resolution:  invalid     |    Keywords:             
-------------------------+--------------------------------------------------
Changes (by kristian):

  * status:  new => closed
  * resolution:  => invalid


Comment:

 Greetings,

 We don't use the bug tracker to track feature requests, so I'm closing the
 bug. Feel free to send a mail to one of the mail lists (-dev or -misc).

 That said, there are several flaws in your logic. You can use -sfile as
 much as you like and it will use whatever memory you have. It will only
 write to disk if it has to. And if you really want to, you can mix -sfile
 and -smalloc and address each of them individually in VCL, granted, you
 still have to make some assumptions since you can't actually know the size
 of an object until after it's fetched, at which point it's a little late
 to figure out where to put it. As for 'system buffers', that's mmap() and
 it'll figure out what actually needs to be in memory by itself - it knows
 better than your VCL what you're actually using.

 Anyway, please continue this on -misc. And I do recommend you read up on
 mmap() and the memory management of modern operating systems.

 Regards,
 Kristian

-- 
Ticket URL: <https://www.varnish-cache.org/trac/ticket/1034#comment:2>
Varnish <https://varnish-cache.org/>
The Varnish HTTP Accelerator




More information about the varnish-bugs mailing list