- User Since
- Jun 4 2014, 10:38 AM (219 w, 6 d)
Fri, Aug 17
This page looks fishy, I'll have to think about.
I think the current names while justifiable only add confusion (why is refcount *acquire* paired with fence *rel*?). How about 'VNODE_REFCOUNT_FENCE_BEFORE' and after.
Jul 13 2018
Jul 12 2018
Jul 9 2018
yes, GB. is there a problem reproducing the bug?
This does not fix the problem for me -- now things start wedging on 'vmwait'.
Jul 3 2018
A different variant went in with r335879
Jun 24 2018
There is one already and it can be seen in the diff: vm_radix_node_zone_dtor
Jun 15 2018
Jun 14 2018
What is the purpose of this code to begin with? It looks like it should just be removed. If it is needed (what for?), it probably has to run after all initial forking is finished.
this avoidably pessimizes the common case of single-threaded execution by adding atomic op pair for each fd. the code can check if both the process is single threaded and the fd table is not shared, in which case there is no need to grab a ref on files. this will end up being a minor pessimization for the multithreaded (and presumably rare) case while being a win for singlethreaded one.
Jun 10 2018
Jun 8 2018
Jun 6 2018
Jun 2 2018
May 31 2018
May 30 2018
May 29 2018
I have no opinion one way or the other.
May 23 2018
I tried that. Some mutex users can't affort to pull in proc.h either. The motivation here is to provide mutex unlock without atomics, which requires partial access to thread layout.
I noted I have a use for this in mutex code, but mutexes are included by proc.h which creates a lot of dependency fun. An attempt to create _thread.h failed as there is just too much work.
May 22 2018
May 21 2018
May 20 2018
May 18 2018
First a minor note is that I took the liberty of s/bzero/bcmp, which I presume was intended.
May 11 2018
May 9 2018
This makes the kernel boot fine with mem* routines flipped to erms.
May 8 2018
May 7 2018
May 4 2018
Apr 30 2018
I meant per-uid accounting specifically. I have no issue with counting swap usage in general, which also happens to not induce the problem.
I completely disagree with this.
Apr 27 2018
Apr 24 2018
Apr 23 2018
Apr 22 2018
Apr 18 2018
I made the change flippable with a sysctl. It nicely speeds up the initital page faults when postgres warms up:
Apr 17 2018
Apr 16 2018
I only have cosmetic remarks. Definitely looks good enough to be shipped.