Gentoo Archives: gentoo-user

From: kashani <kashani-list@××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] mysqld invoked oom-killer
Date: Thu, 21 Jul 2011 17:36:28
Message-Id: 4E28635E.2030205@badapple.net
In Reply to: Re: [gentoo-user] mysqld invoked oom-killer by Grant
1 On 7/21/2011 9:53 AM, Grant wrote:
2 >> Next I'd look at tuning your Mysql config. If you've never touched
3 >> my.cnf, by default it's set to use 64MB IIRC. You may need to raise this to
4 >> get better performance. key_buffer and innodb_buffer_pool_size are the only
5 >> two I'd modify without knowing more.
6 >
7 > I use the default MyISAM tables and it looks like there are three
8 > key_buffer definitions in my.cnf. One under [mysqld] is 16M, one
9 > under [isamchk] is 20M, and one under [myisamchk] is 20M. All
10 > defaults. Should I increase them all to 64M?
11
12 You can, but [mysqld] is the only one that matters for normal
13 production. Depends on the size of your data and tables, but 64M is fine
14 to start. If you've got a few GB in your databases I'd go with 256-512M
15 or as high as you think you can get away with.
16
17 Any reason you're still using MyISAM tables? Innodb is almost as fast
18 or much much faster than MyISAM in nearly every way these days.
19
20 kashani

Replies

Subject Author
Re: [gentoo-user] mysqld invoked oom-killer Grant <emailgrant@×××××.com>
Re: [gentoo-user] mysqld invoked oom-killer Grant <emailgrant@×××××.com>