Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(303)

Issue 16356007: Disable sqlite lookaside buffers by default. (Closed)

Created:
7 years, 6 months ago by rmcilroy
Modified:
7 years, 6 months ago
CC:
chromium-reviews, Paweł Hajdan Jr.
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Disable sqlite lookaside buffers by default. Sqlite by default allocates 50KB per connection for use as a lookaside buffer for small object allocation. With the malloc implementations we use, this doesn't seem to help gain us any performance advantage, while increasing memory overhead, therefore this CL disables sqlite lookaside buffers by default. BUG=chromium:243769 TEST=Ran page_cycler perf test in Linux and Android and saw no noticable degradation. Examined traceview didn't see an increase in the time spent on the history or database threads. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=204623

Patch Set 1 #

Patch Set 2 : #

Total comments: 4

Patch Set 3 : Add SQLITE_OMIT_LOOKASIDE define to sql.gyp #

Patch Set 4 : SQLITE_OMIT_LOOKASIDE in third_party/sql and actually have sqlite avoid allocating lookaside buffer… #

Patch Set 5 : Back to disabling in sql/connection.cc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -0 lines) Patch
M sql/connection.cc View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
rmcilroy
7 years, 6 months ago (2013-06-04 15:28:16 UTC) #1
Scott Hess - ex-Googler
I think adding SQLITE_OMIT_LOOKASIDE to the defines in sqlite.gyp would make more sense. Then it ...
7 years, 6 months ago (2013-06-04 16:35:21 UTC) #2
rmcilroy
Sounds sensible. I've updated patch to use SQLITE_OMIT_LOOKASIDE in sql.gyp. Is this how you want ...
7 years, 6 months ago (2013-06-04 17:05:38 UTC) #3
Scott Hess - ex-Googler
Apologies, I could have been more specific. Put the SQLITE_OMIT_LOOKASIDE define down in third_party/sqlite/sqlite.gyp's defines ...
7 years, 6 months ago (2013-06-04 17:20:35 UTC) #4
Paweł Hajdan Jr.
This is fine for me. System sqlite is blocked on much harder things anyway, like... ...
7 years, 6 months ago (2013-06-04 18:11:04 UTC) #5
rmcilroy
On 2013/06/04 17:20:35, shess wrote: > Apologies, I could have been more specific. > > ...
7 years, 6 months ago (2013-06-05 13:26:29 UTC) #6
Scott Hess - ex-Googler
On 2013/06/05 13:26:29, Ross Mcilroy wrote: > On 2013/06/04 17:20:35, shess wrote: > > Apologies, ...
7 years, 6 months ago (2013-06-05 17:43:22 UTC) #7
Scott Hess - ex-Googler
https://codereview.chromium.org/16356007/diff/2001/sql/connection.cc File sql/connection.cc (right): https://codereview.chromium.org/16356007/diff/2001/sql/connection.cc#newcode637 sql/connection.cc:637: sqlite3_db_config(db_, SQLITE_DBCONFIG_LOOKASIDE, NULL, 0, 0); And maybe buff up ...
7 years, 6 months ago (2013-06-05 17:58:48 UTC) #8
rmcilroy
> OK. So my assumption was that SQLITE_OMIT_LOOKASIDE was like other > SQLITE_OMIT_* cases, where ...
7 years, 6 months ago (2013-06-05 22:24:39 UTC) #9
rmcilroy
https://codereview.chromium.org/16356007/diff/2001/sql/connection.cc File sql/connection.cc (right): https://codereview.chromium.org/16356007/diff/2001/sql/connection.cc#newcode637 sql/connection.cc:637: sqlite3_db_config(db_, SQLITE_DBCONFIG_LOOKASIDE, NULL, 0, 0); On 2013/06/05 17:58:49, shess ...
7 years, 6 months ago (2013-06-05 22:24:47 UTC) #10
Scott Hess - ex-Googler
On 2013/06/05 22:24:39, Ross Mcilroy wrote: > > Thanks for sticking with this through the ...
7 years, 6 months ago (2013-06-05 22:32:03 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rmcilroy@chromium.org/16356007/16001
7 years, 6 months ago (2013-06-06 13:22:52 UTC) #12
commit-bot: I haz the power
7 years, 6 months ago (2013-06-06 22:20:35 UTC) #13
Message was sent while issue was closed.
Change committed as 204623

Powered by Google App Engine
This is Rietveld 408576698