When comparing to native macOS Spotlight searches, the Samba & elasticsearch combo is much slower, at least for me. Samba takes minutes to return a few hundred results, while native macOS returns thousands of results in a few seconds. This is remotely over a mobile connection, LAN is probably better. Is this due to the missing Spotlight RPC packet fragmentation support mentioned in the Spotlight wiki article? Or do I have a bottleneck somewhere? There are about 10 000 items in elasticsearch at the moment, so it should fit in RAM. The database is on another VM but on the same physical host. I see a lot of back and forth network traffic when the results are displayed, so to me it looks like it could be due to fragmentation, while the native results seem to come back in a big chunk. -Perttu
Hi Pertu, On 6/3/24 10:34 AM, Perttu Aaltonen via samba wrote:> I see a lot of back and forth network traffic when the results are > displayed, so to me it looks like it could be due to fragmentation, > while the native results seem to come back in a big chunk.iirc I recently added fragmentation support to the mdssvc client, but it's still not implemented in the client. Though this is likely not the reason for the slow search, but probably the lack of enough support for returning request metadata in the search response which likely causes the client to do additional expensive IO for every item in the result set. Cheers! -slow -- SerNet Samba Team Lead Samba Support, Consulting and Development Samba Team Member https://samba.org/ SAMBA+ packages https://samba.plus/ -------------- next part -------------- A non-text attachment was scrubbed... Name: OpenPGP_signature.asc Type: application/pgp-signature Size: 840 bytes Desc: OpenPGP digital signature URL: <http://lists.samba.org/pipermail/samba/attachments/20240610/8eff7545/OpenPGP_signature.sig>