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


Groups > linux.debian.user > #194706

Re: SSD's and many edits of a single file

From David Christensen <dpchrist@holgerdanske.com>
Newsgroups linux.debian.user
Subject Re: SSD's and many edits of a single file
Date 2018-04-11 04:30 +0200
Message-ID <vDdGh-7CO-3@gated-at.bofh.it> (permalink)
References <vCtDr-e1-1@gated-at.bofh.it> <vCG7E-8iK-7@gated-at.bofh.it> <vCQgF-6Ns-1@gated-at.bofh.it> <vCSBU-dt-91@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 04/09/18 20:58, Gene Heskett wrote:
> On Monday 09 April 2018 21:25:34 David Christensen wrote:
> 
>> On 04/09/18 07:30, Gene Heskett wrote:
>>> On Monday 09 April 2018 09:51:37 Greg Wooledge wrote:
>>>> On Mon, Apr 09, 2018 at 09:46:07AM -0400, rhkramer@gmail.com
>>>>
>>>> wrote:
>>>>> To your original problem, have you tried going to a command line
>>>>> and throwing in a couple =sync=s?  I would try that, maybe after
>>>>> saving in your editor, and again maybe after open and / or saving
>>>>> in the cnc program.
>>>>
>>>> As others have explained, the OS (Linux) keeps a cache of file
>>>> contents that have been written by applications, but not yet
>>>> committed to permanent storage.  If you "save" from within the text
>>>> editor, then the saved contents should be immediately visible to
>>>> other processes reading the file, regardless of whether it has been
>>>> synced to disk. They'll simply get the cached version.
>>>
>>> Which is not happening after several hours and a hundred or more
>>> edits. Which is why its so intermittent.
>>
>> On 04/09/18 02:53, Gene Heskett wrote:
>>> Lots of people seem to like gedit, but its saves are the cause of
>>> important configuration files being written back to disk with the
>>> line order totally trashed, as if you had thrown it on the floor in
>>> 512 byte pieces, then picked it back up and reassembled it in random
>>> order. Then try to recover a 1400 LOC configuration file...
>>>
>>> Thats happened using gedit enough, on several different machines ...
>>
>> One editor failing would also make me suspect the editor.
>>
>>
>> But two failing editors would make me suspect some common factor, such
>> as a shared library and/or the kernel.
>>
> I'd buy that if the failures were similar.  They are not.

They both seem to involve getting blocks from an app to memory and 
blocks from memory to disk (and/or disk to memory).  They could be 
variations on a theme.


Can you reproduce the bugs on a machine with straight-up Debian (e.g. no 
linuxcnc)?


As a safety net, I would suggest a versioning file system (e.g. similar 
to the versioning feature of VMS).  STFW is pretty thin, but copyfs 
might be worth a try:

https://packages.debian.org/search?keywords=copyfs&searchon=names&suite=all&section=all


David

Back to linux.debian.user | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

SSD's and many edits of a single file Gene Heskett <gheskett@shentel.net> - 2018-04-09 03:20 +0200
  Re: SSD's and many edits of a single file Abdullah Ramazanoglu <ar018@yahoo.com> - 2018-04-09 03:30 +0200
  Re: SSD's and many edits of a single file Stefan Monnier <monnier@iro.umontreal.ca> - 2018-04-09 04:20 +0200
    Re: SSD's and many edits of a single file Gene Heskett <gheskett@shentel.net> - 2018-04-09 04:50 +0200
      Re: SSD's and many edits of a single file Stefan Monnier <monnier@iro.umontreal.ca> - 2018-04-09 05:20 +0200
        Re: SSD's and many edits of a single file Gene Heskett <gheskett@shentel.net> - 2018-04-09 12:00 +0200
          Re: SSD's and many edits of a single file <tomas@tuxteam.de> - 2018-04-09 13:30 +0200
          Re: SSD's and many edits of a single file Stefan Monnier <monnier@iro.umontreal.ca> - 2018-04-09 15:10 +0200
            Re: SSD's and many edits of a single file Gene Heskett <gheskett@shentel.net> - 2018-04-09 15:40 +0200
              Re: SSD's and many edits of a single file Greg Wooledge <wooledg@eeg.ccf.org> - 2018-04-09 15:50 +0200
                Re: SSD's and many edits of a single file Stefan Monnier <monnier@iro.umontreal.ca> - 2018-04-09 16:20 +0200
          Re: SSD's and many edits of a single file rhkramer@gmail.com - 2018-04-09 15:50 +0200
            Re: SSD's and many edits of a single file Greg Wooledge <wooledg@eeg.ccf.org> - 2018-04-09 16:00 +0200
              Re: SSD's and many edits of a single file Gene Heskett <gheskett@shentel.net> - 2018-04-09 16:40 +0200
                Re: SSD's and many edits of a single file Greg Wooledge <wooledg@eeg.ccf.org> - 2018-04-09 16:40 +0200
                Re: SSD's and many edits of a single file David Christensen <dpchrist@holgerdanske.com> - 2018-04-10 03:30 +0200
                Re: SSD's and many edits of a single file Gene Heskett <gheskett@shentel.net> - 2018-04-10 06:00 +0200
                Re: SSD's and many edits of a single file David Christensen <dpchrist@holgerdanske.com> - 2018-04-11 04:30 +0200
                Re: SSD's and many edits of a single file Gene Heskett <gheskett@shentel.net> - 2018-04-11 09:30 +0200
                Re: SSD's and many edits of a single file David Christensen <dpchrist@holgerdanske.com> - 2018-04-12 05:50 +0200
                Re: SSD's and many edits of a single file rhkramer@gmail.com - 2018-04-12 13:50 +0200
                Re: SSD's and many edits of a single file Gene Heskett <gheskett@shentel.net> - 2018-04-12 14:50 +0200
                Re: SSD's and many edits of a single file rhkramer@gmail.com - 2018-04-12 16:20 +0200
                Re: SSD's and many edits of a single file songbird <songbird@anthive.com> - 2018-04-12 17:00 +0200
                Re: SSD's and many edits of a single file Gene Heskett <gheskett@shentel.net> - 2018-04-13 03:30 +0200
                Re: SSD's and many edits of a single file <tomas@tuxteam.de> - 2018-04-10 10:00 +0200
                Re: SSD's and many edits of a single file Gene Heskett <gheskett@shentel.net> - 2018-04-10 13:00 +0200
                Re: SSD's and many edits of a single file <tomas@tuxteam.de> - 2018-04-10 13:10 +0200
                Re: SSD's and many edits of a single file Gene Heskett <gheskett@shentel.net> - 2018-04-10 14:20 +0200
                Re: SSD's and many edits of a single file <tomas@tuxteam.de> - 2018-04-10 15:20 +0200
                Re: SSD's and many edits of a single file "Thomas Schmitt" <scdbackup@gmx.net> - 2018-04-10 15:20 +0200
                Re: SSD's and many edits of a single file Stefan Monnier <monnier@iro.umontreal.ca> - 2018-04-10 16:00 +0200
                Re: SSD's and many edits of a single file "Thomas Schmitt" <scdbackup@gmx.net> - 2018-04-10 16:30 +0200
            Re: SSD's and many edits of a single file Gene Heskett <gheskett@shentel.net> - 2018-04-09 16:20 +0200
              Re: SSD's and many edits of a single file <tomas@tuxteam.de> - 2018-04-09 18:30 +0200
            Re: SSD's and many edits of a single file Abdullah Ramazanoglu <ar018@yahoo.com> - 2018-04-09 20:10 +0200
          Re: SSD's and many edits of a single file Celejar <celejar@gmail.com> - 2018-04-10 16:50 +0200
  Re: SSD's and many edits of a single file songbird <songbird@anthive.com> - 2018-04-09 14:10 +0200
    Re: SSD's and many edits of a single file Gene Heskett <gheskett@shentel.net> - 2018-04-09 16:20 +0200
      Re: SSD's and many edits of a single file songbird <songbird@anthive.com> - 2018-04-09 20:20 +0200

csiph-web