Skip to content

Allocate pages of smaller-than-max_block_size() size in the page cache. #2130

Closed

Description

@srh

Right now, pages in the cache are still of size max_block_size(). We could make them smaller when the ser_buf_size_ is smaller. We don't append to blobs in-place anyway, so there's no performance worries (right now). We would have to make sure that the caller uses the information we give it and doesn't try to write past the end of a buffer somehow. The blob code is currently the only caller we'd have to worry about.

Activity

  1. added this to the subsequent milestone on Mar 21, 2014
  2. modified the milestones: , subsequent on Mar 26, 2014
  3. srh commented on Apr 16, 2014

    @srh
    ContributorAuthor

    Implemented in sam_2130 and awaiting review 1427.

  4. srh commented on Apr 22, 2014

    @srh
    ContributorAuthor

    Merged to next as of 81591e1.

    The implementation is somewhat suboptimal because it fits with the pre-existing cache API: first we allocate a 4K-sized block, then we copy it to a block of smaller size, once its actual size is specified (if it's different).

    Generally speaking, buffer cache blocks in memory are allocated to a multiple of 512 bytes.

  5. modified the milestones: 1.13, on Apr 26, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions