You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 20, 2022. It is now read-only.
Have a look at the [MariaDB repository configuration tool](http://downloads.mariadb.org/MariaDB/repositories/) to find a repository near your server.
36
-
37
-
## Hugepages
38
-
My configuration relies on hugepages support. You can use the configuration without it, the server will work, but it will log an error.
39
-
### Activating hugepages
40
-
```shell
41
-
# Create backup of default system configuration
42
-
sysctl -a >~/sysctl_defaults.conf
43
-
# Create configuration for hugepages
44
-
echo'
45
-
# Activate Hugepages support. Set the number of pages to be used.
46
-
# Each page is normally 2MB, so a value of 256 = 512MB.
47
-
# Set it to e.g. 512 or higher if you have lots of memory.
48
-
vm.nr_hugepages = 256
49
-
50
-
# Set the group number that is allowed to access this memory.
51
-
vm.hugetlb_shm_group = 1004
52
-
53
-
# Increase the amount of shmem allowed per segment. This depends
54
-
# on the total memory our system actually has.
55
-
# Value is given in bytes (536870912 = 512MB).
56
-
kernel.shmmax = 536870912
57
-
58
-
# Increase total amount of shared memory.
59
-
# This should be 50% of available RAM.
60
-
# Value is given in bytes (805306368 = 768MB).
61
-
kernel.shmall = 805306368'>~/hugepages.conf
62
-
# Apply settings
63
-
sysctl -p ~/hugepages.conf
64
-
```
65
-
66
-
## Create new init script
67
-
In order to be able to use the hugepages you have to raise the ulimit for the mysqld user. I included a shell script which creates that new init script for you.
68
-
```shell
69
-
# Change to the cloned github repo
70
-
cd /path/to/the/cloned/github/repo
71
-
# Make the shell script executable
72
-
chmod 770 create-mariadb-init-script.sh
73
-
# And simply execute it
74
-
./create-mariadb-init-script.sh
75
-
```
76
-
Afterwards you can start/restart/stop your MariaDB server via `/etc/init.d/mariadb`.
77
-
78
-
## Questions?
79
-
Please bare in mind that this is an advanced configuration targeted towards user who have experience in administrating a server. But if you have any questions feel free to open an issue in the wiki of this repo.
1
+
# mysql
2
+
This is my personal MariaDB 5.5 configuration on my Debian �Squeeze� 6 servers.
3
+
4
+
## Installing MariaDB
5
+
I'm using the [switch.ch mirror](http://www.switch.ch/) in my `sources.list`:
6
+
7
+
```shell
8
+
# Add mirror.switch.ch to the sources.list
9
+
echo'# MariaDB 5.5
10
+
deb http://mirror.switch.ch/mirror/mariadb/repo/5.5/debian squeeze main
0 commit comments