Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #62357

Re: Is it more CPU-efficient to read/write config file or read/write sqlite database?

Date 2013-12-18 20:06 -0600
From Tim Chase <python.list@tim.thechases.com>
Subject Re: Is it more CPU-efficient to read/write config file or read/write sqlite database?
References (1 earlier) <20131218103148.GA2728@cskk.homeip.net> <mailman.4344.1387363803.18130.python-list@python.org> <iln3b99rqvioro188l8d7tivtluhse44mt@4ax.com> <mailman.4368.1387389583.18130.python-list@python.org> <iva4b9d7ip3u3g75kamttpl81c39hvehu0@4ax.com>
Newsgroups comp.lang.python
Message-ID <mailman.4395.1387418726.18130.python-list@python.org> (permalink)

Show all headers | View raw


On 2013-12-18 15:14, dick wrote:
>>However, my understanding is that they have a small on-drive
>>battery/capacitor that stores sufficient energy for the cached
>>write(s) to complete in the event the system's power abruptly cuts
>>off.
>>
>>Granted, this is purely hearsay, as it's been a long time since I
>>mucked around with hardware much.
>>  
> The drives may have something like that now, but they didn't have
> any power down flush capability when I was working for WD. Of
> course, that was 15 years ago...

<old_fart>
Indeed, I certainly remember launching park.exe on my DOS & Win95
machines to flush write-caches and park the heads in preparation of
power-down.
</old_fart>
I recall being told by multiple hardware professionals
since 2000 that such wasn't needed any more.  I don't have reason to
doubt them, especially as I no longer see references to parking heads
in any OS or add-on utility.

At least on linux (possibly the BSDs too), one can specify that
particular mounts are done with the "sync" option to force all writes
to make it to the metal/EEPROM before returning, though I don't think
this is the default.

-tkc


Back to comp.lang.python | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

Re: Is it more CPU-efficient to read/write config file or read/write sqlite database? Chris Angelico <rosuav@gmail.com> - 2013-12-18 21:50 +1100
  Re: Is it more CPU-efficient to read/write config file or read/write sqlite database? dick <encore1@cox.net> - 2013-12-18 09:49 -0800
    Re: Is it more CPU-efficient to read/write config file or read/write sqlite database? Tim Chase <python.list@tim.thechases.com> - 2013-12-18 12:00 -0600
      Re: Is it more CPU-efficient to read/write config file or read/write sqlite database? dick <encore1@cox.net> - 2013-12-18 15:14 -0800
        Re: Is it more CPU-efficient to read/write config file or read/write sqlite database? Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2013-12-18 19:31 -0500
        Re: Is it more CPU-efficient to read/write config file or read/write sqlite database? Chris Angelico <rosuav@gmail.com> - 2013-12-19 11:56 +1100
        Re: Is it more CPU-efficient to read/write config file or read/write sqlite database? Tim Chase <python.list@tim.thechases.com> - 2013-12-18 20:06 -0600

csiph-web