* Privilege(s) needed to run top command @ 2019-03-11 16:56 jwang 2019-03-11 20:29 ` L A Walsh 2019-03-11 20:41 ` Achim Gratz 0 siblings, 2 replies; 32+ messages in thread From: jwang @ 2019-03-11 16:56 UTC (permalink / raw) To: cygwin This is used to work for a ordinary login. After re-install, top does not show the true load et al. Nor processes owned by SYSTEM. Please shed some light. Thanks a lot in advance -- Sent from: http://cygwin.1069669.n5.nabble.com/Cygwin-list-f3.html -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Privilege(s) needed to run top command 2019-03-11 16:56 Privilege(s) needed to run top command jwang @ 2019-03-11 20:29 ` L A Walsh 2019-03-11 20:41 ` Achim Gratz 1 sibling, 0 replies; 32+ messages in thread From: L A Walsh @ 2019-03-11 20:29 UTC (permalink / raw) To: jwang; +Cc: cygwin On 3/11/2019 9:50 AM, jwang wrote: > This is used to work for a ordinary login. > > After re-install, top does not show the true load et al. Nor processes > owned by SYSTEM. > > Please shed some light. Thanks a lot in advance. > You mean this: top - 13:26:15 up 1 day, 16:13, 1 user, load average: 4.91, 7.22, 7.72 Tasks: 12 total, 1 running, 11 sleeping, 0 stopped, 0 zombie %Cpu(s): 15.4/1.3 17[ ] GiB Mem : 15.9/95.651 [ ] GiB Swap: 0.0/95.651 [ ] PID USER PR NI VIRT RES %CPU %MEM TIME+ S COMMAND 2016 SYSTEM 8 0 8.4m 8.2m 0.0 0.0 0:00.03 S cygrunsrv 2017 SYSTEM 8 0 9.8m 9.1m 0.0 0.0 3:09.82 S `- cygserver 2018 SYSTEM 8 0 8.3m 7.8m 0.0 0.0 0:00.00 S cygrunsrv 2019 SYSTEM 8 0 7.1m 6.9m 0.0 0.0 0:00.09 S `- dbus-daemon 2023 SYSTEM 8 0 6.9m 6.9m 0.0 0.0 0:00.03 S syslogd 2028 Bliss\l+ 8 0 7.6m 7.1m 0.0 0.0 0:00.00 S inetd 13134 Bliss\l+ 8 0 7.0m 7.1m 0.0 0.0 0:00.06 S `- rlogind 13135 Bliss\l+ 8 0 8.8m 10.2m 0.0 0.0 0:00.49 S `- bash 13267 Bliss\l+ 8 0 10.2m 10.2m 3.0 0.0 0:02.68 R `- top 2046 Bliss\l+ 8 0 154.6m 137.2m 0.0 0.1 19:23.48 S XWin 2187 Bliss\l+ 8 0 7.4m 7.4m 0.0 0.0 0:00.31 S sshd 2514 Bliss\l+ 8 0 9.6m 19.6m 0.0 0.0 0:00.40 S gvim ---- Did you mean that it doesn't show non-cygwin processes? or does your 'top' really not display cygwin's SYSTEM processes? -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Privilege(s) needed to run top command 2019-03-11 16:56 Privilege(s) needed to run top command jwang 2019-03-11 20:29 ` L A Walsh @ 2019-03-11 20:41 ` Achim Gratz 2019-03-11 21:28 ` Corinna Vinschen 2019-03-12 9:48 ` jwang 1 sibling, 2 replies; 32+ messages in thread From: Achim Gratz @ 2019-03-11 20:41 UTC (permalink / raw) To: cygwin jwang writes: > This is used to work for a ordinary login. > > After re-install, top does not show the true load et al. Nor processes > owned by SYSTEM. > > Please shed some light. Cygwin is a user-space layer. It can't show you information that the underlying OS determines to be off-limits for you. Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ SD adaptation for Waldorf microQ V2.22R2: http://Synth.Stromeko.net/Downloads.html#WaldorfSDada -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Privilege(s) needed to run top command 2019-03-11 20:41 ` Achim Gratz @ 2019-03-11 21:28 ` Corinna Vinschen 2019-03-11 21:40 ` Achim Gratz 2019-03-12 9:48 ` jwang 1 sibling, 1 reply; 32+ messages in thread From: Corinna Vinschen @ 2019-03-11 21:28 UTC (permalink / raw) To: cygwin [-- Attachment #1: Type: text/plain, Size: 1520 bytes --] On Mar 11 21:41, Achim Gratz wrote: > jwang writes: > > This is used to work for a ordinary login. > > > > After re-install, top does not show the true load et al. Nor processes > > owned by SYSTEM. > > > > Please shed some light. > > Cygwin is a user-space layer. It can't show you information that the > underlying OS determines to be off-limits for you. And I just checked, even under Cygwin 2.11.2, procps and top were not showing foreign processes if you're running under a non-admin user account or a non-elevated shell, so this is nothing new. In fact, `procps' at least tries to access /proc/<PID>/stat. This doesn't return valid information because it has to be able to open a process with PROCESS_QUERY_LIMITED_INFORMATION and PROCESS_VM_READ permissions. No ordinary user has these permissions on processes she doesn't own.(*) However, Cygwin's `ps -e' was supposed to show all processes, but it didn't anymore since I created helper objects in the NT namespace with insufficient privileges for everyone. I pushed a patch and uploaded new developer snapshots to https://cywin.com/snapshots/ for testing. Thanks, Corinna (*) That doesn't mean it's not possible. In theory all Cygwin processes could be opened to allow everyone PROCESS_QUERY_LIMITED_INFORMATION access, which would at least fill most of /proc/<PID>/stat for foreign processes. However, we never did that, so it can't have worked yet. -- Corinna Vinschen Cygwin Maintainer [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Privilege(s) needed to run top command 2019-03-11 21:28 ` Corinna Vinschen @ 2019-03-11 21:40 ` Achim Gratz 2019-03-12 0:20 ` Andrey Repin 2019-03-12 8:58 ` Corinna Vinschen 0 siblings, 2 replies; 32+ messages in thread From: Achim Gratz @ 2019-03-11 21:40 UTC (permalink / raw) To: cygwin Corinna Vinschen writes: > (*) That doesn't mean it's not possible. In theory all Cygwin > processes could be opened to allow everyone > PROCESS_QUERY_LIMITED_INFORMATION access, which would at least > fill most of /proc/<PID>/stat for foreign processes. > However, we never did that, so it can't have worked yet. Could we make it work under the condition that cygserver is running? Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Factory and User Sound Singles for Waldorf Q+, Q and microQ: http://Synth.Stromeko.net/Downloads.html#WaldorfSounds -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Privilege(s) needed to run top command 2019-03-11 21:40 ` Achim Gratz @ 2019-03-12 0:20 ` Andrey Repin 2019-03-12 8:58 ` Corinna Vinschen 1 sibling, 0 replies; 32+ messages in thread From: Andrey Repin @ 2019-03-12 0:20 UTC (permalink / raw) To: Achim Gratz, cygwin Greetings, Achim Gratz! > Corinna Vinschen writes: >> (*) That doesn't mean it's not possible. In theory all Cygwin >> processes could be opened to allow everyone >> PROCESS_QUERY_LIMITED_INFORMATION access, which would at least >> fill most of /proc/<PID>/stat for foreign processes. >> However, we never did that, so it can't have worked yet. > Could we make it work under the condition that cygserver is running? cygserver is not necessarily running with localsystem privileges, though, if I'm not mistaken. -- With best regards, Andrey Repin Tuesday, March 12, 2019 3:16:37 Sorry for my terrible english... -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Privilege(s) needed to run top command 2019-03-11 21:40 ` Achim Gratz 2019-03-12 0:20 ` Andrey Repin @ 2019-03-12 8:58 ` Corinna Vinschen 1 sibling, 0 replies; 32+ messages in thread From: Corinna Vinschen @ 2019-03-12 8:58 UTC (permalink / raw) To: cygwin [-- Attachment #1: Type: text/plain, Size: 871 bytes --] On Mar 11 22:40, Achim Gratz wrote: > Corinna Vinschen writes: > > (*) That doesn't mean it's not possible. In theory all Cygwin > > processes could be opened to allow everyone > > PROCESS_QUERY_LIMITED_INFORMATION access, which would at least > > fill most of /proc/<PID>/stat for foreign processes. > > However, we never did that, so it can't have worked yet. > > Could we make it work under the condition that cygserver is running? If this functionality is really necessary, it should ideally work without having a service running. Another, easier way out would be to allow /proc/<PID>/stat (and perhaps others) to succeed even if the process info can't be grabbed due to permissions. It wouldn't show really useful info, but procps or top would at least show the process. Corinna -- Corinna Vinschen Cygwin Maintainer [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Privilege(s) needed to run top command 2019-03-11 20:41 ` Achim Gratz 2019-03-11 21:28 ` Corinna Vinschen @ 2019-03-12 9:48 ` jwang 2019-03-12 11:14 ` Corinna Vinschen 1 sibling, 1 reply; 32+ messages in thread From: jwang @ 2019-03-12 9:48 UTC (permalink / raw) To: cygwin It used to work. <http://cygwin.1069669.n5.nabble.com/file/t11507/cygwin_top_issue.png> As can be seen from above screenshot, CPU load is 0! (when login as an Administrator , it shows about 1) ps -e (or ps -W) no longer shows processes such as cron and sshd et al owned by SYSTEM -- Sent from: http://cygwin.1069669.n5.nabble.com/Cygwin-list-f3.html -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Privilege(s) needed to run top command 2019-03-12 9:48 ` jwang @ 2019-03-12 11:14 ` Corinna Vinschen 2019-03-12 12:01 ` jwang 0 siblings, 1 reply; 32+ messages in thread From: Corinna Vinschen @ 2019-03-12 11:14 UTC (permalink / raw) To: cygwin [-- Attachment #1: Type: text/plain, Size: 654 bytes --] On Mar 12 02:41, jwang wrote: > It used to work. > <http://cygwin.1069669.n5.nabble.com/file/t11507/cygwin_top_issue.png> > > As can be seen from above screenshot, CPU load is 0! (when login as an > Administrator , it shows about 1) > > ps -e (or ps -W) no longer shows processes such as cron and sshd et al owned > by SYSTEM Try the latest snapshot from https://cygwin.com/snapshots/ It re-enables ps output and improves procps and top output. Note that not all information in /proc is available since that requires permissions normal users don't have on foreign processes. Corinna -- Corinna Vinschen Cygwin Maintainer [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Privilege(s) needed to run top command 2019-03-12 11:14 ` Corinna Vinschen @ 2019-03-12 12:01 ` jwang 2019-03-12 12:39 ` Houder 0 siblings, 1 reply; 32+ messages in thread From: jwang @ 2019-03-12 12:01 UTC (permalink / raw) To: cygwin After last weekend update, I believe I had already the latest version installed: lc cygwin1.dll|xargs ls -lsa 3412 -rwxr-xr-x 1 admin None 3489952 Mar 5 18:59 /bin/cygwin1.dll 3412 -rwxr-xr-x 1 admin None 3489952 Mar 5 18:59 /usr/bin/cygwin1.dll -- Sent from: http://cygwin.1069669.n5.nabble.com/Cygwin-list-f3.html -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Privilege(s) needed to run top command 2019-03-12 12:01 ` jwang @ 2019-03-12 12:39 ` Houder 2019-03-12 15:51 ` jwang 0 siblings, 1 reply; 32+ messages in thread From: Houder @ 2019-03-12 12:39 UTC (permalink / raw) To: cygwin On Tue, 12 Mar 2019 04:55:01, jwang wrote: > After last weekend update, I believe I had already the latest version > installed: > > lc cygwin1.dll|xargs ls -lsa > 3412 -rwxr-xr-x 1 admin None 3489952 Mar 5 18:59 /bin/cygwin1.dll > 3412 -rwxr-xr-x 1 admin None 3489952 Mar 5 18:59 /usr/bin/cygwin1.dll https://cygwin.com/snapshots/ Henri -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Privilege(s) needed to run top command 2019-03-12 12:39 ` Houder @ 2019-03-12 15:51 ` jwang 2019-03-12 16:47 ` Corinna Vinschen 0 siblings, 1 reply; 32+ messages in thread From: jwang @ 2019-03-12 15:51 UTC (permalink / raw) To: cygwin I downloaded the latest snapshots and it did not make any difference. Thanks -- Sent from: http://cygwin.1069669.n5.nabble.com/Cygwin-list-f3.html -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Privilege(s) needed to run top command 2019-03-12 15:51 ` jwang @ 2019-03-12 16:47 ` Corinna Vinschen 2019-03-12 17:06 ` jwang 0 siblings, 1 reply; 32+ messages in thread From: Corinna Vinschen @ 2019-03-12 16:47 UTC (permalink / raw) To: cygwin [-- Attachment #1: Type: text/plain, Size: 430 bytes --] On Mar 12 08:45, jwang wrote: > I downloaded the latest snapshots and it did not make any difference. It certainly does. I'm testing this myself. In a session of a non-privileged user I now see all other Cygwin processes in ps, procps and top. I see processes from another RDP session as well as the processes running under SYSTEM.' What exactly is missing? Corinna -- Corinna Vinschen Cygwin Maintainer [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Privilege(s) needed to run top command 2019-03-12 16:47 ` Corinna Vinschen @ 2019-03-12 17:06 ` jwang 2019-03-12 17:13 ` Corinna Vinschen 2019-03-12 19:27 ` Achim Gratz 0 siblings, 2 replies; 32+ messages in thread From: jwang @ 2019-03-12 17:06 UTC (permalink / raw) To: cygwin Sir, I download, this morning: 3132 -rw-r--r-- 1 james None 3207004 Mar 12 10:50 cygwin-20190312.tar.xz tar -xvf cygwin-20190312.tar.xz then I did: usr/bin/ps -W|grep httpd nothing returned from the above command. -- Sent from: http://cygwin.1069669.n5.nabble.com/Cygwin-list-f3.html -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Privilege(s) needed to run top command 2019-03-12 17:06 ` jwang @ 2019-03-12 17:13 ` Corinna Vinschen 2019-03-12 17:19 ` jwang ` (2 more replies) 2019-03-12 19:27 ` Achim Gratz 1 sibling, 3 replies; 32+ messages in thread From: Corinna Vinschen @ 2019-03-12 17:13 UTC (permalink / raw) To: cygwin [-- Attachment #1: Type: text/plain, Size: 856 bytes --] On Mar 12 10:00, jwang wrote: > Sir, Nope. > I download, this morning: > 3132 -rw-r--r-- 1 james None 3207004 Mar 12 10:50 cygwin-20190312.tar.xz > > tar -xvf cygwin-20190312.tar.xz Where to? You have to install cygwin1.dll in place of the other cygwin1.dll while having stopped all Cygwin processes. Just unpacking with tar won't do anything useful. > then I did: > > usr/bin/ps -W|grep httpd This is really not helpful as far as bug reports go. Drop the grep, drop the -W. Just call `ps -e' or `procps -e' or `top' and see what's visible. Do you see all CYgwin processes? If so, fine. If not, please report details. Just don't expect top's load average values to make any sense if you're running under a non-privileged user account. They will be always 0. Corinna -- Corinna Vinschen Cygwin Maintainer [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Privilege(s) needed to run top command 2019-03-12 17:13 ` Corinna Vinschen @ 2019-03-12 17:19 ` jwang 2019-03-12 17:40 ` Corinna Vinschen 2019-03-12 17:39 ` Corinna Vinschen 2019-03-12 18:10 ` Houder 2 siblings, 1 reply; 32+ messages in thread From: jwang @ 2019-03-12 17:19 UTC (permalink / raw) To: cygwin Understood. Thanks. However, top command used to show load average under non-privileged user (till I upgraded cygwin) and I wish to have that back please if I may. Thanks a lot for your help -- Sent from: http://cygwin.1069669.n5.nabble.com/Cygwin-list-f3.html -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Privilege(s) needed to run top command 2019-03-12 17:19 ` jwang @ 2019-03-12 17:40 ` Corinna Vinschen 0 siblings, 0 replies; 32+ messages in thread From: Corinna Vinschen @ 2019-03-12 17:40 UTC (permalink / raw) To: jwang; +Cc: cygwin [-- Attachment #1: Type: text/plain, Size: 328 bytes --] On Mar 12 10:13, jwang wrote: > Understood. Thanks. > > However, top command used to show load average under non-privileged user > (till I upgraded cygwin) and I wish to have that back please if I may. Add your user to the "Performance Monitoring Users" group. Corinna -- Corinna Vinschen Cygwin Maintainer [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Privilege(s) needed to run top command 2019-03-12 17:13 ` Corinna Vinschen 2019-03-12 17:19 ` jwang @ 2019-03-12 17:39 ` Corinna Vinschen 2019-03-12 20:28 ` Corinna Vinschen 2019-03-12 18:10 ` Houder 2 siblings, 1 reply; 32+ messages in thread From: Corinna Vinschen @ 2019-03-12 17:39 UTC (permalink / raw) To: cygwin [-- Attachment #1: Type: text/plain, Size: 1376 bytes --] On Mar 12 18:13, Corinna Vinschen wrote: > On Mar 12 10:00, jwang wrote: > > Sir, > > Nope. > > > I download, this morning: > > 3132 -rw-r--r-- 1 james None 3207004 Mar 12 10:50 cygwin-20190312.tar.xz > > > > tar -xvf cygwin-20190312.tar.xz > > Where to? You have to install cygwin1.dll in place of the other > cygwin1.dll while having stopped all Cygwin processes. Just unpacking > with tar won't do anything useful. > > > then I did: > > > > usr/bin/ps -W|grep httpd > > This is really not helpful as far as bug reports go. Drop the > grep, drop the -W. Just call `ps -e' or `procps -e' or `top' > and see what's visible. Do you see all CYgwin processes? If so, fine. > If not, please report details. Just don't expect top's load average > values to make any sense if you're running under a non-privileged > user account. They will be always 0. Btw., `ps -W' only shows non-Cygwin processes visible inside the current user session. This session isolation has been introduced with Windows 2003 and since Vista even the console interactive session is running in its own session distinct from session 0. Task Manager doesn't suffer this problem, but it's not clear to me why. Perhaps it connects to a broker service which gives task manager access to all processes. Corinna -- Corinna Vinschen Cygwin Maintainer [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Privilege(s) needed to run top command 2019-03-12 17:39 ` Corinna Vinschen @ 2019-03-12 20:28 ` Corinna Vinschen 2019-03-12 20:50 ` Andrey Repin 0 siblings, 1 reply; 32+ messages in thread From: Corinna Vinschen @ 2019-03-12 20:28 UTC (permalink / raw) To: cygwin [-- Attachment #1: Type: text/plain, Size: 2392 bytes --] On Mar 12 18:39, Corinna Vinschen wrote: > On Mar 12 18:13, Corinna Vinschen wrote: > > On Mar 12 10:00, jwang wrote: > > > Sir, > > > > Nope. > > > > > I download, this morning: > > > 3132 -rw-r--r-- 1 james None 3207004 Mar 12 10:50 cygwin-20190312.tar.xz > > > > > > tar -xvf cygwin-20190312.tar.xz > > > > Where to? You have to install cygwin1.dll in place of the other > > cygwin1.dll while having stopped all Cygwin processes. Just unpacking > > with tar won't do anything useful. > > > > > then I did: > > > > > > usr/bin/ps -W|grep httpd > > > > This is really not helpful as far as bug reports go. Drop the > > grep, drop the -W. Just call `ps -e' or `procps -e' or `top' > > and see what's visible. Do you see all CYgwin processes? If so, fine. > > If not, please report details. Just don't expect top's load average > > values to make any sense if you're running under a non-privileged > > user account. They will be always 0. > > Btw., `ps -W' only shows non-Cygwin processes visible inside the > current user session. This session isolation has been introduced with > Windows 2003 and since Vista even the console interactive session is > running in its own session distinct from session 0. > > Task Manager doesn't suffer this problem, but it's not clear to me why. > Perhaps it connects to a broker service which gives task manager access > to all processes. This was complete nonsense. Actually, the problem was entirely in Cygwin's ps.exe, and it's a long-standing problem at that. While the Cygwin DLL collected the complete process list for ps, ps then didn't print any process it failed to call OpenProcess on. These are a *lot* of processes and the result looked a lot like the list of processes in or connected to the current session. The reason for this behaviour was that the image path of a process could only be fetched when opening the process. Today I found new functionality since Vista which allows to fetch the image path without having to open the process, so `ps -W' will print all processes again, just as in the good old XP times :} Please try the latest snapshot from https://cygwin.com/snapshots/ Make sure to use ps.exe from that snapshot since this time the ps executable is affected, not the Cygwin DLL itself. Corinna -- Corinna Vinschen Cygwin Maintainer [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Privilege(s) needed to run top command 2019-03-12 20:28 ` Corinna Vinschen @ 2019-03-12 20:50 ` Andrey Repin 2019-03-12 20:59 ` Corinna Vinschen 0 siblings, 1 reply; 32+ messages in thread From: Andrey Repin @ 2019-03-12 20:50 UTC (permalink / raw) To: Corinna Vinschen, cygwin [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #1: Type: text/plain; charset=utf-8, Size: 1423 bytes --] Greetings, Corinna Vinschen! > This was complete nonsense. > Actually, the problem was entirely in Cygwin's ps.exe, and it's a > long-standing problem at that. > While the Cygwin DLL collected the complete process list for ps, ps then > didn't print any process it failed to call OpenProcess on. These are a > *lot* of processes and the result looked a lot like the list of > processes in or connected to the current session. > The reason for this behaviour was that the image path of a process could > only be fetched when opening the process. Today I found new > functionality since Vista which allows to fetch the image path without > having to open the process, so `ps -W' will print all processes again, > just as in the good old XP times :} Err, but why? PSAPI was available since⦠a long time since. And it is public API except for isolated processes. > Please try the latest snapshot from https://cygwin.com/snapshots/ > Make sure to use ps.exe from that snapshot since this time the ps > executable is affected, not the Cygwin DLL itself. -- With best regards, Andrey Repin Tuesday, March 12, 2019 23:34:43 Sorry for my terrible english...\0ТÒÐÐ¥\a&ö&ÆVÒ\a&W\x06÷'G3¢\x02\x02\x02\x02\x02\x02\x06GG\x03¢òö7wvâæ6öÒ÷\a&ö&ÆV×2æFÖÀФd\x15\x13¢\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x02\x06GG\x03¢òö7wvâæ6öÒöf\x17\x12ðФFö7VÖVçF\x17Föã¢\x02\x02\x02\x02\x02\x02\x02\x02\x06GG\x03¢òö7wvâæ6öÒöFö72æFÖÀÐ¥Vç7V'67&&R\x06æfó¢\x02\x02\x02\x02\x02\x06GG\x03¢òö7wvâæ6öÒöÖÂò7Vç7V'67&&R×6×\x06ÆPÐ Ð ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Privilege(s) needed to run top command 2019-03-12 20:50 ` Andrey Repin @ 2019-03-12 20:59 ` Corinna Vinschen 2019-03-12 21:50 ` Andrey Repin 0 siblings, 1 reply; 32+ messages in thread From: Corinna Vinschen @ 2019-03-12 20:59 UTC (permalink / raw) To: cygwin [-- Attachment #1: Type: text/plain, Size: 1124 bytes --] On Mar 12 23:35, Andrey Repin wrote: > Greetings, Corinna Vinschen! > > > This was complete nonsense. > > > Actually, the problem was entirely in Cygwin's ps.exe, and it's a > > long-standing problem at that. > > > While the Cygwin DLL collected the complete process list for ps, ps then > > didn't print any process it failed to call OpenProcess on. These are a > > *lot* of processes and the result looked a lot like the list of > > processes in or connected to the current session. > > > The reason for this behaviour was that the image path of a process could > > only be fetched when opening the process. Today I found new > > functionality since Vista which allows to fetch the image path without > > having to open the process, so `ps -W' will print all processes again, > > just as in the good old XP times :} > > Err, but why? PSAPI was available since… a long time since. > And it is public API except for isolated processes. Same problem: https://docs.microsoft.com/en-us/windows/desktop/psapi/enumerating-all-processes Corinna -- Corinna Vinschen Cygwin Maintainer [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Privilege(s) needed to run top command 2019-03-12 20:59 ` Corinna Vinschen @ 2019-03-12 21:50 ` Andrey Repin 0 siblings, 0 replies; 32+ messages in thread From: Andrey Repin @ 2019-03-12 21:50 UTC (permalink / raw) To: Corinna Vinschen, cygwin Greetings, Corinna Vinschen! > On Mar 12 23:35, Andrey Repin wrote: >> Greetings, Corinna Vinschen! >> >> > This was complete nonsense. >> >> > Actually, the problem was entirely in Cygwin's ps.exe, and it's a >> > long-standing problem at that. >> >> > While the Cygwin DLL collected the complete process list for ps, ps then >> > didn't print any process it failed to call OpenProcess on. These are a >> > *lot* of processes and the result looked a lot like the list of >> > processes in or connected to the current session. >> >> > The reason for this behaviour was that the image path of a process could >> > only be fetched when opening the process. Today I found new >> > functionality since Vista which allows to fetch the image path without >> > having to open the process, so `ps -W' will print all processes again, >> > just as in the good old XP times :} >> >> Err, but why? PSAPI was available since… a long time since. >> And it is public API except for isolated processes. > Same problem: > https://docs.microsoft.com/en-us/windows/desktop/psapi/enumerating-all-processes My bad. I checked the code on hand, but missed that last OpenProcess call. My code working with visible windows and, indeed, is unable to catch elevated window's path. -- With best regards, Andrey Repin Wednesday, March 13, 2019 0:37:12 Sorry for my terrible english... -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Privilege(s) needed to run top command 2019-03-12 17:13 ` Corinna Vinschen 2019-03-12 17:19 ` jwang 2019-03-12 17:39 ` Corinna Vinschen @ 2019-03-12 18:10 ` Houder 2 siblings, 0 replies; 32+ messages in thread From: Houder @ 2019-03-12 18:10 UTC (permalink / raw) To: cygwin On Tue, 12 Mar 2019 18:13:39, Corinna Vinschen wrote: > On Mar 12 10:00, jwang wrote: > > Sir, > > Nope. > > > I download, this morning: > > 3132 -rw-r--r-- 1 james None 3207004 Mar 12 10:50 cygwin-20190312.tar.xz (Sigh) James, please, please, read this: https://cygwin.com/faq.html#faq.what.who The person you are communicating w/ is Corinna V. Then, read this, please! https://en.wikipedia.org/wiki/Corinne_(name) Subsequently, read this part of the FAQ: https://cygwin.com/faq.html#faq.setup.snapshots An URL to which is referred at the bottom of https://cygwin.com/snapshots/ Henri -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Privilege(s) needed to run top command 2019-03-12 17:06 ` jwang 2019-03-12 17:13 ` Corinna Vinschen @ 2019-03-12 19:27 ` Achim Gratz 2019-03-13 9:17 ` jwang 1 sibling, 1 reply; 32+ messages in thread From: Achim Gratz @ 2019-03-12 19:27 UTC (permalink / raw) To: cygwin jwang writes: > tar -xvf cygwin-20190312.tar.xz Well, if that didn't give you an error you now have an unused Cygwin DLL in whatever directory you extracted the tar in. How about you actually read how it's done? https://cygwin.com/faq.html#faq.setup.snapshots Regards, Achim. -- +<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+ Factory and User Sound Singles for Waldorf rackAttack: http://Synth.Stromeko.net/Downloads.html#WaldorfSounds -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Privilege(s) needed to run top command 2019-03-12 19:27 ` Achim Gratz @ 2019-03-13 9:17 ` jwang 2019-03-15 10:20 ` jwang 0 siblings, 1 reply; 32+ messages in thread From: jwang @ 2019-03-13 9:17 UTC (permalink / raw) To: cygwin Thank you all for your helps. -- Sent from: http://cygwin.1069669.n5.nabble.com/Cygwin-list-f3.html -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Privilege(s) needed to run top command 2019-03-13 9:17 ` jwang @ 2019-03-15 10:20 ` jwang 2019-03-15 11:28 ` Corinna Vinschen 0 siblings, 1 reply; 32+ messages in thread From: jwang @ 2019-03-15 10:20 UTC (permalink / raw) To: cygwin Update: top works perfectly if I login to the machine locally as a non-administrator. it still does not show load average correctly (always 0) if ssh to the box as a non-administrator user. Thank you. -- Sent from: http://cygwin.1069669.n5.nabble.com/Cygwin-list-f3.html -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Privilege(s) needed to run top command 2019-03-15 10:20 ` jwang @ 2019-03-15 11:28 ` Corinna Vinschen 2019-03-15 12:34 ` jwang 0 siblings, 1 reply; 32+ messages in thread From: Corinna Vinschen @ 2019-03-15 11:28 UTC (permalink / raw) To: cygwin [-- Attachment #1: Type: text/plain, Size: 355 bytes --] On Mar 15 03:20, jwang wrote: > Update: > > top works perfectly if I login to the machine locally as a > non-administrator. > > it still does not show load average correctly (always 0) if ssh to the box > as a non-administrator user. https://cygwin.com/ml/cygwin/2019-03/msg00303.html Corinna -- Corinna Vinschen Cygwin Maintainer [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Privilege(s) needed to run top command 2019-03-15 11:28 ` Corinna Vinschen @ 2019-03-15 12:34 ` jwang 2019-03-15 13:38 ` Corinna Vinschen 0 siblings, 1 reply; 32+ messages in thread From: jwang @ 2019-03-15 12:34 UTC (permalink / raw) To: cygwin It is "Windows 10" Home edition - not sure how to do that yet Thanks a lot for your help indeed. -- Sent from: http://cygwin.1069669.n5.nabble.com/Cygwin-list-f3.html -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Privilege(s) needed to run top command 2019-03-15 12:34 ` jwang @ 2019-03-15 13:38 ` Corinna Vinschen 2019-03-15 13:50 ` jwang 2019-03-15 14:11 ` jwang 0 siblings, 2 replies; 32+ messages in thread From: Corinna Vinschen @ 2019-03-15 13:38 UTC (permalink / raw) To: cygwin [-- Attachment #1: Type: text/plain, Size: 254 bytes --] On Mar 15 05:34, jwang wrote: > It is "Windows 10" Home edition - not sure how to do that yet > Thanks a lot for your help indeed. net localgroup 'Performance Monitor Users' <username> /add Corinna -- Corinna Vinschen Cygwin Maintainer [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Privilege(s) needed to run top command 2019-03-15 13:38 ` Corinna Vinschen @ 2019-03-15 13:50 ` jwang 2019-03-15 14:11 ` jwang 1 sibling, 0 replies; 32+ messages in thread From: jwang @ 2019-03-15 13:50 UTC (permalink / raw) To: cygwin Thank you very much. -- Sent from: http://cygwin.1069669.n5.nabble.com/Cygwin-list-f3.html -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Privilege(s) needed to run top command 2019-03-15 13:38 ` Corinna Vinschen 2019-03-15 13:50 ` jwang @ 2019-03-15 14:11 ` jwang 2019-03-15 14:53 ` Corinna Vinschen 1 sibling, 1 reply; 32+ messages in thread From: jwang @ 2019-03-15 14:11 UTC (permalink / raw) To: cygwin Thank you greatly. top works beautifully as it did before: top - 14:10:07 up 18:38, 1 user, load average: 1.04, 1.00, 1.00 Tasks: 8 total, 1 running, 7 sleeping, 0 stopped, 0 zombie %Cpu0 : 0.0/3.2 3[|| ] %Cpu1 : 0.0/11.4 11[|||||||| ] %Cpu2 : 0.0/3.2 3[|| ] %Cpu3 : 0.8/3.3 4[||| ] GiB Mem : 60.7/3.834 [ ] GiB Swap: 5.1/0.688 [ -- Sent from: http://cygwin.1069669.n5.nabble.com/Cygwin-list-f3.html -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple ^ permalink raw reply [flat|nested] 32+ messages in thread
* Re: Privilege(s) needed to run top command 2019-03-15 14:11 ` jwang @ 2019-03-15 14:53 ` Corinna Vinschen 0 siblings, 0 replies; 32+ messages in thread From: Corinna Vinschen @ 2019-03-15 14:53 UTC (permalink / raw) To: jwang; +Cc: cygwin [-- Attachment #1: Type: text/plain, Size: 938 bytes --] On Mar 15 07:11, jwang wrote: > Thank you greatly. top works beautifully as it did before: > top - 14:10:07 up 18:38, 1 user, load average: 1.04, 1.00, 1.00 > Tasks: 8 total, 1 running, 7 sleeping, 0 stopped, 0 zombie > %Cpu0 : 0.0/3.2 3[|| > ] > %Cpu1 : 0.0/11.4 11[|||||||| > ] > %Cpu2 : 0.0/3.2 3[|| > ] > %Cpu3 : 0.8/3.3 4[||| > ] > GiB Mem : 60.7/3.834 [ > ] > GiB Swap: 5.1/0.688 [ Great! I'll release Cygwin 3.0.4 pretty soon now. Corinna -- Corinna Vinschen Cygwin Maintainer [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 833 bytes --] ^ permalink raw reply [flat|nested] 32+ messages in thread
end of thread, other threads:[~2019-03-15 14:53 UTC | newest] Thread overview: 32+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2019-03-11 16:56 Privilege(s) needed to run top command jwang 2019-03-11 20:29 ` L A Walsh 2019-03-11 20:41 ` Achim Gratz 2019-03-11 21:28 ` Corinna Vinschen 2019-03-11 21:40 ` Achim Gratz 2019-03-12 0:20 ` Andrey Repin 2019-03-12 8:58 ` Corinna Vinschen 2019-03-12 9:48 ` jwang 2019-03-12 11:14 ` Corinna Vinschen 2019-03-12 12:01 ` jwang 2019-03-12 12:39 ` Houder 2019-03-12 15:51 ` jwang 2019-03-12 16:47 ` Corinna Vinschen 2019-03-12 17:06 ` jwang 2019-03-12 17:13 ` Corinna Vinschen 2019-03-12 17:19 ` jwang 2019-03-12 17:40 ` Corinna Vinschen 2019-03-12 17:39 ` Corinna Vinschen 2019-03-12 20:28 ` Corinna Vinschen 2019-03-12 20:50 ` Andrey Repin 2019-03-12 20:59 ` Corinna Vinschen 2019-03-12 21:50 ` Andrey Repin 2019-03-12 18:10 ` Houder 2019-03-12 19:27 ` Achim Gratz 2019-03-13 9:17 ` jwang 2019-03-15 10:20 ` jwang 2019-03-15 11:28 ` Corinna Vinschen 2019-03-15 12:34 ` jwang 2019-03-15 13:38 ` Corinna Vinschen 2019-03-15 13:50 ` jwang 2019-03-15 14:11 ` jwang 2019-03-15 14:53 ` Corinna Vinschen
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).