Skip to content

(aoe): more accurate calculation of the size of each memory node #164

Closed

Description

@XuPeng-SH

For the column data node, there are 3 major parts, and the size of the node cannot be determined until the node becomes read-only.

  • metadata like field type, size, etc.
  • null value bitmap
  • column raw data

Currently, when a node is first created, it will be given an estimated size.
For example, for a column of type int32, if a node max row is 1000, the estimated size of this node is sizeof(int32) * rows = 4000 byte.
When the data corresponding to the node is continuously upgraded to a higher form(transient-->unsorted-->sorted), the initial node size will be inherited. The size error of each node is not big, but if it accumulates too much, it will affect memory management.

This issue will recalculate the real node size when it becomes read-only.

Activity

  1. added
    kind/tech-request
    on Jun 29, 2021
  2. added a commit that references this issue on Apr 25, 2024
  3. added a commit that references this issue on Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/tech-request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions