- Timestamp:
- Jun 22, 2008, 3:30:02 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/samba/docs/htmldocs/Samba3-Developers-Guide/architecture.html
r136 r137 1 <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Chapter 3. Samba Architecture</title><link rel="stylesheet" href="../samba.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.73.1"><link rel="start" href="index.html" title="SAMBA Developers Guide"><link rel="up" href="pt02.html" title="Part II. Samba Basics"><link rel="prev" href="pt02.html" title="Part II. Samba Basics"><link rel="next" href="debug.html" title="Chapter 4. The samba DEBUG system"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter 3. Samba Architecture</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="pt02.html">Prev</a> </td><th width="60%" align="center">Part II. Samba Basics</th><td width="20%" align="right"> <a accesskey="n" href="debug.html">Next</a></td></tr></table><hr></div><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="architecture"></a>Chapter 3. Samba Architecture</h2></div><div><div class="author"><h3 class="author"><span class="firstname">Dan</span> <span class="surname">Shearer</span></h3></div></div><div><p class="pubdate"> November 1997</p></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="sect1"><a href="architecture.html#id25781 11">Introduction</a></span></dt><dt><span class="sect1"><a href="architecture.html#id2578155">Multithreading and Samba</a></span></dt><dt><span class="sect1"><a href="architecture.html#id2578187">Threading smbd</a></span></dt><dt><span class="sect1"><a href="architecture.html#id2578248">Threading nmbd</a></span></dt><dt><span class="sect1"><a href="architecture.html#id2578294">nbmd Design</a></span></dt></dl></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2578111"></a>Introduction</h2></div></div></div><p>1 <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>Chapter 3. Samba Architecture</title><link rel="stylesheet" href="../samba.css" type="text/css"><meta name="generator" content="DocBook XSL Stylesheets V1.73.1"><link rel="start" href="index.html" title="SAMBA Developers Guide"><link rel="up" href="pt02.html" title="Part II. Samba Basics"><link rel="prev" href="pt02.html" title="Part II. Samba Basics"><link rel="next" href="debug.html" title="Chapter 4. The samba DEBUG system"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">Chapter 3. Samba Architecture</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="pt02.html">Prev</a> </td><th width="60%" align="center">Part II. Samba Basics</th><td width="20%" align="right"> <a accesskey="n" href="debug.html">Next</a></td></tr></table><hr></div><div class="chapter" lang="en"><div class="titlepage"><div><div><h2 class="title"><a name="architecture"></a>Chapter 3. Samba Architecture</h2></div><div><div class="author"><h3 class="author"><span class="firstname">Dan</span> <span class="surname">Shearer</span></h3></div></div><div><p class="pubdate"> November 1997</p></div></div></div><div class="toc"><p><b>Table of Contents</b></p><dl><dt><span class="sect1"><a href="architecture.html#id2578123">Introduction</a></span></dt><dt><span class="sect1"><a href="architecture.html#id2578167">Multithreading and Samba</a></span></dt><dt><span class="sect1"><a href="architecture.html#id2578199">Threading smbd</a></span></dt><dt><span class="sect1"><a href="architecture.html#id2578261">Threading nmbd</a></span></dt><dt><span class="sect1"><a href="architecture.html#id2578307">nbmd Design</a></span></dt></dl></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2578123"></a>Introduction</h2></div></div></div><p> 2 2 This document gives a general overview of how Samba works 3 3 internally. The Samba Team has tried to come up with a model which is … … 10 10 Is Samba secure when running on Unix? The xyz platform? 11 11 What about the root priveliges issue? 12 </p></li><li><p>Pros and cons of multithreading in various parts of Samba</p></li><li><p>Why not have a separate process for name resolution, WINS, and browsing?</p></li></ol></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id25781 55"></a>Multithreading and Samba</h2></div></div></div><p>12 </p></li><li><p>Pros and cons of multithreading in various parts of Samba</p></li><li><p>Why not have a separate process for name resolution, WINS, and browsing?</p></li></ol></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2578167"></a>Multithreading and Samba</h2></div></div></div><p> 13 13 People sometimes tout threads as a uniformly good thing. They are very 14 14 nice in their place but are quite inappropriate for smbd. nmbd is … … 27 27 that we use a separate process for each connection is one of Samba's 28 28 biggest advantages. 29 </p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id25781 87"></a>Threading smbd</h2></div></div></div><p>29 </p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2578199"></a>Threading smbd</h2></div></div></div><p> 30 30 A few problems that would arise from a threaded smbd are: 31 31 </p><div class="orderedlist"><ol type="1"><li><p> … … 52 52 we couldn't use the system locking calls as the locking context of 53 53 fcntl() is a process, not a thread. 54 </p></li></ol></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id25782 48"></a>Threading nmbd</h2></div></div></div><p>54 </p></li></ol></div></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2578261"></a>Threading nmbd</h2></div></div></div><p> 55 55 This would be ideal, but gets sunk by portability requirements. 56 56 </p><p> … … 79 79 complex structures) between the processes. We can't rely on each 80 80 platform having a shared memory system. 81 </p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2578 294"></a>nbmd Design</h2></div></div></div><p>81 </p></div><div class="sect1" lang="en"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a name="id2578307"></a>nbmd Design</h2></div></div></div><p> 82 82 Originally Andrew used recursion to simulate a multi-threaded 83 83 environment, which use the stack enormously and made for really
Note:
See TracChangeset
for help on using the changeset viewer.