SQLite Now Faster With Memory Mapped I/O

Posted by Michael Larabel on May 21, 2013

SQLite 3.7.17 was released yesterday. What makes this new release of the popular lightweight SQL database software noteworthy is that it introduces support for memory-mapped I/O.

Rather than using read/write system calls for dealing with database disk files, SQLite 3.7.17 adds support for accessing the disk now by directly using memory-mapped I/O. By using the SQLite memory mapped I/O calls, disk operations should be much faster as the disk contents no longer needs to be copied between kernel and user-space. SQLite developers have said by using this MMIO support the performance could be nearly doubled for some intensive tasks.

By using memory-mapped I/O, the SQLite library will also use less RAM since it shares pages with the operating system page cache rather than creating copies of those pages as with the old system calls. More details on this new mmap support in SQLite can be found on SQLite.org.

Other changes with SQLite 3.7.17 include new sqlite3 interfaces, enhancements to the extension loading mechanism, enhancing FTS3, virtual table improvements, and many bug-fixes. More details on the new SQLite library release can be found from its release page.

Discuss this article in our forums, IRC channel, or email the author. You can also follow our content via RSS and on social networks like Facebook, Identi.ca, and Twitter (@Phoronix and @MichaelLarabel). Subscribe to Phoronix Premium to view our content without advertisements, view entire articles on a single page, and experience other benefits.
Latest Hardware Reviews
  1. AMD Radeon HD 8670D Preview On Linux
  2. 15-Way Open-Source Intel/AMD/NVIDIA GPU Comparison
  3. AMD A10-6800K Richland APU On Linux
  4. Running Ubuntu Linux Is Messy On The 2013 MacBook Air
Latest Software Articles
  1. Intel Haswell Linux Virtualization: KVM vs. Xen vs. VirtualBox
  2. NVIDIA Mobile: Nouveau vs. The Linux Binary Driver
  3. GCC vs. LLVM/Clang On The AMD Richland APU
  4. AMD Radeon HD 8670D: Gallium3D vs. Catalyst
Latest Linux News
  1. Unvanquished Improves OpenGL 3 Renderer, Installer
  2. New Unified VMA Offset Manager, Render Node Patches
  3. Sphirewall: Another Open-Source Linux Firewall
  4. MidnightBSD 0.4 Betters The FreeBSD Desktop
  5. Testing Radeon DPM Using Sysfs/Debugfs
  6. Radeon KMS HDMI Audio Might Be Re-Enabled Soon
  7. Phoronix Test Suite 4.6-Sokndal Milestone 2 Released
  8. Phoronix Global To Shutdown At Year's End
  9. DRM/KMS Driver Published For Snapdragon Graphics
  10. Radeon DRM: Dynamic Power Management Updates
  11. More AVX2 Crypto Optimizations For Linux 3.11
Latest Forum Talk
  1. LXDE Desktop Being Ported To Qt
  2. AMD Radeon HD 8670D: Gallium3D vs. Catalyst
  3. Intel OTC support discrimination on Intel Atom...
  4. AMD To Exploit OpenCL Potential In LibreOffice
  5. Soliciting Feedback On The New Phoronix Design
  6. Radeon DRM: Dynamic Power Management Updates
  1. Computers
  2. Display Drivers
  3. Graphics Cards
  4. Motherboards
  5. Peripherals
  6. Processors
  7. Software
  8. Operating Systems
  9. All Articles
  1. Linux Benchmarking
  2. OpenBenchmarking.org
  3. Phoronix Test Suite