Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-236

track and limit memory usage per connection

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Duplicate
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      We want to be able to know how much memory a particular connection was allocated. And Limit this amount, if necessary.

      Possible implementations (all in my_malloc()/my_free()):

      • allocate 16 bytes more and store the size there
      • use _msize (windows), malloc_usable_size (linux), malloc_size (mac os x). That's simpler, but is it portable enough for us? See also this thread

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              serg Sergei Golubchik
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: