[tracker-miners/wip/carlosg/perf-squeeze: 15/16] tracker-miner-fs: Process only one item at a time
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-miners/wip/carlosg/perf-squeeze: 15/16] tracker-miner-fs: Process only one item at a time
- Date: Sun, 5 Jul 2020 14:03:36 +0000 (UTC)
commit 413835eb2e2a5ce97b77b4f99f1a30f8e88e9d68
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]