squid proxy big and small buckets not functioning correctly

Bug #887186 reported by Scott Moser
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
orchestra (Ubuntu)
Won't Fix
Undecided
Andres Rodriguez

Bug Description

I'm running the oneiric ppa version of orchestra on natty:
$ dpkg-query --show ubuntu-orchestra-provisioning-server squid
squid 2.7.STABLE9-2.1ubuntu6
ubuntu-orchestra-provisioning-server 2.21-0ubuntu1~ppa4

My /etc/squid/squid.conf file has the following diff against what is in current precise /usr/share/orchestra/conf/squid.conf [1].
$ diff -wu /tmp/squid.conf /etc/squid/squid.conf
--- /tmp/squid.conf 2011-11-07 08:59:51.732258352 -0500
+++ /etc/squid/squid.conf 2011-10-26 16:17:51.320501502 -0400
@@ -55,6 +55,8 @@
 extension_methods REPORT MERGE MKACTIVITY CHECKOUT
 hosts_file /etc/hosts
 coredump_dir /var/spool/squid
+
+# changes over /usr/share/orchestra/conf/squid.conf
 maximum_object_size 750 MB
 cache_dir aufs /var/spool/squid/small 40000 16 256 max-size=40M
 cache_dir aufs /var/spool/squid/big 40000 16 256

I did this:
sudo sh -c 'du -hs /var/spool/squid/small /var/spool/squid/big'
[sudo] password for smoser:
17M /var/spool/squid/small
186M /var/spool/squid/big

Then, did an apt-get dist-upgrade -d to precise and I see afterwards:
$ sudo sh -c 'du -hs /var/spool/squid/small /var/spool/squid/big'
[sudo] password for smoser:
17M /var/spool/squid/small
656M /var/spool/squid/big

The big dir grew significantly, while the small dir not at all.
It seems like our 2 directores are not functioning as they should, as clearly most of that 'apt-get dist-upgrade' would have been under 40M files.

--
[1] http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/precise/orchestra/precise/view/head:/provisioning-server/usr/share/orchestra/conf/squid.conf

Revision history for this message
Scott Moser (smoser) wrote :

Some more possibly relevant information:

$ sudo sh -c 'du -ks /var/spool/squid/small'; grep cache_dir /etc/squid/*.conf
16456 /var/spool/squid/small
cache_dir aufs /var/spool/squid/big 40000 16 256
cache_dir aufs /var/spool/squid/small 40000 16 256 max-size=40M

/var/log/squid/cache.log has:
2011/11/07 09:14:38| Rebuilding storage in /var/spool/squid/big (DIRTY)
2011/11/07 09:14:38| Rebuilding storage in /var/spool/squid/small (CLEAN)
...
2011/11/07 09:14:38| Done reading /var/spool/squid/small swaplog (0 entries)
2011/11/07 09:14:38| Done reading /var/spool/squid/big swaplog (1465 entries)
2011/11/07 09:14:38| Finished rebuilding storage from disk.

Revision history for this message
Scott Moser (smoser) wrote :

I've verified this is still broken using the orchestra squid configuration on precise with squid3.
After generally acting as a squid proxy for some VM installs, my local system shows:

$ sudo du -hs /var/spool/squid3/*
[sudo] password for smoser:
551M /var/spool/squid3/big
17M /var/spool/squid3/small

$ dpkg-query --show squid3
squid3 3.1.16-1ubuntu1

Changed in orchestra (Ubuntu):
status: New → Confirmed
assignee: nobody → Andres Rodriguez (andreserl)
tags: added: rls-p-tracking
Dave Walker (davewalker)
tags: removed: rls-p-tracking
Changed in orchestra (Ubuntu):
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.