[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#657085: Please increase the size of APT::Cache-Limit. Current value: 25165824. -- but ignores setting

On Tue, Jan 24, 2012 at 04:49, Daniel Hartwig <mandyke@gmail.com> wrote:
> As a temporary fix, you can try setting APT::Cache-Fallback "true"

mhh. Jonathan (cc'ed) claims in his mail to control that this workaround works.
Thats kind of surprising as the constructor of DynamicMMap should already
enable the Fallback on non-linux architectures (as long as Grow is enabled),
so what fails here should be already the fallback method with realloc()…

(mremap() isn't available on non-linux, so the dynamic mmap doesn't use a mmap
 on these archs as it can't grow. realloc() on the other hand is available
 everywhere -- and the effective difference between mmap and char[] isn't big.
 Either way, thats decided at compile time and __linux__ is properly not
 defined on kfreebsd or hurd…)

Is the system low on memory maybe? Getting more than 25 MB of consecutive
memory might be harder than it sounds sometimes. For me at least the effect
of the setting above sounds like a placebo.

A real effect should have a sensible value for APT::Cache-Start, the message
dates back to a time without this setting. Will be changed.

Best regards

David Kalnischkies

Reply to: