Skip to content

u/LukeShu

In this archive from May 2012 to Dec 2023

0
posts
194
comments
0
media
996
score

I don't see no "[1]" citation.

That change comes from some anonymous IP in 2015, and had no citation. https://en.wikipedia.org/w/index.php?title=Top_(software)&diff=prev&oldid=663144855

Here's a 1997 citation for "top cpu processes." It's not as close to the original 1984 release as I would like, but it's better than Wikipedia. https://github.com/dspinellis/unix-history-repo/commit/aee34003d7964653c44c31f5bf6bcf136b32c4f3

I'm open to being wrong, please show me anywhere that William LeFebvre has written the phrase "table of processes" rather than "top cpu processes".

3 points

/r/confidentlyincorrect

8 points

That's all doable with Docker, it just takes fiddling. Based on your requirements, here are some bits from my script for running GUIs in an Arch container on a PureOS host; some things may need to be tweaked for your setup:

  • baseline

     #!/bin/bash
     args=(docker run --rm -it)
     args+=(--privileged)
    
  • ui

     # X11
     args+=(
         --volume=/tmp/.X11-unix:/tmp/.X11-unix
         --volume="$HOME/.Xauthority:/home/dockeruser/.Xauthority"
         --env="DISPLAY=$DISPLAY"
         --hostname="$HOSTNAME"
     )
    
  • pipewire: OK, I was actually using pulse, but:

     # Misc (Pulse, D-Bus)
     args+=(
         --volume="$XDG_RUNTIME_DIR:/run/user/1000"
         --env=XDG_RUNTIME_DIR=/run/user/1000
     )
    
  • real-time performances: Docker isn't a VM, there's no perf-hit to Docker (on Linux anyway, Docker on other platforms works by just running Docker on a Linux VM). But, if it can't see the GPU, that could be a hit...

     # GPU
     args+=(
         --volume=/dev/dri:/dev/dri
     )
     # Also, I had to make sure that the user in the Docker image is a member of the 'video' group
    
  • conclusion

     # Desktop
     args+=(
         --volume:$HOME/Downloads:/home/dockeruser/Downloads"
     )
    
     exec "${args[@]}" dockerimage "$@"
    
2 points
  • It predates Git existing
  • It predates the AUR using Git (AUR v4 in 2015)
  • There's a sizable chunk of Arch Linux devtools tooling that is built around SVN that'd have to be rewritten for Git.
  • Git isn't great for the use-case where there are a bunch of sub-projects where you might only want to check out a few. They could do as the AUR does and have a 1 pkgbase = 1 branch/repo, but that'd be a substantial change to the way that some things get worked on (developers would need to re-learn things), but that has its own drawbacks.
  • https://news.ycombinator.com/item?id=8023040 (I wrote "They've discussed it a number of times"... but now I can't remember any of those discussions to link to them... :-( )
4 points

Most of their own code (pacman, netctl...) is in their own Git repos, but for the PKGBUILDs they use SVN; there's a read-only svntogit mirror that you can get using Git; but there's no way of an outsider directly submitting a change to SVN.

In the case of pacman-mirrorlist, they don't update it manually, but instead update it by running the upgpkg program (is this still the most recent version?) which looks at the upgpkg config file that lives alongside the PKGBUILD and the PKGBUILD itself to automatically re-generate the mirrorlist file from the ArchWeb / archlinux.org HTTP API, which is exposing the data configured from a Django-based admin web interface.

(upgpkg isn't a "standard" part of the Arch Linux devtools, but is the personal project of one of the devs, and he uses it for packages that he is the maintainer of, which includes pacman-mirrorlist. Some history at https://labs.parabola.nu/issues/1309)

11 points

I know a lot of people do this (and I think a bunch of other distros even do it by default?), but I'm not a fan because it ends up training people to always use -f because the prompt all the time is annoying.

3 points

Edit: I'm wrong, /u/RAZR_96 is right. My apologies.

Fundamentally, swap files have to go through the filesystem layer, where swap partitions don't. That's overhead and complexity right there. Because swap files actually do need to get swapped to disk "now" instead of being allowed to sit around in a cache/buffer, there's a lot of complexity with interactions with the filesystem cache/buffer, that don't exist when going through block-level abstractions like LVM or dmcrypt.

This complexity is enough that btrfs just says "nope, we won't support swap files" (you can still use swap files on btrfs if you set up a loopback device for the file, but that means you can't use it for things like hibernate).

1 points

I have servers configured to create swap files dynamically if they run out of RAM+swap (using https://aur.archlinux.org/packages/systemd-swap-git/). Eating the disk is better than having an OOM-killer caused outage.

On my laptop I'll temporarily create a swap file for running jobs that use more memory than I usually need. (For instance, in the last week I had a one-time batch job I needed to run that accidentally used a data-structure that used O(n!) space. It would have taken longer than it was worth to adjust the datastructure, so I just threw some more disk space as swap at it.)

3 points
  • That's the default VGA font embedded into the ROM on your graphics card; in your case (since it looks like that screenshot is from the QEMU emulator) that hardware is actually QEMU, and the font is the unnamed font defined in vgafont.h.
  • After the Linux kernel is loaded, by default in most hardware configurations, you're looking at a font defined as part of the Linux kernel, not the font stored in the graphics card ROM. With the settings Arch Linux compiles the kernel with, it will be a font named "VGA8x16" that happens to be identical to QEMU's vgafont.h.
  • I suspect that in both cases it was ripped from the ROM of an actual specific piece of hardware, but so far, I haven't tracked the history of it beyond that it predates Linux using git. [edit: I've been trying to track it down, here's my journey:]
    • It seems that it was introduced to mainline Linux as arch/m68k/console/font_8x16.c in Linux 1.3.94 (April 22, 1996), but I can't track down the patch or the release notes)
    • Before that, it was in the modified Linux/m68k kernel. The earliest I've found so far was atari/font_8x16.c in Linux/m68k 0.9. The file is timestamped June 29, 1994. It was not in Linux/m68k 0.06. I've been unable to track down any 0.07 or 0.08 releases or any mailing-list posts from that timeframe. I found the release notes, but they've been unhelpful.
    • Actually, looking closer at the release notes, it seems that Linux/m68k 0.9 was the first Linux/m68k to include any code for Atari, and imported that code from "Atari Linux version 0.3", so that's the next place I have to look.
    • I found Atari Linux 0.01pl2 (April 30, 1994); it is based on Linux/m68k 0.07 and 0.08 (its read.me refers to Linux/m68k as "Amiga Linux", which makes sense; prior to merging Atari Linux in 0.9-0.9pl3 it Linux/m68k only supported the Amiga). It does not yet include the VGA8x16 font.
    • And also Atari Linux 0.01pl3 (no clear release date; newest timestamp in the file is June 19, 1994. Because of the the close timestamps, I think this is what the Linux/m68k 0.9 announcement referred to as "version 0.3"). It does include the font. So the font's first appearance in Linux was in Atari Linux 0.01pl3. Looking at the names in files, I'm guessing it was added by Roman Hodek.
22 points

You should NOT use blkdiscard, which asks the drive to discard the data, but does NOT ask for the data to be securely erased. You need to send the you need to use the ATA security extension's SECURITY ERASE UNIT command, which you can send with the hdparm command. See https://ata.wiki.kernel.org/index.php/ATA_Secure_Erase for more information.

While we're at it: -n 1 is perfectly adequate for shred on a raw block device; no need for -n 2. (See my other comment in this thread for citations).

2 points

Copy/pasting older posts of mine:


While theoretically possible to recover data after a random overwrite:

  • It's only theoretical (Gutmann 1996), and has never actually been successfully done (that we know of; though if the government has that capability, they'd likely keep quiet about it).
  • The theory relies on the write head not being exactly lined up with the bit's area on the platter. There are way more bits per drive than there were in 1996, meaning each bit has a smaller area, reducing the possibility of misalignment. The theory gets harder as drives get bigger.
  • The Gutmann's 1996 recommendation of 35-overwrites is quite specifically based on MFM/RLL disks, which are no longer used. On modern PRML/EPRML drives, a "few passes of random scrubbing" is plenty; people still applying his 35-writes recommendation are doing closer to "voodoo" than anything based in fact (Gutmann, later commentary on his 1996 paper).
  • Nobody (USA's DoD, NIST, Germany's BSI, Canada's CSE, Austrailia, New Zealand's GCSB, Britain's CESG) has recommended >3 overwrites since 2000 (remember, the theoretical ability gets harder has drives get bigger).
  • Nobody has recommended >1 overwrite since 2010 (remember, the theoretical ability gets harder has drives get bigger).
  • NIST SP-800-88.

That said, if you're really concerned: trust no amount of wiping. NSA/CSS say to just physically destroy the drive. NIST says that if you're concerned after 1 pass of overwriting, use an external degausing device to wipe it, and if you're still concerned, physically destroy the drive.

All of the above is for HDD's, SSD's are a totally different story.


SSD's do a thing where they shuffle data around between different blocks; when you "overwrite" a block, the flash controller will probably store the new data on a different physical block, and put the "overwritten" data block aside, not even overwriting it.

Instead, you need to use the ATA security extensions's SECURITY ERASE UNIT command, which you can send with the hdparm command.

8 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.