Gentoo Archives: gentoo-user

From: Francisco Ares <frares@×××××.com>
To: gentoo-user <gentoo-user@l.g.o>
Subject: Re: [gentoo-user] nepomuk gone, baloo enters
Date: Fri, 21 Aug 2015 15:01:09
Message-Id: CAHH9eM4LbS9YozxSbtR110P=2fdSB6znMfuF+SBGA9=UCe+yJQ@mail.gmail.com
In Reply to: Re: [gentoo-user] nepomuk gone, baloo enters by Francisco Ares
1 2015-08-21 11:39 GMT-03:00 Francisco Ares <frares@×××××.com>:
2
3 > 2015-08-21 11:30 GMT-03:00 Francisco Ares <frares@×××××.com>:
4 >
5 >> 2015-08-21 11:02 GMT-03:00 J. Roeleveld <joost@××××××××.org>:
6 >>
7 >>> On Friday, August 21, 2015 10:56:58 AM Francisco Ares wrote:
8 >>> > 2015-08-21 10:49 GMT-03:00 Francisco Ares <frares@×××××.com>:
9 >>> > > 2015-08-21 10:31 GMT-03:00 J. Roeleveld <joost@××××××××.org>:
10 >>> > >> On Friday, August 21, 2015 10:06:15 AM Francisco Ares wrote:
11 >>> > >> > Hi,
12 >>> > >> >
13 >>> > >> > In fact, I can only suppose there's something related to changing
14 >>> from
15 >>> > >> > nepomuk to baloo:
16 >>> > >> >
17 >>> > >> > Now, every time I log in, a window pops up asking for root
18 >>> password.
19 >>> > >>
20 >>> > >> The
21 >>> > >>
22 >>> > >> > window title is "PolicyKit - KDE" and pressing the button
23 >>> "Details", it
24 >>> > >> > shows:
25 >>> > >> >
26 >>> > >> > Action: Folder Watch Limit
27 >>> > >> > polkit.subject-pid: 5254
28 >>> > >> > polkit.caller-pid: 6699
29 >>> > >> >
30 >>> > >> > Looking for those PIDs:
31 >>> > >> >
32 >>> > >> > ~ $ ps -A | grep 5254
33 >>> > >> >
34 >>> > >> > 5254 ? 00:00:07 baloo_file
35 >>> > >> >
36 >>> > >> > and PID 6699 doesn't show up any more, probably the process has
37 >>> already
38 >>> > >> > ended.
39 >>> > >> >
40 >>> > >> > Did I miss something? How do I set up Baloo? Looking on the net,
41 >>> I only
42 >>> > >> > found how to set up a file ~/.kde4/share/config/nepomukserverrc
43 >>> (that
44 >>> > >>
45 >>> > >> was
46 >>> > >>
47 >>> > >> > nonexistent, which seemed strange), is there something else
48 >>> regarding
49 >>> > >>
50 >>> > >> the
51 >>> > >>
52 >>> > >> > database it might be willing to use?
53 >>> > >>
54 >>> > >> Nepomuk, and now Baloo, want to open file-watchers on your system
55 >>> to get
56 >>> > >> change-notifications directly from the kernel (filesystem driver),
57 >>> > >> instead of
58 >>> > >> polling the filesystem.
59 >>> > >> This is actually better, performance wise.
60 >>> > >>
61 >>> > >> To avoid these message, I created the following file a long time
62 >>> ago:
63 >>> > >>
64 >>> > >> % cat /etc/sysctl.d/97-kde-nepomuk-filewatch-inotify.conf
65 >>> > >> fs.inotify.max_user_watches = 65536
66 >>> > >>
67 >>> > >> Guess I will need to change the name of that file now :)
68 >>> > >>
69 >>> > >> Kind regards,
70 >>> > >>
71 >>> > >> Joost
72 >>> > >
73 >>> > > Thank you, Joost.
74 >>> > >
75 >>> > > Best Regards,
76 >>> > > Francisco
77 >>> >
78 >>> > Checking on the file pointed by Joost, I've found it on my
79 >>> filesystem), but
80 >>> > there is another file, an almost exact copy, for baloo:
81 >>> >
82 >>> > ~ # l /etc/sysctl.d/
83 >>> > total 28K
84 >>> > drwxr-xr-x 2 root root 4,0K Ago 21 10:50 ./
85 >>> > drwxr-xr-x 160 root root 12K Ago 21 10:22 ../
86 >>> > -rw-r--r-- 1 root root 36 Ago 21 09:16
87 >>> > 97-kde-baloo-filewatch-inotify.conf
88 >>> >
89 >>> > -rw-r--r-- 1 root root 36 Mai 7 2014
90 >>> > 97-kde-nepomuk-filewatch-inotify.conf
91 >>> >
92 >>> >
93 >>> > ~ # cat /etc/sysctl.d/97-kde-*
94 >>> > fs.inotify.max_user_watches = 65536
95 >>> > fs.inotify.max_user_watches = 32768
96 >>> >
97 >>> >
98 >>> >
99 >>> > The first value (65536) is from 97-kde-baloo-filewatch-inotify.conf .
100 >>> The
101 >>> > second (32768) is from 97-kde-nepomuk-filewatch-inotify.conf.
102 >>> >
103 >>> > So, the mystery goes on...
104 >>> >
105 >>> > Thanks,
106 >>> > Francisco
107 >>>
108 >>> what does:
109 >>> % cat /proc/sys/fs/inotify/max_user_watches
110 >>> give you?
111 >>>
112 >>> My guess: 32768 (as that's the last one it will find)
113 >>> On my system I get 65536.
114 >>>
115 >>> I think if you were to remove the nepomuk file, it should work.
116 >>>
117 >>> --
118 >>> Joost
119 >>>
120 >>>
121 >>
122 >> Unexpected:
123 >>
124 >> ~ $ cat /proc/sys/fs/inotify/max_user_watches
125 >> 131072
126 >>
127 >> both as a regular user an as root.
128 >>
129 >> Going to search for this number on config files.
130 >>
131 >> Thanks for the clue.
132 >>
133 >> Francisco
134 >>
135 >
136 >
137 >
138 > Also unexpected:
139 >
140 > ~ # cd /etc
141 > etc # fgrep -R 131072 * 2> /dev/null
142 > apache2/modules.d/10_mod_mem_cache.conf:MCacheSize 131072
143 > sane.d/sharp.conf:option buffersize 131072
144 > sysctl.d/97-kde-baloo-filewatch-inotify.conf:fs.inotify.max_user_watches =
145 > 131072
146 >
147 >
148 > I have logged out and back in, to check for the effects on that window
149 > asking for root password. It did show up again, and now the
150 > file 97-kde-baloo-filewatch-inotify.conf has been changed.
151 >
152 > Going to try again, after removing 97-kde-nepomuk-filewatch-inotify.conf.
153 > Back soon...
154 >
155
156
157 It took a while longer, but there it is, asking for root password. After
158 removing 97-kde-nepomuk-filewatch-inotify.conf and
159 adjusting 97-kde-baloo-filewatch-inotify.conf contents to the suggested by
160 Joost, there it is again, asking for root password.
161
162 Now, before hitting the OK button:
163
164 polkit.subject.pid 24276
165 polkit.caller.pid: 25543
166
167
168 ~ # ps -ejH
169 PID PGID SID TTY TIME CMD
170 2 0 0 ? 00:00:00 kthreadd
171 3 0 0 ? 00:00:01 ksoftirqd/0
172 5 0 0 ? 00:00:00 kworker/0:0H
173 ...
174 25528 0 0 ? 00:00:00 kworker/3:2
175 25536 0 0 ? 00:00:00 kworker/1:2
176 1 1 1 ? 00:00:00 init
177 1761 1761 1761 ? 00:00:00 systemd-udevd
178 ...
179 24173 24173 24173 ? 00:00:00 dbus-daemon
180 24220 24220 24220 ? 00:00:00 kdeinit4
181 24221 24220 24220 ? 00:00:00 klauncher
182 ...
183 24247 24220 24220 ? 00:00:00 kactivitymanage
184 24270 24220 24220 ? 00:00:17 plasma-desktop
185 24272 24220 24220 ? 00:00:00 ksysguardd
186 24276 24220 24220 ? 00:00:25 baloo_file
187 ...
188 25543 3972 3972 ? 00:00:00 kde_baloo_filew
189
190
191 So, they are part of the same tree, but there is no parent-child
192 relationship among them - as far as I understand this listing.
193
194 Thanks!
195 Francisco