Percona Server with XtraDB

Remove malloc() from read_view_create_low()

Reported by Alexey Kopytov on 2013-02-21
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MySQL Server
Unknown
Unknown
Percona Server
Status tracked in 5.6
5.1
Undecided
Unassigned
5.5
High
Alexey Kopytov
5.6
High
Alexey Kopytov

Bug Description

read_view_create_low() is called on every transaction start and allocates memory for the read view created in read_view_open_now().

The problem is that the heap for that allocation is emptied on each commit and thus read view memory is reallocated on the next transaction. Memory profiling shows that memory allocated by read_view_create_low() amount to almost 100% of all allocations made by InnoDB in sysbench read-only tests.

Alexey Kopytov (akopytov) wrote :

I will port it to 5.6 myself.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.