Re: Splitting the Cache Dir?

From: Nigel Metheringham <[email protected]>
Date: Thu, 25 Jul 1996 15:59:21 +0100

Each of the cache_dir's has stuff allocated to it roughly evenly - ie
they each end up about the same size. Hence you need to allocate the
cache in unit chunks.

For the situation you describe you make your basic allocation 400 MB,
and allocate one on the 2 smaller drives and 2 on the bigger drive.

cache_swap 1600
cache_dir /www/new-cache-1
cache_dir /www/new-cache-2
cache_dir /www/secondary-cache-1
cache_dir /www/secondary-cache-2

        Nigel.

} At 09:51 AM 7/25/96 +0200, Guenther Fischer wrote:
} >Eric Wieling wrote:
} >>
} >> We have a spare 1gig partition (in addition to the partition for the
} >> cache) and I was wondering if I can tell Squid to split the cache
} >> accross the two partitions? I didn't see anything in the docs about
} >> it, but I thought It'd ask.
} >>
} >You can do it with the cache_dir in the squid.conf
} >
} >cache_dir /www/cache1
} >cache_dir /www/cache2
} >cache_dir /www/cache3
} >cache_dir /www/cache4
}
} I've been using this scheme since two month ago,
} but I can't understand how it works, specially when some
} of the File Systems I'm using seems to fill up.
}
} It seems that disk space for each directory/File System
} must be equal size in order to work correctly.
}
} What I would like is to use a bunch of free space and
} aggregate them. But as far as it's working right now I am unable to
} use all available space.
}
} Right now I have this configuration:
}
} cache_swap 1250
} cache_dir /www/new-cache
} cache_dir /www/secondary-cache-1
} cache_dir /www/secondary-cache-2
}
} Filesystem 1K-blocks Used Avail Capacity Mounted on
} /dev/sd2a 1000502 404142 546334 43% /www
} /dev/sd0g 527887 380021 121471 76%
} /www/secondary-cache-1
} /dev/sd1h 446399 374987 49092 88%
} /www/secondary-cache-2
}
} Note that I'm using cache_swap at 1250Kb. If I use what
} I want: (1000+527+446) then it fills /www/secondary-cache-2 and never
} goes past 1200Kb.
}
} With current configuration it does not exceed from 1000Kb +- 100Kb.
}
} How could I use all the space I have?
}
} Thank you all in advance for yor help.
}
} Carmine Di Biase
} carmine@true.net
}

-- 
[ Nigel.Metheringham@theplanet.net   - Unix Applications Engineer ]
[ *Views expressed here are personal and not supported by PLAnet* ]
[ PLAnet Online : The White House          Tel : +44 113 251 6012 ]
[ Melbourne Street, Leeds LS2 7PS UK.      Fax : +44 113 2345656  ]
Received on Thu Jul 25 1996 - 08:01:17 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:32:42 MST