Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

Quotas of Samba process

 
SOLVED
Go to solution
Antoniov.
Honored Contributor

Quotas of Samba process

I installed Samba and after some modification it's works almost fine.
The main limitation, at moment, is server too slow. I compared Advanced Server and Samba and discovered some quota differences.
For example, Advanced Server daemon run with buffered and direct I/O set to 32767.
It tryed run Samba daemon with same quotas but I can't do it.
The samba script is:
$ run/detached -
/input=samba_exe:nmbd_startup.com -
/output=samba_root:[var]nmbd_startup.log -
/uic=system
/process_name=NMBD -
sys$system:loginout.exe
In this case, NMBD use PQL_D* values.
If I add /authorize, process use value in SYSAUF.
So I have to select among some solution, but I'm not about best praticse.
I'm intrigued by your ideas.

TIA
Antonio Vigliotti
Antonio Maria Vigliotti
22 REPLIES
Kris Clippeleyr
Honored Contributor

Re: Quotas of Samba process

Antonio,
Just a warning, if /AUTHORIZE is specified then /UIC is ignored.
FWIW.
Kris (aka Qkcl)
I'm gonna hit the highway like a battering ram on a silver-black phantom bike...
Antoniov.
Honored Contributor

Re: Quotas of Samba process

Chris,
I start samba with SYSTEM accont, so it's no problem. However, I didn't remember this limitation.

Antonio Vigliotti

Antonio Maria Vigliotti
Ian Miller.
Honored Contributor

Re: Quotas of Samba process

I like to specify the quotas on the command line
RUN/AST_LIMIT=quota/BUFFER_LIMIT=quota
etc
/AUTHORIZE says use the quotas from the username (the process owner i.e. you)
____________________
Purely Personal Opinion
Antoniov.
Honored Contributor

Re: Quotas of Samba process

Ian,
let me to be more specific.
I modified run command with /io_dir=/io_buf and other values but this didn't work.
Looked more carefully at code and saw inside nmbd_startup there is another run.
This is the code:
$ nmbd :== $samba_root:[bin]nmbd
$ opt = f$trnlnm("SAMBA_NMBD_OPTIONS")
$ nmbd "-d1" 'opt'
How you can see, nmbd receive some qualifier so i can't use run with usually qualifiers.
Again I can't give a value greater than my account (if /authorize). I want give DIO=32767 but I don't want modify SYSTEM account with this value.

Antonio Vigliotti
Antonio Maria Vigliotti
Volker Halle
Honored Contributor

Re: Quotas of Samba process

Antonio,

do you really believe that running NMBD with /IO_BUFFER or /IO_DIRECT=32767 will do any good ???

These quotas limit the number of CURRENTLY OUTSTANDING buffered or direct IOs for the process.

If NMBD would run against any of those limits, it will enter the MWAIT or MUTEX state. You could also have a look at the remaining BUFIO or DIRIO quota at any time using SHOW PROC/QUOTA/ID=. If those numbers get near ZERO, then that would need to get you worried...

Volker.
David Jones_21
Trusted Contributor

Re: Quotas of Samba process

Samba uses one process per client connection so I don't think you need high quotas the way you do for a multi-threaded daemon. The NMBD process is lanman browser function and isn't in the critical path. The advanced server uses special file system features to speed up access, I don't know if they are available for the Samba port.
I'm looking for marbles all day long.
Bojan Nemec
Honored Contributor

Re: Quotas of Samba process

Antonio,

The first run ($ run/detached...) creates a process where quotas are set, the second run ($ nmbd "-d1" 'opt') runs an image which takes quotas from the owner process.

Bojan
Antoniov.
Honored Contributor

Re: Quotas of Samba process

Volker,
BIO and DIO limit are just an example. I'm comparing pathwork server and samba daemon. For both values, Pathwork set value = 32767. You are right, these worth may be dangerous! However I need to supply big values for some quotas.

David,
thank you for your precious information. This difference can help me to understan why server runs slow.

Bojan,
I know it. Question is: how can I supply big quotas?

Just for your knowlege, setting prio=13 makes server more quicker but not enough for good use.

Antonio Vigliotti
Antonio Maria Vigliotti
Bojan Nemec
Honored Contributor

Re: Quotas of Samba process

Antonio,

David is right. NMBD is lanman browser. The real work is made by the service SMBD which is defined in TCPIP.
The process changes the owner to its VMS user. I dont know how is this done (a quick look to the sources was not succesful ;)

Bojan
Volker Halle
Honored Contributor

Re: Quotas of Samba process

Antonio,


The main limitation, at moment, is server too slow


Just arbitrarily changing process quotas would not make anything faster, if the process does not even deplete those quotas during operations.

I've played with SAMBA V2.2.8 recently and the file copy performance was acceptable when compared with FTP. Directory lookup and browsing large directories is another story...

Could you elaborate which operation you found to be 'too slow' ?

Volker.
Antoniov.
Honored Contributor

Re: Quotas of Samba process

Volker,
I'm playing with Samba 2.2.8 too and comparing with Advanced Server.
You are right about file copy but browsing, navigation and first open of share are not acceptable.
I'm also trying working office application (like word or excel) directly into shared directory.

Antonio Vigliotti
Antonio Maria Vigliotti
Volker Halle
Honored Contributor

Re: Quotas of Samba process

Antonio,

there are 2 mechanisms in SAMBA, which cause a performance penalty when handling/browsing/opening large directories:

- when accessing a file in any directory for the first time, SAMBA will fill it's directory cache, building a simple list of all file names within this directory. This list is used to later speed up wildcard accesses in that directory. Depending on the no. of files in the directory, building the file name list can take a while.

- when browsing a directory, SAMBA also fills it's stat (file) cache. As a Windows directory entry expects information like file access dates, file size etc. in addition to just the file name, this information needs to be obtained from the individual file headers in OpenVMS - again a somewhat IO intensive operation under OpenVMS.

Once the stat (file) cache is filled, things are getting a little better. But there are 2 problems with SAMBA V2.2.8 here:

* the stat cache handling of the directory tree is broken. This will cause the same file to be entered twice in different directories cache entries (once with /000000 included and once without). This causes the stat cache to not become effective starting the 3rd access to the directory. This is fixed in SAMBA V2.2.12.

* the no. of entries in the stat cache is limited to 16k files per directory. Once your directory grows beyond that no. of files, things get worse...

If you can keep the directory size small, SAMBA works quite well.

Volker.
Peter Quodling
Trusted Contributor

Re: Quotas of Samba process

When you get it all done, it would be nice to see/hear a detailed how to. There isn't much info on SAMBA on VMS, and the only things that I have heard are a) that it is tricky to get going, and b) there hasn't been a new release for some time.

q
Leave the Money on the Fridge.
Antoniov.
Honored Contributor

Re: Quotas of Samba process

Volker,
your explanation is clear. I have to modify source of Samba to solve. You refer to V2.2.12 but I don't find that version of Samba on VMS. Where can I find it?

Antonio Vigliotti
Antonio Maria Vigliotti
Volker Halle
Honored Contributor

Re: Quotas of Samba process

Antonio,

I had received V2.2.12 from HP directly for a certain project. It seems to have once been made available by John M.

http://eisner.encompasserve.org/~malmberg/samba/

but it's not there anymore. Maybe you can ask John...

Volker.
Antoniov.
Honored Contributor

Re: Quotas of Samba process

Volker,
I write to John M. because I'm pleased to participate on development of new version of Samba.

Antonio Vigliotti
Antonio Maria Vigliotti
Ian Miller.
Honored Contributor

Re: Quotas of Samba process

I expect somewhere in hp someone is working on Samba V3 on VMS. Parhaps John knows more.
____________________
Purely Personal Opinion
Antoniov.
Honored Contributor

Re: Quotas of Samba process

Ian,
me too.

Antonio Vigliotti
Antonio Maria Vigliotti
Antoniov.
Honored Contributor

Re: Quotas of Samba process

Ian,
off topic ...
I'm pleased to add some your link on new Italian OpenVMS comunity in section Friends of VMS.
If you like it send me
antoniov (at) shs-av.it
your favorite link

Antonio
Antonio Maria Vigliotti
Duane Sadowski
Frequent Advisor

Re: Quotas of Samba process

FWIW - I noticed an HP roadmap document that has references to Samba 3.x and Samba 4.x:

http://h71000.www7.hp.com/openvms/roadmap/openvms_roadmaps_files/openvms_roadmaps.pdf
See page 38

- Duane Sadowski
Peter Quodling
Trusted Contributor

Re: Quotas of Samba process

Has anyone found a real pointer to a VMS Version of 2.2.12 (or V3 or V4 prior to HP doing them...)

q
Leave the Money on the Fridge.
Volker Halle
Honored Contributor
Solution

Re: Quotas of Samba process

Antonio,

a SAMBA V2.2.12 source kit for OpenVMS has now re-appeared on John Malmberg's WEB site:

http://eisner.encompasserve.org/~malmberg/samba/

SAMBA_2_2_12-V82-SRC-20041031.ZIP

This version should build and run fine on OpenVMS Alpha and Itanium up to V8.2.

Volker.