MySQL Forums
Forum List  »  InnoDB

Re: innodb memory usage vs swap
Posted by: Rick James
Date: September 10, 2010 11:14PM

I asked about huge pages because you mentioned
vm.nr_hugepages = 2048

cat /proc/meminfo |grep Hugepagesize
That might say 2048K

Multiply those together and you get 4GB reserved for huge pages.

mysqld is probably not running --large-pages
Quote

Large page support in MySQL is disabled by default. To enable it, start the server with the --large-pages option. For example, you can use the following lines in your server's my.cnf file:

[mysqld]
large-pages

A guess: The OS preallocated 4GB for huge pages. But no process is using it. Meanwhile the other 4GB is used by mysqld and assorted OS things. But mysqld needs 4GB for the innodb_buffer_pool. So, something has to swap.

See also http://bugs.mysql.com/bug.php?id=43606
http://dev.mysql.com/doc/refman/5.0/en/large-page-support.html

Options: ReplyQuote


Subject
Views
Written By
Posted
7227
September 08, 2010 10:35PM
2506
September 10, 2010 12:01AM
5082
September 10, 2010 09:44AM
2570
September 10, 2010 09:59AM
2547
September 10, 2010 12:26PM
Re: innodb memory usage vs swap
8395
September 10, 2010 11:14PM
3455
September 14, 2010 08:42AM
2703
September 14, 2010 09:44AM
2645
September 14, 2010 08:12PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.