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


Groups > linux.debian.user > #207085

Re: Measuring (or calculating) how many bytes are actually written to disk when I repeatedly save a file

From Stefan Monnier <monnier@iro.umontreal.ca>
Newsgroups linux.debian.user
Subject Re: Measuring (or calculating) how many bytes are actually written to disk when I repeatedly save a file
Date 2019-04-06 23:50 +0200
Message-ID <xK1mh-TF-1@gated-at.bofh.it> (permalink)
References <xJXsm-70X-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


> Anyway, I edit large files many times a day and try to save it at each
> edit or partial edit (at a guess, one particular file is around 100
> MB, and I may save  it 200 or more times a day).

So, we're looking in the order of 100GB / day.

> 1. I'd like to count how many times a day I actually save the file.  (One
> approach (at least I think I could do this) could be to write a sort of shell
> script wrapper and always initiate saves using the shell script, but I was
> hoping there was more of pre-built solution.)

It likely depends on the tool you're using to edit that file (in many
tools you can tweak the tool to keep track of that info).

> 2. A lot of my editing involves editing near (but not at) the end of
> a file.  I assume (I know) that the software that saves the file is
> smart enough not to rewrite the entire file but instead to preserve
> the beginning of the file and just rewrite the changed part of the
> file (or from there to the end of the file).

Not completely sure if "you assume" or "you know" it to be the case.
Especially given that you then add:

> Can anyone confirm that,

which suggest you're not really sure (unless it referred to something else).


        Stefan

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


Thread

Measuring (or calculating) how many bytes are actually written to disk when I repeatedly save a file rhkramer@gmail.com - 2019-04-06 19:40 +0200
  Re: Measuring (or calculating) how many bytes are actually written to  disk when I repeatedly save a file "Alexander V. Makartsev" <avbetev@gmail.com> - 2019-04-06 22:40 +0200
  Re: Measuring (or calculating) how many bytes are actually written to disk when I repeatedly save a file Stefan Monnier <monnier@iro.umontreal.ca> - 2019-04-06 23:50 +0200
    Re: Measuring (or calculating) how many bytes are actually written to  disk when I repeatedly save a file Nicholas Geovanis <nickgeovanis@gmail.com> - 2019-04-07 00:40 +0200
    Re: Measuring (or calculating) how many bytes are actually written  to disk when I repeatedly save a file Curt <curty@free.fr> - 2019-04-07 11:50 +0200
      Re: Measuring (or calculating) how many bytes are actually written  to disk when I repeatedly save a file Curt <curty@free.fr> - 2019-04-07 12:00 +0200
      Re: Measuring (or calculating) how many bytes are actually written to disk when I repeatedly save a file rhkramer@gmail.com - 2019-04-07 15:10 +0200
    Re: Measuring (or calculating) how many bytes are actually written to disk when I repeatedly save a file rhkramer@gmail.com - 2019-04-07 14:20 +0200
      Re: Measuring (or calculating) how many bytes are actually written  to disk when I repeatedly save a file Erik Christiansen <dvalin@internode.on.net> - 2019-04-07 15:00 +0200
      Re: Measuring (or calculating) how many bytes are actually written to disk when I repeatedly save a file Stefan Monnier <monnier@iro.umontreal.ca> - 2019-04-07 18:30 +0200
  Re: Measuring (or calculating) how many bytes are actually written  to disk when I repeatedly save a file Andy Smith <andy@strugglers.net> - 2019-04-07 03:30 +0200
    Re: Measuring (or calculating) how many bytes are actually written to disk when I repeatedly save a file rhkramer@gmail.com - 2019-04-07 15:00 +0200
  Re: [OFF-LIST] Re: Measuring (or calculating) how many bytes are actually written to disk when I repeatedly save a file rhkramer@gmail.com - 2019-04-07 14:00 +0200
  Re: Measuring (or calculating) how many bytes are actually written  to disk when I repeatedly save a file Carles Pina i Estany <carles@pina.cat> - 2019-04-07 22:30 +0200
    Re: Measuring (or calculating) how many bytes are actually written  to disk when I repeatedly save a file Reco <recoverym4n@enotuniq.net> - 2019-04-07 22:30 +0200
      Re: Measuring (or calculating) how many bytes are actually written  to disk when I repeatedly save a file Curt <curty@free.fr> - 2019-04-08 09:50 +0200
        Re: Measuring (or calculating) how many bytes are actually written to disk when I repeatedly save a file rhkramer@gmail.com - 2019-04-08 14:50 +0200
          Re: Measuring (or calculating) how many bytes are actually written to disk when I repeatedly save a file rhkramer@gmail.com - 2019-04-08 15:40 +0200
          Re: Measuring (or calculating) how many bytes are actually written  to disk when I repeatedly save a file Curt <curty@free.fr> - 2019-04-08 15:40 +0200
            Re: Measuring (or calculating) how many bytes are actually written to disk when I repeatedly save a file rhkramer@gmail.com - 2019-04-08 15:50 +0200
              Re: Measuring (or calculating) how many bytes are actually written  to disk when I repeatedly save a file Curt <curty@free.fr> - 2019-04-08 16:20 +0200
                Re: Measuring (or calculating) how many bytes are actually written to disk when I repeatedly save a file rhkramer@gmail.com - 2019-04-08 17:00 +0200
                Re: Measuring (or calculating) how many bytes are actually written to disk when I repeatedly save a file Gene Heskett <gheskett@shentel.net> - 2019-04-08 18:20 +0200
                Re: Measuring (or calculating) how many bytes are actually written  to disk when I repeatedly save a file Curt <curty@free.fr> - 2019-04-08 19:00 +0200
                Re: Measuring (or calculating) how many bytes are actually written to  disk when I repeatedly save a file "Alexander V. Makartsev" <avbetev@gmail.com> - 2019-04-08 19:20 +0200
            Re: Measuring (or calculating) how many bytes are actually written  to disk when I repeatedly save a file Andy Smith <andy@strugglers.net> - 2019-04-12 11:20 +0200
              Re: Measuring (or calculating) how many bytes are actually written  to disk when I repeatedly save a file Curt <curty@free.fr> - 2019-04-12 14:10 +0200
                Re: Measuring (or calculating) how many bytes are actually written to disk when I repeatedly save a file rhkramer@gmail.com - 2019-04-12 19:20 +0200
                Re: Measuring (or calculating) how many bytes are actually written  to disk when I repeatedly save a file Michael Stone <mstone@debian.org> - 2019-04-12 20:50 +0200
                Re: Measuring (or calculating) how many bytes are actually written to  disk when I repeatedly save a file "Alexander V. Makartsev" <avbetev@gmail.com> - 2019-04-12 22:50 +0200
          Re: Measuring (or calculating) how many bytes are actually written to  disk when I repeatedly save a file "Alexander V. Makartsev" <avbetev@gmail.com> - 2019-04-08 15:50 +0200
            Re: Measuring (or calculating) how many bytes are actually written to disk when I repeatedly save a file rhkramer@gmail.com - 2019-04-08 18:00 +0200
      Re: Measuring (or calculating) how many bytes are actually written to disk when I repeatedly save a file rhkramer@gmail.com - 2019-04-08 14:40 +0200
        Re: Measuring (or calculating) how many bytes are actually written to  disk when I repeatedly save a file David <bouncingcats@gmail.com> - 2019-04-08 16:40 +0200

csiph-web