Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to maximize the speed of the connections by using more of the available RAM that we have in our server (there's 4GB worth). What files would I need to edit, what directives would I need to add, etc.? How difficult would it be to implement something like this?

share|improve this question
up vote 4 down vote accepted

Linux will automatically manage and use the available memory for caches that speed up Samba (or any other I/O operation really). What you can do is tune swappiness and how the kernel will deal with those caches and buffers. You can read this for understanding/tuning swappiness and this about buffer invalidation and times.

A good reference for other performance tunings on samba is the O'Reilly book, there's a part of it online here

share|improve this answer
In addition, you can improve performance if you use appropriate block sizes, aligned blocks and read-ahead settings for the block devices - disk, raid, lvm. – Zrin May 16 '12 at 18:34

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.