[tracker-miners/wip/carlosg/perf-squeeze: 2/3] tracker-miner-fs: Process only one item at a time



commit f8dffcc80df060b79921fd6a4e81989d6bdfe87b
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sun Jul 5 15:27:51 2020 +0200

    tracker-miner-fs: Process only one item at a time
    
    Despite us spawning a number of tasks (10 currently) to process
    files in parallel, disk access is a bottleneck to them. Reduce
    this to 1, it doesn't seem to impact performance that much, and
    it does help in not processing files together that may not go
    in the same SPARQL update batch.
    
    This is irrelevant now, since the operation would be blocked by
    the parent being still processed, but we want to lighten that
    block in future commits.

 src/miners/fs/tracker-miner-files.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/miners/fs/tracker-miner-files.c b/src/miners/fs/tracker-miner-files.c
index 103c8e890..06816423c 100644
--- a/src/miners/fs/tracker-miner-files.c
+++ b/src/miners/fs/tracker-miner-files.c
@@ -2549,7 +2549,7 @@ tracker_miner_files_new (TrackerSparqlConnection  *connection,
                               "root", NULL,
                               "config", config,
                               "domain", domain,
-                              "processing-pool-wait-limit", 10,
+                              "processing-pool-wait-limit", 1,
                               "processing-pool-ready-limit", 100,
                               NULL);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]