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 14:39:59
Message-Id: CAHH9eM5Ehog+m=fBQWRO=1Y+2GNL5DWiy+bX4APZ+NnpxQkXbg@mail.gmail.com
In Reply to: Re: [gentoo-user] nepomuk gone, baloo enters by Francisco Ares
1 2015-08-21 11:30 GMT-03:00 Francisco Ares <frares@×××××.com>:
2
3 > 2015-08-21 11:02 GMT-03:00 J. Roeleveld <joost@××××××××.org>:
4 >
5 >> On Friday, August 21, 2015 10:56:58 AM Francisco Ares wrote:
6 >> > 2015-08-21 10:49 GMT-03:00 Francisco Ares <frares@×××××.com>:
7 >> > > 2015-08-21 10:31 GMT-03:00 J. Roeleveld <joost@××××××××.org>:
8 >> > >> On Friday, August 21, 2015 10:06:15 AM Francisco Ares wrote:
9 >> > >> > Hi,
10 >> > >> >
11 >> > >> > In fact, I can only suppose there's something related to changing
12 >> from
13 >> > >> > nepomuk to baloo:
14 >> > >> >
15 >> > >> > Now, every time I log in, a window pops up asking for root
16 >> password.
17 >> > >>
18 >> > >> The
19 >> > >>
20 >> > >> > window title is "PolicyKit - KDE" and pressing the button
21 >> "Details", it
22 >> > >> > shows:
23 >> > >> >
24 >> > >> > Action: Folder Watch Limit
25 >> > >> > polkit.subject-pid: 5254
26 >> > >> > polkit.caller-pid: 6699
27 >> > >> >
28 >> > >> > Looking for those PIDs:
29 >> > >> >
30 >> > >> > ~ $ ps -A | grep 5254
31 >> > >> >
32 >> > >> > 5254 ? 00:00:07 baloo_file
33 >> > >> >
34 >> > >> > and PID 6699 doesn't show up any more, probably the process has
35 >> already
36 >> > >> > ended.
37 >> > >> >
38 >> > >> > Did I miss something? How do I set up Baloo? Looking on the net, I
39 >> only
40 >> > >> > found how to set up a file ~/.kde4/share/config/nepomukserverrc
41 >> (that
42 >> > >>
43 >> > >> was
44 >> > >>
45 >> > >> > nonexistent, which seemed strange), is there something else
46 >> regarding
47 >> > >>
48 >> > >> the
49 >> > >>
50 >> > >> > database it might be willing to use?
51 >> > >>
52 >> > >> Nepomuk, and now Baloo, want to open file-watchers on your system to
53 >> get
54 >> > >> change-notifications directly from the kernel (filesystem driver),
55 >> > >> instead of
56 >> > >> polling the filesystem.
57 >> > >> This is actually better, performance wise.
58 >> > >>
59 >> > >> To avoid these message, I created the following file a long time ago:
60 >> > >>
61 >> > >> % cat /etc/sysctl.d/97-kde-nepomuk-filewatch-inotify.conf
62 >> > >> fs.inotify.max_user_watches = 65536
63 >> > >>
64 >> > >> Guess I will need to change the name of that file now :)
65 >> > >>
66 >> > >> Kind regards,
67 >> > >>
68 >> > >> Joost
69 >> > >
70 >> > > Thank you, Joost.
71 >> > >
72 >> > > Best Regards,
73 >> > > Francisco
74 >> >
75 >> > Checking on the file pointed by Joost, I've found it on my filesystem),
76 >> but
77 >> > there is another file, an almost exact copy, for baloo:
78 >> >
79 >> > ~ # l /etc/sysctl.d/
80 >> > total 28K
81 >> > drwxr-xr-x 2 root root 4,0K Ago 21 10:50 ./
82 >> > drwxr-xr-x 160 root root 12K Ago 21 10:22 ../
83 >> > -rw-r--r-- 1 root root 36 Ago 21 09:16
84 >> > 97-kde-baloo-filewatch-inotify.conf
85 >> >
86 >> > -rw-r--r-- 1 root root 36 Mai 7 2014
87 >> > 97-kde-nepomuk-filewatch-inotify.conf
88 >> >
89 >> >
90 >> > ~ # cat /etc/sysctl.d/97-kde-*
91 >> > fs.inotify.max_user_watches = 65536
92 >> > fs.inotify.max_user_watches = 32768
93 >> >
94 >> >
95 >> >
96 >> > The first value (65536) is from 97-kde-baloo-filewatch-inotify.conf .
97 >> The
98 >> > second (32768) is from 97-kde-nepomuk-filewatch-inotify.conf.
99 >> >
100 >> > So, the mystery goes on...
101 >> >
102 >> > Thanks,
103 >> > Francisco
104 >>
105 >> what does:
106 >> % cat /proc/sys/fs/inotify/max_user_watches
107 >> give you?
108 >>
109 >> My guess: 32768 (as that's the last one it will find)
110 >> On my system I get 65536.
111 >>
112 >> I think if you were to remove the nepomuk file, it should work.
113 >>
114 >> --
115 >> Joost
116 >>
117 >>
118 >
119 > Unexpected:
120 >
121 > ~ $ cat /proc/sys/fs/inotify/max_user_watches
122 > 131072
123 >
124 > both as a regular user an as root.
125 >
126 > Going to search for this number on config files.
127 >
128 > Thanks for the clue.
129 >
130 > Francisco
131 >
132
133
134
135 Also unexpected:
136
137 ~ # cd /etc
138 etc # fgrep -R 131072 * 2> /dev/null
139 apache2/modules.d/10_mod_mem_cache.conf:MCacheSize 131072
140 sane.d/sharp.conf:option buffersize 131072
141 sysctl.d/97-kde-baloo-filewatch-inotify.conf:fs.inotify.max_user_watches =
142 131072
143
144
145 I have logged out and back in, to check for the effects on that window
146 asking for root password. It did show up again, and now the
147 file 97-kde-baloo-filewatch-inotify.conf has been changed.
148
149 Going to try again, after removing 97-kde-nepomuk-filewatch-inotify.conf.
150 Back soon...

Replies

Subject Author
Re: [gentoo-user] nepomuk gone, baloo enters "J. Roeleveld" <joost@××××××××.org>
Re: [gentoo-user] nepomuk gone, baloo enters Francisco Ares <frares@×××××.com>