1. 26 Jan, 2024 2 commits
    • AlveElde's avatar
      expire: New EXP_Removed log statement · 5963b6dc
      AlveElde authored
      It is generally useful to know when an object leaves the cache and while
      it may sometimes be logged by call sites (like bans) it is more helpful
      centralize it in ExpKill records to get a (more) complete view of what
      goes in and out of (durable) storage.
      
      The hits attribute is especially useful, as it can give an indication of
      the popularity of objects being removed before they expire.
      5963b6dc
    • AlveElde's avatar
      expire: Add hits to EXP_Expired log statement · ea640d47
      AlveElde authored
      This makes it easier to estimate the popularity of expired objects.
      ea640d47
  2. 24 Jan, 2024 2 commits
  3. 22 Jan, 2024 2 commits
  4. 18 Jan, 2024 1 commit
  5. 15 Jan, 2024 6 commits
  6. 10 Jan, 2024 3 commits
  7. 09 Jan, 2024 1 commit
  8. 08 Jan, 2024 3 commits
  9. 02 Jan, 2024 2 commits
  10. 31 Dec, 2023 3 commits
    • Nils Goroll's avatar
      Fix use of objiterate_f in vrb_pull() · 08350519
      Nils Goroll authored
      The objiterate_f interface requires that OBJ_ITER_END be sent,
      preferrably with the last chunk of data, but at least after it.
      08350519
    • Nils Goroll's avatar
      Clarify and fix STV_NewObject() len/wsl argument use · 532e9c20
      Nils Goroll authored
      It was not documented explicitly anywhere, but the len/wsl argument to
      STV_NewObject() is the amount of space to allocate for all
      OBJ_VARATTRs combined which are going to be written to this
      object. For now, these are OA_HEADERS and OA_VARY only (see
      include/tbl/obj_attr.h).
      
      So for one, there is no reason to force this argument be greater than
      zero when we know that no OBJ_VARATTRs are going to be set.
      
      Secondly, this might actually represent a minor shortcoming of the
      stevedore API, because the amount of space which a stevedore
      implementation actually needs might be larger than what the simple
      stevedores use. So for now, the semantics of this argument are, more
      specifically, "the equivalent of space for OBJ_VARATTRs as for simple
      storage". In practice, this probably does not matter much...
      
      But even before this clarification, the API was not used consistently:
      
      For the call from vrb_pull(), the maximum request body size (to cache)
      was used as the wsl argument, yet it has nothing to do with the object
      body size, it specifies the amount of space to allocate for variable
      sized object attributes (see above).
      
      For the call from cnt_synth(), a somehow arbitrary value of 1KB was
      used.
      
      In both cases, the amount of space actually required is zero, because
      the only attribute used on the objects created is OA_LEN, which is
      fixed and thus always present.
      532e9c20
    • Nils Goroll's avatar
      Polish: Consistent use of sizeof in SML_allocobj() · 5752421e
      Nils Goroll authored
      There are two sizeof calls here with the same semantics, make them the
      same.
      5752421e
  11. 27 Dec, 2023 3 commits
  12. 21 Dec, 2023 2 commits
  13. 19 Dec, 2023 1 commit
  14. 11 Dec, 2023 9 commits