zakkymuha / lusca-cache

Automatically exported from code.google.com/p/lusca-cache
0 stars 0 forks source link

ojects stored in COSS will no longer be hit after restart. #64

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.coss cache dir only(to test if its stored after restart)
2.visit cacheable content sites
3.restart squid(squid -k shutdown after squid exit normally in cache.log 
run squid -D)

What version of the product are you using? On what operating system?
lusca r14301 freebsd7.2 i386

Please provide any additional information below.
2009/09/19 13:49:03| Store rebuilding is  0.0% complete
2009/09/19 13:49:03|   /cache0/coss: completed rebuild
2009/09/19 13:49:03| Finished rebuilding storage from disk.
2009/09/19 13:49:03|       134 Entries scanned
2009/09/19 13:49:03|         0 Invalid entries.
2009/09/19 13:49:03|         0 With invalid flags.
2009/09/19 13:49:03|       134 Objects loaded.
2009/09/19 13:49:03|         0 Objects expired.
2009/09/19 13:49:03|         0 Objects cancelled.
2009/09/19 13:49:03|         0 Duplicate URLs purged.
2009/09/19 13:49:03|         0 Swapfile clashes avoided.
2009/09/19 13:49:03|   Took 1.8 seconds (  73.2 objects/sec).
2009/09/19 13:49:03| Beginning Validation Procedure
2009/09/19 13:49:03| COSS: /cache0/coss: Rebuild Completed
2009/09/19 13:49:03|   134 objects scanned, 39 objects relocated, 0 objects 
fresher, 0 objects ignored
2009/09/19 13:49:03|   Current stripe set to 1
2009/09/19 13:49:04|   Completed Validation Procedure
2009/09/19 13:49:04|   Validated 95 Entries
2009/09/19 13:49:04|   store_swap_size = 886k
2009/09/19 13:49:04| storeLateRelease: released 64 objects
of those 134 objects nothing hits.

anyway after digging found out COSS(ever since developed) will never be hit 
after restart, and also says it uses LRU removal policy on its own.
I guess people using COSS aware of it.

Original issue reported on code.google.com by chudy.fernandez on 20 Sep 2009 at 3:15

GoogleCodeExporter commented 9 years ago
ls -l /cache0/coss for me please?

Original comment by adrian.c...@gmail.com on 20 Sep 2009 at 3:17

GoogleCodeExporter commented 9 years ago
bsd72# ls -l /cache0/coss
-rw-------  1 proxy  proxy  106954752 Sep 19 14:59 /cache0/coss

@squid.conf
cache_effective_user proxy
cache_effective_group proxy

Original comment by chudy.fernandez on 20 Sep 2009 at 4:53

GoogleCodeExporter commented 9 years ago
squid-2.7.9 got TCP_HIT
lusca got all TCP_REFRESH_MISS

same config with cache_swap_log

Original comment by chudy.fernandez on 2 Jun 2010 at 3:24

GoogleCodeExporter commented 9 years ago
same with me,
after restart file syestem coss always miss
back revert to aufs for small files :(

my OS freebsd-7.3-STABLE

my disk on systems OS have problems with files coss larger than 10 GB and I 
create
more smaller coss areas.
cache_dir coss /cache0/coss0 8192 max-size=65536 block-size=512
cache_dir coss /cache0/coss1 8192 max-size=65536 block-size=512
cache_swap_log /var/log/squid/%s

lusca coss build faster more than  squid coss, but alway miss after restart

Original comment by tembokg...@gmail.com on 3 Jun 2010 at 12:13

GoogleCodeExporter commented 9 years ago
I'll look into this once I've fixed the crash bugs in LUSCA_HEAD.

Original comment by adrian.c...@gmail.com on 3 Jun 2010 at 3:22