diff options
author | Harald Welte <laforge@osmocom.org> | 2022-05-13 19:48:08 +0200 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2022-05-15 13:04:56 +0200 |
commit | 467fc5728d638239b0257c0e9e60a0e516826e8c (patch) | |
tree | a161f39986980aa272d64c4e516298f1890ba811 /tests/msc_vlr | |
parent | 2db1966e25bbecb4dfb275f88e03aacace7863d0 (diff) |
switch sqlite3 to single-threaded mode
Looking at 'perf top' of osmo-msc under load shows that there's a
significant amount of time spent in terms of locking (mutex,...)
which is useless as osmo-msc is a single-threaded application.
Unfortunately libdbi doesn't provide a mechanism to perform
sqlite3_config(), so we have to do it directly here, introducing an
explicit build-time dependency (and linkage) to libsqlite3.
Related: OS#5559
Change-Id: I5bbea90d28b6d73b64b9e5124ff59304b90a8a75
Diffstat (limited to 'tests/msc_vlr')
-rw-r--r-- | tests/msc_vlr/Makefile.am | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/msc_vlr/Makefile.am b/tests/msc_vlr/Makefile.am index a84ea3fbd..b1853a175 100644 --- a/tests/msc_vlr/Makefile.am +++ b/tests/msc_vlr/Makefile.am @@ -17,6 +17,7 @@ AM_CFLAGS = \ $(LIBASN1C_CFLAGS) \ $(LIBOSMOMGCPCLIENT_CFLAGS) \ $(LIBOSMOGSUPCLIENT_CFLAGS) \ + $(LIBSQLITE3_CFLAGS) \ $(NULL) AM_LDFLAGS = \ @@ -41,6 +42,7 @@ LDADD = \ $(LIBASN1C_LIBS) \ $(LIBOSMOMGCPCLIENT_LIBS) \ $(LIBOSMOGSUPCLIENT_LIBS) \ + $(LIBSQLITE3_LIBS) \ $(LIBRARY_GSM) \ -ldbi \ $(NULL) |