idle_timeout processing in the parent smbd?

James Peach jpeach at samba.org
Mon Jun 4 18:40:38 GMT 2007


On Jun 4, 2007, at 11:17 AM, simo wrote:

> On Mon, 2007-06-04 at 19:45 +0200, Volker Lendecke wrote:
>> On Mon, Jun 04, 2007 at 07:39:55PM +0200, Volker Lendecke wrote:
>>> BTW, I find the concept that some daemon creates the
>>> listening socket for us quite strange. inetd, that's
>>> something I see, but doing the listen and not do the fork? I
>>> don't know...
>>
>> Another question: How does this play with the Samba4 model
>> which listens on a ton of ports?
>
> Personally I think that running samba out of inetd is a bad idea in
> general.
> Just make samba4 run in single mode, so that it does not spawn more
> process and disable the subsystems you don't need and you achieve  
> almost
> the same goal as having it running from inetd.
>
> Is there any other reason to run something off of inetd besides a
> perceived save of resources?

I'd argue that it's an actual saving of resources (for some use  
cases). smbd is 6MB on my system, nmbd is 2MB and winbindd is 4MB. So  
running these cost ~12MB of some combination of swap space and  
physical memory. For a desktop machine, that might only get 1 or 2  
connections a day, that is a useful saving, especially once you start  
adding the saving up across multiple projects.

inetd mode is just fine for desktop usage, but it's too expensive for  
servers that have to handle numbers of simultaneous connection.

--
James Peach | jpeach at samba.org



More information about the samba-technical mailing list