Posts
8
Following
4
Followers
4

Christian Brauner

Edited 9 months ago

Public service announcement. If you stat /proc/$pid/fd then stat->st_size/statx->stx_size will contain the number of open file descriptors for $pid.

> stat --format '%s' /proc/1/fd
167

#linux #kernel

0
0
0
@monsieuricon Ok, will do. I used -H --merge-base and then did a git merge as proposed with --stat added.
0
0
0
@monsieuricon And b4 trailers -u adds Commit: Christian Brauner <brauner@kernel.org> ?
0
0
0

Christian Brauner

@monsieuricon I applied a series with b4 shazam yesterday and it inserted change-id and base-commit lines into each commit message. Is this something new we're doing?
2
0
0
/me wonders whether we could extend our poll infra to give us per-subsystem events. It would mean a new epoll system call and some internal work but it would be so nice to have a (poor mans) kqueue available.
0
0
0

Christian Brauner

Fun, I just stumbled upon:

commit 78ddb08feb7d4fbe3c0a9931804c51ee58be4023
Author:     Johannes Weiner <hannes@cmpxchg.org>
AuthorDate: Tue Apr 14 16:53:05 2009 +0200
Commit:     Ingo Molnar <mingo@elte.hu>
CommitDate: Tue Apr 14 17:17:16 2009 +0200

    wait: don't use __wake_up_common()

    '777c6c5 wait: prevent exclusive waiter starvation' made
    __wake_up_common() global to be used from abort_exclusive_wait().

    It was needed to do a wake-up with the waitqueue lock held while
    passing down a key to the wake-up function.

    Since '4ede816 epoll keyed wakeups: add __wake_up_locked_key() and
    __wake_up_sync_key()' there is an appropriate wrapper for this case:
    __wake_up_locked_key().

    Use it here and make __wake_up_common() private to the scheduler
    again.

    Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
    Cc: Andrew Morton <akpm@linux-foundation.org>
    Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
    LKML-Reference: <1239720785-19661-1-git-send-email-hannes@cmpxchg.org>
    Signed-off-by: Ingo Molnar <mingo@elte.hu>

Which is from 2009 and uses “LKML-Reference” as a precursor to what we now simply do in Link:.

1
0
0

Jonathan Corbet

Edited 9 months ago
Many years ago, my father set out to create a book that would help new spinal-cord-injury victims come to terms with (and love) their new life. The result, called Options, was widely distributed in rehabilitation centers for years and helped thousands of people before finally going out of print.

Inspired by the creation of the Full Circle film, which quotes extensively from the book, we have been working to bring Options back. Now, we're happy to say that Options is available, under the Creative Commons SA 4.0 license, in a number of forms. Enjoy!

As an aside, I have to say that the tools for scanning and OCR work have gotten pretty good. All of this was made possible by SANE, unpaper, tesseract, Sphinx, and surely some other tools I'm forgetting now.

0
26
41

Christian Brauner

Edited 10 months ago
@torvalds @brauner
We haven't had a power outage in as long as I can think. Then again an urban area should be a lot less susceptible to outtages. Where I grew up cutting power would've done nothing to heating though as that was done with wood and sometimes coals. So that would make it a lot less annoying.

100km is considered a decent trip in most of Europe (excluding Russia) imho. When we took a road trip into Canada before LSFMM last year we drove for about ~3-4h and my European brain was thinking "We must've made it a good chunk." and then was looking on a map and we had barely moved.
0
0
0
Show older