Re: squid-1.2.beta13 available

From: Duane Wessels <wessels@dont-contact.us>
Date: Tue, 10 Feb 1998 13:26:14 -0700

carson@tla.org writes:

>>>>>> "Duane" == Duane Wessels <wessels@nlanr.net> writes:
>
>Duane> It changes the order in which new swapfiles are placed into
>Duane> the directories.
>
>Duane> OLD
>
>Duane> cache/00/00/00000000
>Duane> cache/01/00/00000001
>Duane> cache/02/00/00000002
>Duane> cache/03/00/00000003
>
>Duane> NEW
>
>
>Duane> cache/00/00/00000000
>Duane> cache/00/00/00000001
>Duane> cache/00/00/00000002
>Duane> cache/00/00/00000003
>
>
>How does it handle multiple cache_dirs? I'd hate to see one disk take all
>the abuse...

Right, the above assumes only one cache_dir.

With more than one, new swap files are allocated from the directory
which has the largest percent of free space. e.g.:

        static int
        storeDirMapAllocate(void)
        {
            int dirn = storeMostFreeSwapDir();
            SwapDir *SD = &Config.cacheSwap.swapDirs[dirn];
            int filn = file_map_allocate(SD->map, SD->suggest);
            SD->suggest = filn + 1;
            return (dirn << SWAP_DIR_SHIFT) | (filn & SWAP_FILE_MASK);
        }

In other words, Stew's changes don't affect the cache_dir load
balancing.

Duane W.
Received on Tue Jul 29 2003 - 13:15:46 MDT

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