Þ•&L5|PQ�Yšé„I ¦êŽ‘  &–3‡Ê~R Ѩ܅\�êYïjI Ø´ (� ?¶ &ö Ò !ð 0 >C <‚ )¿ é ¤ð }•5I al�1šÌ�ÔšdÿI¦eŽ › ¡–®‡E~Í L¨W\eYjjÄØ/(?1&qÒ˜!k0�>¾<ý):d¤k}5ŽÄ Üçü #"&  %  !$FreeBSDGroonga creates one or more files per table and column. If your database has many tables and columns, Groonga process needs to open many files.Groonga maps database files onto memory and accesses to them. Groonga doesn't maps unnecessary files onto memory. Groonga maps files when they are needed.Here is an example schema::Here is an expression that compute how many files are opened by Groonga::If you access to all data in database, all database files are mapped onto memory. If total size of your database files is 6GiB, your Groonga process uses 6GiB memory.If you run Groonga process by ``groonga`` user and your Groonga process needs to open less than 10000 files, use the following configuration::LinuxMemory usageNormally, you must have memory and swap that is larger than database. Linux has tuning parameter to work with less memory and swap than database size.Normally, your all database files aren't mapped onto memory. But it may be occurred. It is an example case that you dump your database.Note that your real configuration file will be the following because you already have ``vm.overcommit_memory`` configuration::ParametersSee `Linux kernel documentation about overcommit `_ about ``vm.overcommit_memory`` parameter details.SummarySystem limits the max number of open files per process. So you need to relax the limitation.TODOThe configuration can be applied by restarting your system or run the following command::The configuration is applied after your Groonga service is restarted or re-login as your ``groonga`` user.The default value of the kernel parameter may be ``65530`` or ``65536``. Groonga maps 256KiB memory chunk at one time. If a database is larger than 16GiB, Groonga reaches the limitation. (``256KiB * 65536 = 16GiB``)The max number of open files per processThere are some tuning parameters for handling a large database.This example opens at least 11 files::This is :ref:`tuning-memory-usage` related parameter. You can handle a 16GiB or more larger size database by increasing ``vm.max_map_count`` kernel parameter. The parameter limits the max number of memory maps.This is :ref:`tuning-memory-usage` related parameter. You can handle a database that is larger than your memory and swap by setting ``vm.overcommit_memory`` kernel parameter to ``1``. ``1`` means that Groonga can always map database files onto memory. Groonga recommends the configuration.This parameter is for handling a large database.This section describes how to configure parameters on FreeBSD.This section describes how to configure parameters on Linux.This section describes tuning parameters.TuningYou can relax the :ref:`tuning-max-n-open-files` parameter by creating a configuration file ``/etc/security/limits.d/groonga.conf`` that has the following content::You can set the configuration by putting a configuration file ``/etc/sysctl.d/groonga.conf`` that has the following content::You needs to increase the value of the kernel parameter to handle 16GiB or more larger size database. For example, you can handle almost 32GiB size database by ``65536 * 2 = 131072``. You can set the configuration by putting a configuration file ``/etc/sysctl.d/groonga.conf`` that has the following content::``kern.maxfileperproc````nofile````vm.max_map_count````vm.overcommit_memory``Project-Id-Version: Groonga 16.0.5 Report-Msgid-Bugs-To: PO-Revision-Date: 2026-05-22 06:03+0000 Last-Translator: Automatically generated Language-Team: none MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Language: en Plural-Forms: nplurals=2; plural=(n != 1); FreeBSDGroonga creates one or more files per table and column. If your database has many tables and columns, Groonga process needs to open many files.Groonga maps database files onto memory and accesses to them. Groonga doesn't maps unnecessary files onto memory. Groonga maps files when they are needed.Here is an example schema::Here is an expression that compute how many files are opened by Groonga::If you access to all data in database, all database files are mapped onto memory. If total size of your database files is 6GiB, your Groonga process uses 6GiB memory.If you run Groonga process by ``groonga`` user and your Groonga process needs to open less than 10000 files, use the following configuration::LinuxMemory usageNormally, you must have memory and swap that is larger than database. Linux has tuning parameter to work with less memory and swap than database size.Normally, your all database files aren't mapped onto memory. But it may be occurred. It is an example case that you dump your database.Note that your real configuration file will be the following because you already have ``vm.overcommit_memory`` configuration::ParametersSee `Linux kernel documentation about overcommit `_ about ``vm.overcommit_memory`` parameter details.SummarySystem limits the max number of open files per process. So you need to relax the limitation.TODOThe configuration can be applied by restarting your system or run the following command::The configuration is applied after your Groonga service is restarted or re-login as your ``groonga`` user.The default value of the kernel parameter may be ``65530`` or ``65536``. Groonga maps 256KiB memory chunk at one time. If a database is larger than 16GiB, Groonga reaches the limitation. (``256KiB * 65536 = 16GiB``)The max number of open files per processThere are some tuning parameters for handling a large database.This example opens at least 11 files::This is :ref:`tuning-memory-usage` related parameter. You can handle a 16GiB or more larger size database by increasing ``vm.max_map_count`` kernel parameter. The parameter limits the max number of memory maps.This is :ref:`tuning-memory-usage` related parameter. You can handle a database that is larger than your memory and swap by setting ``vm.overcommit_memory`` kernel parameter to ``1``. ``1`` means that Groonga can always map database files onto memory. Groonga recommends the configuration.This parameter is for handling a large database.This section describes how to configure parameters on FreeBSD.This section describes how to configure parameters on Linux.This section describes tuning parameters.TuningYou can relax the :ref:`tuning-max-n-open-files` parameter by creating a configuration file ``/etc/security/limits.d/groonga.conf`` that has the following content::You can set the configuration by putting a configuration file ``/etc/sysctl.d/groonga.conf`` that has the following content::You needs to increase the value of the kernel parameter to handle 16GiB or more larger size database. For example, you can handle almost 32GiB size database by ``65536 * 2 = 131072``. You can set the configuration by putting a configuration file ``/etc/sysctl.d/groonga.conf`` that has the following content::``kern.maxfileperproc````nofile````vm.max_map_count````vm.overcommit_memory``