Re: [Tracker] [systemd-devel] How to use cgroups for Tracker?

2014-10-23 Thread Aleksander Morgado
On Thu, Oct 23, 2014 at 1:24 AM, Philip Van Hoof phi...@codeminded.be wrote: Don't try to work around limitations of kernel APIs by implementing inherently not scalabale algorithms in userspace. I mean, you implemented something that scales O(n) with n the numbers of dirs. That's what you need

Re: [Tracker] [systemd-devel] How to use cgroups for Tracker?

2014-10-23 Thread Lennart Poettering
On Thu, 23.10.14 08:15, Aleksander Morgado (aleksan...@aleksander.es) wrote: That's a good one indeed; coalescing events in that way in the kernel looks quite a sane approach. Still, one single process in userspace doing all the control of what changed when (like FSEvents does) may actually

Re: [Tracker] [systemd-devel] How to use cgroups for Tracker?

2014-10-23 Thread Martyn Russell
On 23/10/14 10:34, Lennart Poettering wrote: On Thu, 23.10.14 08:15, Aleksander Morgado (aleksan...@aleksander.es) wrote: That's a good one indeed; coalescing events in that way in the kernel looks quite a sane approach. Still, one single process in userspace doing all the control of what

Re: [Tracker] [systemd-devel] How to use cgroups for Tracker?

2014-10-23 Thread Lennart Poettering
On Thu, 23.10.14 11:40, Martyn Russell (mar...@lanedo.com) wrote: Anyway, please remember that being privileged isn't the only reason why Tracker can't use fanotify. It's API being fd-based, it works on existing open files only; e.g. it won't notify file deletes or move events, among other

Re: [Tracker] [systemd-devel] How to use cgroups for Tracker?

2014-10-23 Thread Martyn Russell
On 23/10/14 12:01, Lennart Poettering wrote: On Thu, 23.10.14 11:40, Martyn Russell (mar...@lanedo.com) wrote: I don't really understand why it was developed as a half complete solution if I am honest. It's not as if there are no examples to follow out there (FSEvents) and it's not as if we

Re: [Tracker] [systemd-devel] How to use cgroups for Tracker?

2014-10-23 Thread Philip Van Hoof
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 23/10/2014 13:01, Lennart Poettering wrote: On Thu, 23.10.14 11:40, Martyn Russell (mar...@lanedo.com) wrote: [cut] I know it's a hard problem to solve, but if it's not solved with the proposed solutions, the kernel developers shouldn't really

Re: [Tracker] [systemd-devel] How to use cgroups for Tracker?

2014-10-23 Thread Lennart Poettering
On Thu, 23.10.14 13:31, Philip Van Hoof (phi...@codeminded.be) wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 23/10/2014 13:01, Lennart Poettering wrote: On Thu, 23.10.14 11:40, Martyn Russell (mar...@lanedo.com) wrote: [cut] I know it's a hard problem to solve, but if it's