Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

performance

Why is iterating over a file twice faster than reading it into memory and computing twice?

August 9, 2022 by Magenaut

I’m comparing the following

Categories Q&A, Unix & Linux Tags bash, io, performance Leave a comment

Diffing two big text files

August 9, 2022 by Magenaut

I have two big files (6GB each). They are unsorted, with linefeeds (n) as separators. How can I diff them? It should take under 24h.

Categories Q&A, Unix & Linux Tags diff, large-files, performance Leave a comment

Why is kworker consuming so many resources on Linux 3.0.0-12-server?

August 8, 2022 by Magenaut

Last Friday I upgraded my Ubuntu server to 11.10, which now runs with a 3.0.0-12-server kernel. Since then the overall performance has dropped dramatically. Before the upgrade the system load was about 0.3, but currently it is at 22-30 on an 8 core CPU system with 16GB of RAM (10GB free, no swap used).

Categories Q&A, Unix & Linux Tags cpu, kernel, load, performance Leave a comment

What’s the progress regarding improving system performance/responsiveness during high disk I/O?

August 8, 2022 by Magenaut

Whenever there is high disk I/O, the system tends to be much slower and less responsive than usual. What’s the progress on Linux kernel regarding this? Is this problem actively being worked on?

Categories Q&A, Unix & Linux Tags io, kernel, linux, performance Leave a comment

Fast way to build a test file with every second listed in YYYY-mm-dd HH:MM:SS format

August 8, 2022 by Magenaut

I want to create a large test file with lines containg dates listed by the second, but my method is taking inordinately long… (or at least, that’s how it feels 🙂 … 43 minutes to create only 1051201 lines. 20.1 MB file….

Categories Q&A, Unix & Linux Tags bash, date, performance, text-processing Leave a comment

What are the pros and cons of badblock’s two non-destructive tests?

August 8, 2022 by Magenaut

I use badblocks to test my 32GB class-10 microSD card that I use to boot my RPi. I already have a functioning file system on it, so I don’t want to scan it with the -w option (destructive read-write test).

Categories Q&A, Unix & Linux Tags badblocks, block-device, disk, filesystems, performance Leave a comment

Why does rename() take longer when fsync() is called first?

August 8, 2022 by Magenaut

In this test, why does rename() take longer when fsync() is called first?

Categories Q&A, Unix & Linux Tags btrfs, linux-kernel, performance Leave a comment

Grep of many keywords over many files: speeding it up

August 8, 2022 by Magenaut

I am currently facing a “performance problem” while using grep. I am trying to locate the occurrences of many (10,000+) keywords in many (think Linux kernel repository size) files.
The objective is to generate a kind of index for each keyword:

Categories Q&A, Unix & Linux Tags grep, performance, shell Leave a comment

What are the exact differences between awk and cut with grep?

August 7, 2022 by Magenaut

We know that we can get the second column of the line we want from a file using these two techniques: awk '/WORD/ { print $2 }' filename or grep WORD filename| cut -f 2 -d ' ' My questions are: What are the differences between the two commands above? Which one has the best … Read more

Categories Q&A, Unix & Linux Tags awk, cut, grep, performance Leave a comment

Is there a fastest way to shutdown the system?

August 7, 2022 by Magenaut

Or is shutdown -h now the fastest it can get?

Categories Q&A, Unix & Linux Tags performance, shutdown Leave a comment
Older posts
Newer posts
← Previous Page1 … Page15 Page16 Page17 … Page20 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress