Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
13548ed6
Commit
13548ed6
authored
Oct 09, 2006
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mem0pool.c: Remove obsolete comments about the dictionary cache being
managed with an LRU algorithm.
parent
bdf65e70
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
mem/mem0pool.c
mem/mem0pool.c
+8
-9
No files found.
mem/mem0pool.c
View file @
13548ed6
...
@@ -35,7 +35,7 @@ The main components of the memory consumption are:
...
@@ -35,7 +35,7 @@ The main components of the memory consumption are:
8. session for each user, and
8. session for each user, and
9. stack for each OS thread.
9. stack for each OS thread.
Items 1
-3
are managed by an LRU algorithm. Items 5 and 6 can potentially
Items 1
and 2
are managed by an LRU algorithm. Items 5 and 6 can potentially
consume very much memory. Items 7 and 8 should consume quite little memory,
consume very much memory. Items 7 and 8 should consume quite little memory,
and the OS should take care of item 9, which too should consume little memory.
and the OS should take care of item 9, which too should consume little memory.
...
@@ -54,16 +54,15 @@ common pool and the buffers in the buffer pool into a single LRU list and
...
@@ -54,16 +54,15 @@ common pool and the buffers in the buffer pool into a single LRU list and
manage it uniformly, but this approach does not take into account the parsing
manage it uniformly, but this approach does not take into account the parsing
and other costs unique to SQL statements.
and other costs unique to SQL statements.
So, let the SQL statements and the data dictionary entries form one single
The locks for a transaction can be seen as a part of the state of the
LRU list, let us call it the dictionary LRU list. The locks for a transaction
transaction. Hence, they should be stored in the common pool. We still
can be seen as a part of the state of the transaction. Hence, they should be
have the problem of a very big update transaction, for example, which
stored in the common pool. We still have the problem of a very big update
will set very many x-locks on rows, and the locks will consume a lot
transaction, for example, which will set very many x-locks on rows, and the
of memory, say, half of the buffer pool size.
locks will consume a lot of memory, say, half of the buffer pool size.
Another problem is what to do if we are not able to malloc a requested
Another problem is what to do if we are not able to malloc a requested
block of memory from the common pool. Then we can
truncate the LRU list of
block of memory from the common pool. Then we can
request memory from
the
dictionary cache
. If it does not help, a system error results.
the
operating system
. If it does not help, a system error results.
Because 5 and 6 may potentially consume very much memory, we let them grow
Because 5 and 6 may potentially consume very much memory, we let them grow
into the buffer pool. We may let the locks of a transaction take frames
into the buffer pool. We may let the locks of a transaction take frames
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment