• 0 Posts
  • 91 Comments
Joined 2 years ago
cake
Cake day: July 23rd, 2023

help-circle


  • Advice from a long time sysadmin: You’re probably asking the wrong question. ncdu is an efficient tool, so the right question is why it’s taking so long to complete, which is probably an underlying issue with your setup. There are three likely answers:

    1. This drive is used on a server specifically to store very large numbers of very small files. This probably isn’t the case, as you’d already know that and be looking at it in smaller chunks.
    2. You have a network mount set up. Use the -x option to ncdu to restrict your search to a single filesystem, or --exclude to exclude the network mount and your problem will be solved (along with the traffic spike on your LAN).
    3. You have a single directory with a large number of small files that never get cleared, such as from an e-mail deadletter folder or a program creating temp files outside of the temp directories. Once a certain number of files is reached, accessing a directory slows down dramatically. The following command will find it for you (reminder - make sure you understand what a command does before copying it into a terminal, DOUBLY so if it is run as root or has a sudo in it). Note that this will probably take several times as long to run as ncdu because it’s doing several manipulations in series rather than in parallel.

    sudo find $(grep '^/' /etc/fstab | awk '{print $2}') -xdev -type f -exec dirname {} \; | sort | uniq -c | sort -nr | head

    explanation

    This command doesn’t give an exact file count, but it’s good enough for our purposes.

    sudo find # run find as root

    $( … ) # Run this in a subshell - it’s the list of mount points we want to search

    grep ‘^/’ /etc/fstab # Get the list of non-special local filesystems that the system knows how to mount (ignores many edge-cases)

    awk ‘{print $2}’ # We only want the second column - where those filesystems are mounted

    -xdev # tell find not to cross filesystem boundaries

    -type f # We want to count files

    -exec dirname {}; # Ignore the file name, just list the directory once for each file in it

    sort|uniq -c # Count how many times each directory is listed (how many files it has)

    sort -nr # Order by count descending

    head # Only list the top 10

    If they are temp files or otherwise not needed, delete them. If they’re important, figure out how to break it into subdirectories based on first letter, hash, or whatever other method the software creating them supports.



  • Nope.

    Fireplace is a mistake - it will make most of the house colder. What you want is a wood stove, and a simple metal chimney is much cheaper than the brick one you’re imagining.

    Also, a shed isn’t needed - make a round pile (shaker pile or holzhauzen) and shingle it with the bark (or a tarp if you’re lazy). Drying takes 6-9 months, not a year, but I like not to be rushed so I try to keep two piles - one I’m building over the warm months, and when the cold months come I pull from the other that had a year to season.

    As for space, they don’t take much. A 6’ tall cylinder with a 5’’ radius holds about 4 cords once the cone on top is taken into account. I find a 4’ radius easier to manage, but that’s closer to 2.5 cords.













  • Not saying this applies to Sydney Sweeney, but:

    In some places, you really can’t assume that registered republican means votes republican. What I mean by that is there are deep red counties in Florida and other red states where most local offices run unopposed, and the only way to have any say in who holds those offices is to vote in the closed republican primary. The only way to do that is register as republican.

    Some people do that to mitigate damage, and then vote straight ticket against the republicans in the general election. This can be a useful tactic even in places where the democratic party is active enough to field candidates, but not enough to have two running in a primary.

    In this case there are other signs and I don’t think we’re dealing with tactical registration, but it’s good to be aware of when judging people by their voter registration without knowing a lot about the local politics.