u/McDonaldsWi-Fi

Question about the kernel's global open file table

Hey guys!

I'm a little confused on how the global open file table works and how the kernel decides if a new entry should be added or if an existing one should just just have its f_count++'d

So here is a simple scenario:

Process1 opens a file using flags 123 and mode 456

Process2 also opens that file using flags 123 and mode 456

In this situation would the kernel have 2 file entries in the global open file table, or would it just +1 the f_count on one entry since the inode number, flags, and mode are the same?

If it does just +1 the reference does this mean the 2 processes have to share the file offset? I can't see how that would be good.

So yeah to recap my question is: How does the kernel decide between adding another file entry to the global open file table or just +1 the reference count of an existing one?

Thanks!

reddit.com
u/McDonaldsWi-Fi — 1 day ago

If Anthropic and OpenAI stopped expansion today, do you think they would they be instantly profitable?

I've heard this argument from boosters and others. The argument is these AI companies aren't profitable now because they are sinking too much into their scaling and otherwise they would be profitable (or at least have a path to being profitable)... but I don't think this to be true. The existing GPU depreciation/data center costs alone is massive, and they are still heavily subsidizing their tokens even though enshittification has already begun.

What do you all think?

reddit.com
u/McDonaldsWi-Fi — 1 day ago
▲ 1 r/Tree

Help identifying this chestnut tree

Hey guys! I’m trying to identify this chestnut tree. It’s slowly dying and I’m going to plant some of its seeds and also attempt to propagate a small limb though im not too hopeful there.

Some of the leaves look kinda pointy like an American chestnut but some look more fat and round like a Chinese. what do you think?

I’m leaning towards Chinese personally.

Thanks!

u/McDonaldsWi-Fi — 7 days ago