mindi performance
Stanislav Tokoš <[email protected]>
| Newsgroups | gmane.linux.mondo.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello Bruno and others,
I have problems with mondoarchive performance.
I got this from mindi.log at our nagios server:
INFO: module video -->
/lib/modules/4.4.79-19-default/kernel/drivers/acpi/video.ko
INFO: module wmi -->
/lib/modules/4.4.79-19-default/kernel/drivers/platform/x86/wmi.ko
INFO: module xor --> /lib/modules/4.4.79-19-default/kernel/crypto/xor.ko
INFO: Analyzing your keyboard's configuration.
INFO: KEYDIR=/usr/share/kbd
INFO: Red Hat-style config detected.
INFO: keyfile=/etc/sysconfig/keyboard
INFO: locale=xmodmap
It seemed that mindi just stucked there. I investigated more deeply
about the root case of this problem. I have lots of NFS mount points and
other HDs by the way.
I figure it out finally:
@@ -489,7 +489,7 @@ FindAndAddUserKeyboardMappingFile() {
[ -e "$i" ] && [ ! -d "$i" ] && break
done
if [ ! -e "$mappath" ] || [ -d "$mappath" ] ; then
- mappath=$(find / -wholename "*/kbd/keymaps/*/$locale |
head -1") + mappath=$(find /usr /lib /lib64 -wholename
"*/kbd/keymaps/*/$locale | head -1")
fi
LogFile "INFO: mappath = $mappath"
if [ ! -e "$mappath" ] || [ -d "$mappath" ] ; then
PS: The patch is in the attachment.
Regards
Stanislav
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mondo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mondo-devel
0001-improve-perfomance-for-searching-keymaps-and-locale.patch
(text/x-patch, 797 B)
From 6d7eda9c34f863ddc8659a7a28be1b694b50d55f Mon Sep 17 00:00:00 2001 From: Stanislav Tokos <[email protected]> Date: Thu, 21 Sep 2017 15:03:04 +0200 Subject: [PATCH] improve perfomance for searching keymaps and locale --- mindi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mindi b/mindi index 0861149..0b6579a 100755 --- a/mindi +++ b/mindi @@ -489,7 +489,7 @@ FindAndAddUserKeyboardMappingFile() { [ -e "$i" ] && [ ! -d "$i" ] && break done if [ ! -e "$mappath" ] || [ -d "$mappath" ] ; then - mappath=$(find / -wholename "*/kbd/keymaps/*/$locale | head -1") + mappath=$(find /usr /lib /lib64 -wholename "*/kbd/keymaps/*/$locale | head -1") fi LogFile "INFO: mappath = $mappath" if [ ! -e "$mappath" ] || [ -d "$mappath" ] ; then -- 2.11.0