What is Hackers' Pub?

Hackers' Pub is a place for software engineers to share their knowledge and experience with each other. It's also an ActivityPub-enabled social network, so you can follow your favorite hackers in the fediverse and get their latest posts in your feed.

@whitequark✧✦Catherine✦✧ It does now: docs.kernel.org/filesystems/pr
"Starting with 6.11 kernel, /proc/PID/maps provides an alternative ioctl()-based API that gives ability to flexibly and efficiently query and filter individual VMAs. This interface is binary and is meant for more efficient and easy programmatic use. struct procmap_query, defined in linux/fs.h UAPI header, serves as an input/output argument to the PROCMAP_QUERY ioctl() command."

The /proc Filesystem — The Linux Kernel documentation

Description¶ rchar¶ I/O counter: chars read The number of bytes which this task has caused to be read from storage. This is simply the sum of bytes which this process passed to read() and pread(). It includes things like tty IO and it is unaffected by whether or not actual physical disk IO was required (the read might have been satisfied from pagecache). wchar¶ I/O counter: chars written The number of bytes which this task has caused, or shall cause to be written to disk. Similar caveats apply here as with rchar. syscr¶ I/O counter: read syscalls Attempt to count the number of read I/O operations, i.e. syscalls like read() and pread(). syscw¶ I/O counter: write syscalls Attempt to count the number of write I/O operations, i.e. syscalls like write() and pwrite(). read_bytes¶ I/O counter: bytes read Attempt to count the number of bytes which this process really did cause to be fetched from the storage layer. Done at the submit_bio() level, so it is accurate for block-backed filesystems. <please add status regarding NFS and CIFS at a later time> write_bytes¶ I/O counter: bytes written Attempt to count the number of bytes which this process caused to be sent to the storage layer. This is done at page-dirtying time. cancelled_write_bytes¶ The big inaccuracy here is truncate. If a process writes 1MB to a file and then deletes the file, it will in fact perform no writeout. But it will have been accounted as having caused 1MB of write. In other words: The number of bytes which this process caused to not happen, by truncating pagecache. A task can cause “negative” IO too. If this task truncates some dirty pagecache, some IO which another task has been accounted for (in its write_bytes) will not be happening. We _could_ just subtract that from the truncating task’s write_bytes, but there is information loss in doing that. Note At its current implementation state, this is a bit racy on 32-bit machines: if process A reads process B’s /proc/pid/io while process B is updating one of those 64-bit counters, process A could see an intermediate result. More information about this can be found within the taskstats documentation in Documentation/accounting.

docs.kernel.org

0
0
0
0
1
0
0
0
0
0
0
0

동상을 계속 세우는 힘멜에게 왜 그러냐 묻자
가장 큰 이유는 네가 미래에 홀로 고독하게 두지 않기 위함이려나. 옛날이야기 같은 게 아니야, 우리는 정말로 여기 있었다고.

May be an image of text
0
1
0
0
1
0
0
0
0
0
4
0
0
0
0
0
0
0

🍝 저의 주님, 날아다니는 스파게티 괴물 님, 저를 보호하시어 살펴주소서.
😋 어서 구원하시어 혼자 내버려 두지 마소서.

🍝 날아다니는 스파게티 괴물 님께서 여러분과 함께.
😋 또한 주교의 면발과 함께 하소서.
🍝 기도합시다.
지극히 선하신 스파게티 괴물 님, 사람들이 더욱더 완전한 것을 이루기 위해서 서로 협조하여 일하게 해주셨으니,
저희 기도를 들으시고 저희가 항상 우정을 품고, 모든 이들을 위한 박애로 끊임없이 일하게 하소서.

"10. 저의 주님, 날아다니는 스파게티 괴물 님, 이 낮 시간 동안 유혹을 이기고, 온유함으로 자신을 다스리게 하소서."

🍝 날아다니는 스파게티 괴물 님께서 여러분과 함께.
😋 또한 주교의 면발과 함께 하소서.
🍝 전능하신 스파게티 괴물 님, 미트볼🧆과 소스🥫와 성면(the Holy Noodle)🍝께서는 여기 모인 모든 이에게 강복하소서.
😋 라-멘 🍜.

🍝 날아다니는 스파게티 괴물 님을 찬미합시다.
😋 주님 감사합니다.

2026-02-03T14:05:42+09:00


0
0
0
0
0

平井卓也氏が伊藤穰一氏の応援動画を上げているのビビった。本当にビビった。今それできるの凄い。何観情報見ていないのか、見ていてそれなのか、エプスタインファイルが公開されたことを問題視していないのか(それも凄い)。タガが外れすぎている。

0
1
0
0
0
0

I can’t believe we’re doing this again. It’s just a bot that generates the text you ask it for. If you put it in charge of critical decisions, it will kill people. Not because it’s secretly evil, but because it’s a word generator. It’s like putting your toaster in charge of air traffic control.

0
0
0
0
0
0
0
0

일상을 지키기 위해

1. 힘들면 쉬어가기

2. 현재에 집중하기

3. 너무 애쓰지 않기

4. 아프면 병원 가기

5. 함께일 때 변해가는 내 모습이
마음에 드는 사람들과 함께하기

May be an image of pie and text that says '일상을 지키기 위해 1. 1. 힘들면 쉬어가기 2. 2. 현재에 집중하기 3. 3. 너무 애쓰지 않기 4. 아프면 병원 가기 5. 함께일 때 변해가는 내 모습이 마음에 드는 사람들과 함께하기'
0
0
0
0
0
0
0