Should procps parse zoneinfo?
"Craig Small" <[email protected]> ("csmall") Mon, 20 May 2024 22:02:58 +1000
| Newsgroups | gmane.linux.procps.devel |
|---|---|
| Message-ID | <CALy8Cw6cch_pqfnzsFr3nMgKQftD1wte2NERoiTYaEy_4-UN4g@mail.gmail.com> |
--00000000000029f0010618e17ce7 Content-Type: text/plain; charset="UTF-8" Hello All, For the issue around Available giving wrong answers (see Issue #334 [1]) I've had to poke around /proc/zoneinfo. This file is sparsely documented, proc(5) says: This file displays information about memory zones. This is useful for analyzing virtual memory behavior. I think it does have some value but would like to get a broader consensus. 1) Is it worthwhile for the library to parse /proc/zoneinfo with the view of something using these values? 2) What values are more useful than others? 3) Could any existing procps tools use this information? 4) Should there be some sort of new cli tool for this information? I don't do very much system administration so I'm not sure how often the information in this file isused by others. For me, I'd want to get the source data for Available but there might be other uses. There is pcp-zoneinfo[2] which might just do what most people want. - Craig 1: https://gitlab.com/procps-ng/procps/-/issues/334 2: https://github.com/performancecopilot/pcp/blob/main/src/pcp/zoneinfo/pcp-zoneinfo.py -- Craig Small https://dropbear.xyz/ csmall at : dropbear.xyz Debian GNU/Linux https://www.debian.org/ <http://www.debian.org/> csmall at : debian.org GPG fingerprint: 5D2F B320 B825 D939 04D2 0519 3938 F96B DF50 FEA5 --00000000000029f0010618e17ce7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div>Hello All,</div><div>=C2=A0 For the issue around Avai= lable giving wrong answers (see=C2=A0 Issue #334 [1]) I've had to poke = around /proc/zoneinfo. This file is sparsely documented, proc(5) says:</div= ><div><br></div><div>This file displays information about memory zones.=C2= =A0 This is useful for analyzing virtual memory behavior.</div><div><br></d= iv><div>I think it does have some value but would like to get a broader con= sensus.</div><div><br></div><div>1) Is it worthwhile for the library to par= se /proc/zoneinfo with the view of something using these values?</div><div>= 2) What values are more useful than others?</div><div>3) Could any existing= procps tools use this information?<br></div><div>4) Should there be some s= ort of new cli tool for this information?</div><div><br></div><div>I don= 9;t do very much system administration so I'm not sure how often the in= formation in this file isused by others. For me, I'd want to get the so= urce data for Available but there might be other uses.</div><div><br></div>= <div>There is pcp-zoneinfo[2] which might just do what most people want.</d= iv><div><br></div><div>=C2=A0- Craig<br></div><div><br></div><div>1: <a hre= f=3D"https://gitlab.com/procps-ng/procps/-/issues/334">https://gitlab.com/p= rocps-ng/procps/-/issues/334</a></div><div>2: <a href=3D"https://github.com= /performancecopilot/pcp/blob/main/src/pcp/zoneinfo/pcp-zoneinfo.py">https:/= /github.com/performancecopilot/pcp/blob/main/src/pcp/zoneinfo/pcp-zoneinfo.= py</a></div><span class=3D"gmail_signature_prefix">-- </span><br><div dir= =3D"ltr" class=3D"gmail_signature" data-smartmail=3D"gmail_signature"><div = dir=3D"ltr"><pre>Craig Small <a href=3D"https://dropbear.xyz" t= arget=3D"_blank">https://dropbear.xyz/</a> csmall at : <a href=3D"http://d= ropbear.xyz" target=3D"_blank">dropbear.xyz</a> Debian GNU/Linux <a href=3D"http://www.debian.org/" target=3D"_blank= ">https://www.debian.org/</a> csmall at : <a href=3D"http://debian.org" ta= rget=3D"_blank">debian.org</a> GPG fingerprint: 5D2F B320 B825 D939 04D2 0519 3938 F96B DF50 FEA5</pr= e></div></div></div> --00000000000029f0010618e17ce7--