GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    kaia (kaia@brotka.st)'s status on Wednesday, 23-Apr-2025 15:36:38 JST kaia kaia
    dd be like: yeah, I'm not showing you progress
    pv be like: I'm instantly finished, but please let me continue for 15 minutes or else.....

    :l_aaa: why linux be like that
    In conversation about a month ago from brotka.st permalink
    • Phantasm likes this.
    • Embed this notice
      Qadse Sanur Qut ibn Quaadibz :catsader: (nerthos@shitposter.world)'s status on Wednesday, 23-Apr-2025 15:37:40 JST Qadse Sanur Qut ibn Quaadibz  :catsader: Qadse Sanur Qut ibn Quaadibz :catsader:
      in reply to
      @kaia Linux is made of autism, with its good and its bad things
      In conversation about a month ago permalink
      kaia likes this.
    • Embed this notice
      lainy (lain@lain.com)'s status on Wednesday, 23-Apr-2025 15:39:05 JST lainy lainy
      in reply to
      @kaia sync; sync; sync
      In conversation about a month ago permalink
      kaia and Phantasm like this.
    • Embed this notice
      snacks (snacks@netzsphaere.xyz)'s status on Wednesday, 23-Apr-2025 15:59:50 JST snacks snacks
      in reply to
      @kaia status=progress for dd, idk what pv does, access like that should be uncached
      In conversation about a month ago permalink
      kaia likes this.
    • Embed this notice
      lainy (lain@lain.com)'s status on Wednesday, 23-Apr-2025 16:02:57 JST lainy lainy
      in reply to
      • lainy
      @kaia btw, if you haven't read it yet, this book is hilarious and educational, too: https://web.mit.edu/~simsong/www/ugh.pdf
      In conversation about a month ago permalink

      Attachments


    • Embed this notice
      Phantasm (phnt@fluffytail.org)'s status on Wednesday, 23-Apr-2025 16:03:12 JST Phantasm Phantasm
      in reply to
      • lainy
      @lain @kaia I see, somebody used an ancient UNIX system here.
      In conversation about a month ago permalink
    • Embed this notice
      lainy (lain@lain.com)'s status on Wednesday, 23-Apr-2025 16:03:14 JST lainy lainy
      in reply to
      • tedu
      @tedu first to sync, second if the first didn't work, third for good luck
      In conversation about a month ago permalink
      Phantasm likes this.
    • Embed this notice
      tedu (tedu@honk.tedunangst.com)'s status on Wednesday, 23-Apr-2025 16:03:15 JST tedu tedu
      in reply to
      • lainy

      @lain this is the way.

      In conversation about a month ago permalink
      Phantasm likes this.
    • Embed this notice
      Phantasm (phnt@fluffytail.org)'s status on Wednesday, 23-Apr-2025 16:04:59 JST Phantasm Phantasm
      in reply to
      • snacks
      @snacks @kaia It's because pipe and I/O are buffered by default. It throws a gigabyte into the I/O buffer and then stalls for some time. With dd, you should be able to bypass that with oflag=direct.
      In conversation about a month ago permalink
      snacks likes this.
    • Embed this notice
      mangeurdenuage :gnu: :trisquel: :gondola_head: 🌿 :abeshinzo: :ignucius: (mangeurdenuage@shitposter.world)'s status on Wednesday, 23-Apr-2025 16:46:48 JST mangeurdenuage :gnu: :trisquel: :gondola_head: 🌿 :abeshinzo: :ignucius: mangeurdenuage :gnu: :trisquel: :gondola_head: 🌿 :abeshinzo: :ignucius:
      in reply to
      @kaia
      >dd be like: yeah, I'm not showing you progress
      There's the "status=progress" option.
      Example:

      dd if=.iso of=/dev/sd* bs=4M status=progress
      In conversation about a month ago permalink
      kaia likes this.
    • Embed this notice
      翠星石 (suiseiseki@freesoftwareextremist.com)'s status on Wednesday, 23-Apr-2025 19:25:56 JST 翠星石 翠星石
      in reply to
      @kaia >Linux
      `dd --version`

      Here, have a GNU bash function that tells you how much data Linux has claimed to have written, but hasn't in fact done so yet;
      watchSync() {
      watch -n1 'grep -E "(Dirty|Write)" /proc/meminfo; echo; ls /sys/block/ | while read device; do awk "{ print \"$device: \" \$9 }" "/sys/block/$device/stat"; done'
      }
      In conversation about a month ago permalink
    • Embed this notice
      翠星石 (suiseiseki@freesoftwareextremist.com)'s status on Wednesday, 23-Apr-2025 19:26:28 JST 翠星石 翠星石
      in reply to
      • lainy
      @lain @kaia There is no point running sync more than once.
      In conversation about a month ago permalink
    • Embed this notice
      翠星石 (suiseiseki@freesoftwareextremist.com)'s status on Wednesday, 23-Apr-2025 19:28:52 JST 翠星石 翠星石
      in reply to
      • lainy
      @lain @kaia The book is wrong and is about seething over skill issues.

      The foreword is by some genius that doesn't even realize he swapped to a Unix by surrendering his freedom to macos.


      Also, GNU's Not Unix.
      In conversation about a month ago permalink
    • Embed this notice
      翠星石 (suiseiseki@freesoftwareextremist.com)'s status on Wednesday, 23-Apr-2025 19:54:36 JST 翠星石 翠星石
      in reply to
      • GNU+ullard
      @ullard @kaia I didn't even write it, but it is indeed quite well written.
      In conversation about a month ago permalink
    • Embed this notice
      GNU+ullard (ullard@shitposter.world)'s status on Wednesday, 23-Apr-2025 19:54:37 JST GNU+ullard GNU+ullard
      in reply to
      • 翠星石
      @Suiseiseki @kaia That is absolutely dreadful shell and you should be ashamed of yourself
      In conversation about a month ago permalink
    • Embed this notice
      翠星石 (suiseiseki@freesoftwareextremist.com)'s status on Wednesday, 23-Apr-2025 20:29:19 JST 翠星石 翠星石
      in reply to
      • lainy
      • Taylan (Now 18% More Deranged)
      @taylan @kaia @lain >meaning it can return before the data it began flushing is done being flushed
      Cursed - of course Linux would go full retard.

      In my experience GNU sync has always blocked until data has been flushed.

      So it needs to be `sync ; sync` to be safe huh?
      In conversation about a month ago permalink
    • Embed this notice
      Taylan (Now 18% More Deranged) (taylan@fedi.feministwiki.org)'s status on Wednesday, 23-Apr-2025 20:29:20 JST Taylan (Now 18% More Deranged) Taylan (Now 18% More Deranged)
      in reply to
      • 翠星石
      • lainy
      @Suiseiseki @kaia @lain

      I've been told that sync is in fact asynchronous, meaning it can return before the data it began flushing is done being flushed. But if you call it again, it must wait for the previous operation to finish before triggering another. So calling it twice ensures that the first run of sync has fully completed.
      In conversation about a month ago permalink
    • Embed this notice
      Taylan (Now 18% More Deranged) (taylan@fedi.feministwiki.org)'s status on Wednesday, 23-Apr-2025 20:47:31 JST Taylan (Now 18% More Deranged) Taylan (Now 18% More Deranged)
      in reply to
      @Suiseiseki @kaia @lain

      Hmm, according to this man page, it's actually synchronous on Linux:

      https://man7.org/linux/man-pages/man2/sync.2.html

      Apparently, the problem I've described is based on the guarantees (not) made by the POSIX standard.

      So I guess it's important to call it twice in cross platform scripts, but on GNU+Linux it shouldn't matter.

      In fact, based on the following, it seems that even the hack of calling it multiple times may not help, because this doesn't describe the behaviour that I mentioned earlier, of subsequent calls having to wait for the first to finish:

      https://pubs.opengroup.org/onlinepubs/9799919799/functions/sync.html
      In conversation about a month ago permalink
    • Embed this notice
      翠星石 (suiseiseki@freesoftwareextremist.com)'s status on Wednesday, 23-Apr-2025 20:48:05 JST 翠星石 翠星石
      in reply to
      • lainy
      • Taylan (Now 18% More Deranged)
      @taylan @kaia @lain GNU's not POSIX.

      Scripts working fine on GNU/Linux-libre, but not on proprietary Unix-likes is a feature - so single `sync` all the way.


      Such bug existed in Linux 1.3.20, but it doesn't exist anymore.
      In conversation about a month ago permalink
    • Embed this notice
      itsFriday (itsfriday@toot.community)'s status on Thursday, 24-Apr-2025 01:16:52 JST itsFriday itsFriday
      in reply to

      @kaia

      dd if=/dev/urandom of=/dev/null status=progress

      In conversation about a month ago permalink
      kaia likes this.

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.