Am 08.12.19 um 17:55 schrieb dark-ml...@t-online.de:
Hallo ihr alle.

Ich benutze für meinen tägliche Arbeit Linux - Manjaro Gnome und Ubuntu
Gnome.

Manchmal bei der täglichen Arbeit fängt mein Rechner an - langsam
Tastatureingaben anzunehmen. Das äußert sich so, dass ich tippe und die
Eingabe in einer solchen Situation ein bis zwei Sekunden benötigt, bis
der Rechner auf die Eingabe reagiert.

was bisher noch nicht gesagt wurde: THP.

Wir empfehlen im Umfeld von PostgreSQL generell, das abzuschalten. Aus unserer KB:

===


   Issue

The system becomes totally unresponsive for a period of time. This may be caused by the operating system attempting to defragment huge memory pages. During this time the systems seems unresponsive and frozen, or the performance of the system (response times etc.) gets very erratic.

*Transparent Huge Pages* (THP) are enabled by default in Red Hat Enterprise Linux and CentOS 6 and 7 for all applications.

------------------------------------------------------------------------


   Resolution


     Disabling Transparent Huge Pages (THP)

The controls for THP are found in the sysfs (|/sys|) tree under |/sys/kernel/mm/transparent_hugepage| or |/sys/kernel/mm/redhat_transparent_hugepage|, depending on the distribution and version. In the following we describe the first of these.

The values for |/sys/kernel/mm/transparent_hugepage/enabled| can be one of the following:

 * |always| - defragment every time huge pages are requested
 * |madvise| - defragment every time huge pages are requested with
   |madvise|
 * |never| - never defragment huge pages

To disable:

|echo never > /sys/kernel/mm/transparent_hugepage/enabled echo never > /sys/kernel/mm/transparent_hugepage/defrag # Depending on linux kernel version, you may need '0' instead of 'no' echo no > /sys/kernel/mm/transparent_hugepage/khugepaged/defrag |

Then, to prevent the changed values from being reset on server reboot you'll need to update the bootloader, typically grub:

On Red Hat based systems:

|grubby --update-kernel=ALL --args='transparent_hugepage=never' |

On Debian based systems (e.g. Ubuntu), edit |/etc/default/grub| by appending |transparent_hugepage=never| to the string set for |GRUB_CMDLINE_LINUX|. After saving the file, run |update-grub| to update the grub configuration.

Other Linux distributions (e.g. SUSE 11) have similar issues. They will need other means of making the changes permanent.



===


Das ist aus unserer KnowledgeBase, die eigentlich nur für zahlende Kunden zugänglich ist. Bitte nicht außerhalb dieser Liste weiter verbreiten.

--
2ndQuadrant - The PostgreSQL Support Company.
www.2ndQuadrant.com


Antwort per Email an