[MDEV-236] track and limit memory usage per connection Created: 2012-04-27  Updated: 2013-04-24  Resolved: 2013-04-24

Status: Closed
Project: MariaDB Server
Component/s: None
Fix Version/s: None

Type: Task Priority: Major
Reporter: Sergei Golubchik Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None

Issue Links:
Duplicate
is duplicated by MDEV-4011 per-thread memory usage statistics Closed

 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


 Comments   
Comment by roberto spadim [ 2013-04-23 ]

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

Comment by roberto spadim [ 2013-04-23 ]

same as MDEV-4011 ?

Generated at Thu Feb 08 06:27:15 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.