
'top(1)' tells me that my ppp connection from the console (while in X) takes significantly less memory than kppp: ------------------------------------------------------------------- # X usage for comparison PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 390 root 18 0 16880 9268 3444 R 3.6 7.3 8:12.19 X # dial-up connection via console PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 24477 root 8 0 876 872 732 S 0.0 0.7 0:00.01 pppd # and then later dial-up connection via kppp PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 25070 sns 9 0 13012 12m 11m S 0.0 10.3 0:01.34 kppp 25071 root 9 0 8080 8080 7624 S 0.0 6.4 0:00.01 kppp ------------------------------------------------------------------- Any advice will be appreciated. (I know what Craig's thinking :) Cheers, Sid.

Well, given that ppp is handled by the kernel, I would guess that once the link is up, pppd doesn't actually do a hell of a lot. Given that it's a console app, probably linking to libc6 for most of that stuff anyway, would lead me to believe that it's basically a shell (a very important one mind you), where as kppp has a whole bunch of monitoring crap (mostly kernel stuff, but it's there), and most importantly, a GUI to deal with. I also think (but am not sure) that the mem usage reported there is shared ram. Someone care to correct/back me up? Edward On Wed, 2003-08-06 at 17:29, S Swami wrote:
'top(1)' tells me that my ppp connection from the console (while in X) takes significantly less memory than kppp: ------------------------------------------------------------------- # X usage for comparison PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 390 root 18 0 16880 9268 3444 R 3.6 7.3 8:12.19 X
# dial-up connection via console PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 24477 root 8 0 876 872 732 S 0.0 0.7 0:00.01 pppd
# and then later dial-up connection via kppp PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 25070 sns 9 0 13012 12m 11m S 0.0 10.3 0:01.34 kppp 25071 root 9 0 8080 8080 7624 S 0.0 6.4 0:00.01 kppp -------------------------------------------------------------------
Any advice will be appreciated. (I know what Craig's thinking :)
Cheers, Sid.
_______________________________________________ wlug mailing list wlug(a)list.waikato.ac.nz http://list.waikato.ac.nz/mailman/listinfo/wlug

On Wed, Aug 06, 2003 at 06:05:30PM +1200, Edward Murrell wrote:
I also think (but am not sure) that the mem usage reported there is shared ram. Someone care to correct/back me up?
On Wed, 2003-08-06 at 17:29, S Swami wrote:
'top(1)' tells me that my ppp connection from the console (while in X) takes significantly less memory than kppp:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 25070 sns 9 0 13012 12m 11m S 0.0 10.3 0:01.34 kppp 25071 root 9 0 8080 8080 7624 S 0.0 6.4 0:00.01 kppp
Sounds about right. Shared memory normally means pages of memory that are shared with other processes. The best 2 examples of shared memory are where a process has forked and both parent and child are sharing the same pages, and dynamically loaded libraries. So your kppp is probably using 11 MB of qt and kde library code, which is also being used by other kde/qt apps. (I think :p) John.

On Wed, Aug 06, 2003 at 07:41:35PM +1200, John R. McPherson wrote:
On Wed, Aug 06, 2003 at 06:05:30PM +1200, Edward Murrell wrote:
I also think (but am not sure) that the mem usage reported there is shared ram. Someone care to correct/back me up?
Sounds about right. Shared memory normally means pages of memory that are shared with other processes. The best 2 examples of shared memory are where a process has forked and both parent and child are sharing the same pages, and dynamically loaded libraries. So your kppp is probably using 11 MB of qt and kde library code, which is also being used by other kde/qt apps.
Yes, that explains it. And adding up all the shared mem values from top(1) gives > 100%. (Sorry, I think a similar question has been asked on the list before too. Should have checked before asking.) Cheers, Sid.
participants (3)
-
Edward Murrell
-
John R. McPherson
-
S Swami