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

track and limit memory usage per connection

    Details

    • Type: Task
    • Status: Closed
    • 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

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

              Hide
              rspadim roberto spadim added a comment -

              it should be closed? in mariadb-10.0.1 i have the memory_used column

              Show
              rspadim roberto spadim added a comment - it should be closed? in mariadb-10.0.1 i have the memory_used column
              Hide
              rspadim roberto spadim added a comment -

              same as MDEV-4011 ?

              Show
              rspadim roberto spadim added a comment - same as MDEV-4011 ?

                People

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

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - 6 hours
                    6h
                    Remaining:
                    Remaining Estimate - 6 hours
                    6h
                    Logged:
                    Time Spent - Not Specified
                    Not Specified