REG: Memory usage of pppd

View: New views
5 Messages — Rating Filter:   Alert me  

REG: Memory usage of pppd

by Ramachandra :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,


I have installed pptpd-1.3.0 on my Linux machine (FC 5). ppp version is ppp-2.4.4b1.
I am able to connect to my PPTP server from a windows client. Communication is taking place and everything is fine. The problem is pppd is taking about 1500 k for each connection.

Is there any way we can reduce the memory usage by pppd? I tried with turning off MULTILINK and TDB, but the memory usage remains same. Please let me know if there is any other way.

Thanks and Regards,
Ramachandra

         


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Poptop-server mailing list
Poptop-server@...
https://lists.sourceforge.net/lists/listinfo/poptop-server

Re: REG: Memory usage of pppd

by James Cameron-8 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You really should be asking the PPP mailing list this, it has nothing
much to do with pptpd!

Also, what method are you using to measure pppd memory usage?  I would
use VmRSS in /proc/${PID}/status, and for more detail I would look at
the segments in /proc/${PID}/smaps ... because most of pppd would be
shared between each of several connections.

--
James Cameron
http://quozl.linux.org.au/

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Poptop-server mailing list
Poptop-server@...
https://lists.sourceforge.net/lists/listinfo/poptop-server

Re: REG: Memory usage of pppd

by Ramachandra :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Thanks a lot for the reply. I checked /proc/$PID/smaps and there were a lot of details, which gave me a good start.. According to the smaps, the amount of private memory per each connection is around 600 KB.  I would still like to bring that down, but it has given me something to proceed!
Thanks once again


regards,
Ramachandra
--- On Thu, 8/6/09, James Cameron <quozl@...> wrote:

From: James Cameron <quozl@...>
Subject: Re: [Poptop-server] REG: Memory usage of pppd
To: "Ramachandra M" <poptopserver@...>
Cc: poptop-server@...
Date: Thursday, August 6, 2009, 3:23 AM

You really should be asking the PPP mailing list this, it has nothing
much to do with pptpd!

Also, what method are you using to measure pppd memory usage?  I would
use VmRSS in /proc/${PID}/status, and for more detail I would look at
the segments in /proc/${PID}/smaps ... because most of pppd would be
shared between each of several connections.

--
James Cameron
http://quozl.linux.org.au/


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Poptop-server mailing list
Poptop-server@...
https://lists.sourceforge.net/lists/listinfo/poptop-server

Re: REG: Memory usage of pppd

by James Cameron-8 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Aug 12, 2009 at 10:03:05PM -0700, Ramachandra M wrote:
> According to the smaps, the amount of
> private memory per each connection is around 600 KB.

That still seems excessive, but not unusual.  You could produce a linker
map listing of pppd to determine what that memory is used for.

> I would still like to bring that down, but it has given me something
> to proceed!

Have you considered the PPTP kernel module?  I don't think it is merged
with the kernel yet, but I've heard of people using it.  I imagine it
would have a particularly low per-user memory cost.

--
James Cameron
http://quozl.linux.org.au/

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Poptop-server mailing list
Poptop-server@...
https://lists.sourceforge.net/lists/listinfo/poptop-server

Re: REG: Memory usage of pppd

by Charlie Brady-13 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On Thu, 13 Aug 2009, James Cameron wrote:

> > I would still like to bring that down, but it has given me something
> > to proceed!
>
> Have you considered the PPTP kernel module?  I don't think it is merged
> with the kernel yet, but I've heard of people using it.  I imagine it
> would have a particularly low per-user memory cost.

The kernel module wouldn't do anything for pppd memory usage though. AIUI,
it's main benefit is in reducing CPU usage in dispatching back and forth
between pppd and pptpd.


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Poptop-server mailing list
Poptop-server@...
https://lists.sourceforge.net/lists/listinfo/poptop-server