Increase default APT::Cache-Limit on x86_64 up to 64M
This commit is contained in:
parent
7e6ddc994e
commit
6f34271309
@ -13,7 +13,7 @@ index 1dbd7bf..d743ec2 100644
|
||||
MMap **OutMap,bool AllowMem)
|
||||
{
|
||||
- unsigned long MapSize = _config->FindI("APT::Cache-Limit",12*1024*1024);
|
||||
+ unsigned long MapSize = _config->FindI("APT::Cache-Limit",48*1024*1024);
|
||||
+ unsigned long MapSize = _config->FindI("APT::Cache-Limit",(32+4*sizeof(long))*1024*1024);
|
||||
|
||||
vector<pkgIndexFile *> Files(List.begin(),List.end());
|
||||
unsigned long EndOfSource = Files.size();
|
||||
@ -22,7 +22,7 @@ index 1dbd7bf..d743ec2 100644
|
||||
bool pkgMakeOnlyStatusCache(OpProgress &Progress,DynamicMMap **OutMap)
|
||||
{
|
||||
- unsigned long MapSize = _config->FindI("APT::Cache-Limit",8*1024*1024);
|
||||
+ unsigned long MapSize = _config->FindI("APT::Cache-Limit",48*1024*1024);
|
||||
+ unsigned long MapSize = _config->FindI("APT::Cache-Limit",(32+4*sizeof(long))*1024*1024);
|
||||
vector<pkgIndexFile *> Files;
|
||||
unsigned long EndOfSource = Files.size();
|
||||
if (_system->AddStatusFiles(Files) == false)
|
||||
|
Loading…
Reference in New Issue
Block a user