Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1445107 > unrolled thread
| Started by | Topi Miettinen <toiwoton@gmail.com> |
|---|---|
| First post | 2016-07-17 22:20 +0200 |
| Last post | 2016-07-19 20:20 +0200 |
| Articles | 4 — 2 participants |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [RFC 02/18] cgroup_pids: track maximum pids Topi Miettinen <toiwoton@gmail.com> - 2016-07-17 22:20 +0200
Re: [RFC 02/18] cgroup_pids: track maximum pids Tejun Heo <tj@kernel.org> - 2016-07-19 03:10 +0200
Re: [RFC 02/18] cgroup_pids: track maximum pids Topi Miettinen <toiwoton@gmail.com> - 2016-07-19 19:00 +0200
Re: [RFC 02/18] cgroup_pids: track maximum pids Tejun Heo <tj@kernel.org> - 2016-07-19 20:20 +0200
| From | Topi Miettinen <toiwoton@gmail.com> |
|---|---|
| Date | 2016-07-17 22:20 +0200 |
| Subject | Re: [RFC 02/18] cgroup_pids: track maximum pids |
| Message-ID | <rW0HD-5da-1@gated-at.bofh.it> |
On 06/13/16 21:33, Tejun Heo wrote: > Hello, > > On Mon, Jun 13, 2016 at 09:29:32PM +0000, Topi Miettinen wrote: >> I used fork callback as I don't want to lower the watermark in all cases >> where the charge can be lowered, so I'd update the watermark only when >> the fork really happens. > > I don't think that would make a noticeable difference. That's where > we decide whether to grant fork or not after all and thus where the > actual usage is. I tried using only charge functions, but then the result was too low. With fork callback, the result was as expected. -Topi > >> Is there a better way to compare and set? I don't think atomic_cmpxchg() >> does what's needed, > > cmpxchg loop should do what's necessary although I'm not sure how much > being strictly correct matters here. > > Thanks. >
[toc] | [next] | [standalone]
| From | Tejun Heo <tj@kernel.org> |
|---|---|
| Date | 2016-07-19 03:10 +0200 |
| Message-ID | <rWrHP-5yJ-5@gated-at.bofh.it> |
| In reply to | #1445107 |
On Sun, Jul 17, 2016 at 08:11:31PM +0000, Topi Miettinen wrote: > On 06/13/16 21:33, Tejun Heo wrote: > > Hello, > > > > On Mon, Jun 13, 2016 at 09:29:32PM +0000, Topi Miettinen wrote: > >> I used fork callback as I don't want to lower the watermark in all cases > >> where the charge can be lowered, so I'd update the watermark only when > >> the fork really happens. > > > > I don't think that would make a noticeable difference. That's where > > we decide whether to grant fork or not after all and thus where the > > actual usage is. > > I tried using only charge functions, but then the result was too low. > With fork callback, the result was as expected. Can you please elaborate in more details? Thanks. -- tejun
[toc] | [prev] | [next] | [standalone]
| From | Topi Miettinen <toiwoton@gmail.com> |
|---|---|
| Date | 2016-07-19 19:00 +0200 |
| Message-ID | <rWGxc-6sA-11@gated-at.bofh.it> |
| In reply to | #1445978 |
On 07/19/16 01:09, Tejun Heo wrote: > On Sun, Jul 17, 2016 at 08:11:31PM +0000, Topi Miettinen wrote: >> On 06/13/16 21:33, Tejun Heo wrote: >>> Hello, >>> >>> On Mon, Jun 13, 2016 at 09:29:32PM +0000, Topi Miettinen wrote: >>>> I used fork callback as I don't want to lower the watermark in all cases >>>> where the charge can be lowered, so I'd update the watermark only when >>>> the fork really happens. >>> >>> I don't think that would make a noticeable difference. That's where >>> we decide whether to grant fork or not after all and thus where the >>> actual usage is. >> >> I tried using only charge functions, but then the result was too low. >> With fork callback, the result was as expected. > > Can you please elaborate in more details? With the example systemd-timesyncd case, I was only getting 1 as the highwatermark, but there were already two tasks. -Topi
[toc] | [prev] | [next] | [standalone]
| From | Tejun Heo <tj@kernel.org> |
|---|---|
| Date | 2016-07-19 20:20 +0200 |
| Message-ID | <rWHMC-7oq-9@gated-at.bofh.it> |
| In reply to | #1446602 |
On Tue, Jul 19, 2016 at 04:59:18PM +0000, Topi Miettinen wrote: > With the example systemd-timesyncd case, I was only getting 1 as the > highwatermark, but there were already two tasks. Can you please find out why that is so? Given that that's where we charge pid usage, it doesn't make sense to me that you're getting lower numbers than actual usage there. Thanks. -- tejun
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web