UPC - FIB Facultat d’Informatica de Barcelona Informe Final career project at the CNES (National Space Study Centre) - Toulouse Spatial Centre Study of the Lustre file system performances before its installation in a computing Cluster Yann Chanel 12 rue des Filatiers 31000 TOULOUSE France Tél. : (+33)5 61 32 85 14 / (+33)6 08 50 89 32 [email protected] Option « Telematic Networks and Operating Systems » 18/02/2008 – 18/08/2008 CNES Centre Spatial de Toulouse Internship responsible 18 rue Edouard Belin M. Bertrand Legras 31401 Toulouse Cedex 9 Academic tutor FRANCE M. Josep Lluís Larriba Pey
- 2 -
- 3 - Contacts Anyone trying to contact the student can refer to the coordinates on the first page of this report. The internship manager can be contacted at the following address, telephone number, fax or email : Bertrand LEGRAS - BPi 3517 Centre National d’Etudes Spatiales 18 rue Edouard Belin 31401 TOULOUSE Cedex 9 France Tel: (+33)5 61 27 32 81 / Fax: (+33)5 61 28 18 93 E-mail:
[email protected]
- 4 - Table of contents 1. Abstract ............................................................................................................................ - 6 - 2. Acknowledgements .......................................................................................................... - 6 - 3. Introduction ...................................................................................................................... - 6 - 3.1. Aim of the internship ............................................................................................... - 6 - 3.2. Summary .................................................................................................................. - 7 - 4. The CNES ......................................................................................................................... - 7 - 4.1. Overview .................................................................................................................. - 7 - 4.2. The Toulouse Space Centre (CST) .......................................................................... - 8 - 4.3. The DSI .................................................................................................................... - 8 - 5. Methodology and tests requirements ................................................................................ - 8 - 5.1. Methodology ............................................................................................................ - 8 - 5.2. Comparison tests ...................................................................................................... - 9 - 5.3. Cluster tests .............................................................................................................. - 9 - 5.4. Configuration tests ................................................................................................. - 10 - 6. The Lustre File System ................................................................................................... - 10 - 6.1. Overview and objectives ........................................................................................ - 10 - 6.2. Lustre version ........................................................................................................ - 10 - 6.3. Lustre Clusters ....................................................................................................... - 11 - 6.4. Lustre installation .................................................................................................. - 12 - 7. Platform initial configuration ......................................................................................... - 12 - 8. Initial bottlenecks and platform improvements .............................................................. - 13 - 8.1. Bandwidth improvement ........................................................................................ - 13 - 8.2. Storage Area Network ........................................................................................... - 14 - 8.2.1. Introduction ....................................................................................................... - 14 - 8.2.2. Installation ......................................................................................................... - 15 - 8.2.3. Performances ..................................................................................................... - 16 - 8.3. Comparing Lustre kernel and “original” Linux kernel .......................................... - 16 - 8.4. A mix of disk and SAN for Lustre data nodes ....................................................... - 17 - 9. Comparison tests ............................................................................................................ - 18 - 9.1. Cache efficiency .................................................................................................... - 18 - 9.1.1. Iozone and the caches effects ............................................................................ - 18 - 9.1.2. Comparing Lustre to ext3, ext2, and NFS ......................................................... - 18 - 9.2. Local throughput .................................................................................................... - 20 - 9.2.1. The ext2 ‘pre-empted commit’ .......................................................................... - 20 - 9.2.2. Results ............................................................................................................... - 21 - 9.2.3. Bottlenecks ........................................................................................................ - 22 - 9.3. Remote throughput ................................................................................................ - 23 - 9.3.1. Results with a Gigabit Ethernet network ........................................................... - 23 - 9.3.2. Network bonding ............................................................................................... - 24 - 9.3.3. Comparing Lustre, NFS and FTP ...................................................................... - 24 - 9.3.4. Overhead ........................................................................................................... - 26 - 9.3.5. Behaviour depending on the file sizes ............................................................... - 26 - 9.4. Access time results................................................................................................. - 27 - 9.4.1. Local performances ........................................................................................... - 27 - 9.4.2. Remote performances ........................................................................................ - 28 - 9.5. Parallel tasks .......................................................................................................... - 28 - 9.6. Conclusion ............................................................................................................. - 29 - 10. Cluster tests ................................................................................................................ - 30 - 10.1. Computing machines overview.............................................................................. - 30 - 10.1.1. Calc-gen5 ...................................................................................................... - 30 - 10.1.2. Calculx .......................................................................................................... - 30 - 10.1.3. Linux ............................................................................................................. - 31 -
- 5 - 10.2. Limitations ............................................................................................................. - 31 - 10.3. Throughput ............................................................................................................ - 31 - 10.4. Cache efficiency .................................................................................................... - 32 - 10.5. Access time ............................................................................................................ - 33 - 10.6. Conclusion ............................................................................................................. - 34 - 11. Configuration tests ..................................................................................................... - 35 - 11.1. Scheduler ............................................................................................................... - 35 - 11.1.1. Test overview ................................................................................................ - 35 - 11.1.2. Client scheduler ............................................................................................. - 35 - 11.1.3. OST server scheduler .................................................................................... - 35 - 11.2. Client I/O RPC Stream tunables ............................................................................ - 36 - 11.3. Different Lustre configurations.............................................................................. - 37 - 12. Synthesis .................................................................................................................... - 37 - 13. Time repartition .......................................................................................................... - 37 - 14. Conclusion ................................................................................................................. - 38 - 15. References .................................................................................................................. - 39 - APPENDIX I PERFORMANCE MEASUREMENT TOOLS 1. Iozone ............................................................................................................................. - 43 - 1.1. Main options .......................................................................................................... - 43 - 1.2. Multi-process and multi-threads ............................................................................ - 44 - 2. The ‘dd’ command ......................................................................................................... - 44 - 3. FTP throughput ............................................................................................................... - 45 - 4. Access time measuring commands ................................................................................. - 46 - 5. I/O Kit ............................................................................................................................. - 46 - APPENDIX II COMPARING IOZONE AND ‘DD’ RESULTS 1. Local throughput ............................................................................................................ - 47 - 2. Remote throughput ......................................................................................................... - 48 - 3. Schedulers....................................................................................................................... - 50 - 3.1. Client scheduler ..................................................................................................... - 50 - 3.2. OST server scheduler ............................................................................................. - 51 - APPENDIX III MORE RESULTS 1. Comparing disk and SAN results ................................................................................... - 53 - 1.1. Buffer cache ........................................................................................................... - 53 - 1.2. Local throughput .................................................................................................... - 54 - 1.3. Remote throughput ................................................................................................ - 55 - 1.4. Access time ............................................................................................................ - 56 - 2. Comparing client and server machines ........................................................................... - 57 -
- 6 - 1. Abstract The subject of this internship report is the performance evaluation of a Cluster file system called Lustre, before its installation into a computing Cluster, or other computing systems. Performance evaluation includes benchmarks, comparison to other file systems (ext3, NFS), and study of tuning possibilities. In this report we first present the file system Lustre, and then we explain how the tests were driven, including the methodology of the tests, the installation of the test platform, and a preliminary research of the main bottlenecks. Three types of benchmarks have been driven: read/write of big files, including both sequential and random access, in order to test the throughput; read/write of small files, in order to test the cache efficiency; and creation/deletion of empty files, in order to test the access times. The aim is to see in which cases it is convenient to use the Lustre file system. Keywords: Lustre, ext3, NFS, file system, benchmark, access time, throughput, Cluster, Storage Area Network (SAN). 2. Acknowledgements I worked in a very pleasant team, in which I was well integrated and with whom I had a lot of fun. For this I would like to thank the chief of the service François Jocteur-Monrozier, and all my workmates: Corinne Michau, Stephanie Marel, Bruno “Rabbit” Vidal, John Moyard, Pascal Richard, Michel Hummel, and, last but not least, Philippe Cam-Halot. I would like to thank also Cathy Mazier, who made my life at the CNES easier by helping me for a lot of peanuts, my school tutor Franck Rousseau, who gave me some advice about this report, Celia Picard and Nicole Levy, who spent some time reading and correcting this report. A very special thank to my CNES tutor Bertrand Legras who took care of me, and tried to do his best for me, despite of all the work he had. 3. Introduction 3.1. Aim of the internship The aim of the project is to study a new file system that will be used in a computing Cluster, and to compare it to others already in use at the CNES. Hence, the project comes in the direct line of the need to be aware of new technologies. The file system to study is a Cluster file system called Lustre, and its documentation is available at http://www.clusterfs.com . The project should start by the installation of the file system on a test platform. Once this step is done, a performance testing protocol must be defined and then executed on this system. These tests must include representative benchmarks.
- 7 - As these tests may not be really representative of the real systems use, some tests must be carried out on the system in use. Then the same tests should be run on others file systems like Network File System 1 (NFS) and General Parallel File System (GPFS), which are both already in use at the CNES, and results must be compared to those obtained from Lustre. Moreover, it will be interesting to compare the Lustre file system to ext2 and ext3, which are the most common file systems, and then compare the Lustre protocol to other common protocols allowing file sharing on remote file servers: NFS and FTP. The final report shall include the tests results and their interpretation, and provide recommendations to choose the right solution and the best configuration possible. 3.2. Summary Now we have explained the aim of the internship, we will introduce the CNES in paragraph 4. Our work will be first explained first in paragraph 5, with the applied methodology and the objectives. Paragraph 6 explains the Lustre mechanism, and its installation on the test platform. Then, paragraph 7 explains the configuration of the test platform, and paragraph 8 reports a preliminary study of the test platform, and the modification to bring in order to eliminate the main bottlenecks. Then come the different results. We will present the tests results on both test platform and computing systems, on paragraphs 9 and 910. Paragraph 11 is about the file system tuning, explaining what can be tuned, and how to gain efficiency. A synthesis of these tests is given in paragraph 12. At last the time repartition of the internship will be explained in paragraph 13, and the last paragraph will be dedicated to a conclusion about the internship. 4. The CNES 4.1. Overview The National Centre for Spatial Studies (CNES) was founded in 1961. It is a public agency, in charge of shaping, and implementing the French spatial policy inside the European Union. Its role also consists in the coordination of the French participation to the European Spatial Agency (ESA), for which it designed and tested the Ariane rockets. Its budget is around 1 700 M€, of which almost 40% goes to the ESA. The CNES employs around 2500 workers, dispensed over 4 different sites: Kourou (in French Guyana), Paris and Evry, each one with around 250 employees, and Toulouse, the biggest one with more than 1700 employees. 1 Documentation available at http://nfs.sourceforge.net
- 8 - 4.2. The Toulouse Space Centre (CST) There are around 2500 people working at the CST, including CNES employees, affiliates companies employees and external firms employees (like Thalès, IBM, Sun Microsystems, etc). The activity mainly consists in the management and the exploitation of the current projects and the preparation of the future ones. The activity of the CST is divided in six missions: 1. Prepare the programs of the future 2. Bring support to the development of space techniques 3. Lead the programs being developed 4. Exploit the operational systems 5. Carry out some heavy means 6. Teaching and knowledge spreading Part of the last one is accomplished through internships. 4.3. The DSI The role of the Direction of Computer Science System (DSI) is to provide a computer science support to the internal users of the information system, and to offer them a big variety of technical services. The Exploitation and Architecture sub-direction is part of the DSI, and it is composed of five departments, one of them being the Computer Science Architecture service. That is the service I worked in, with 16 other employees. The mission of the people working in this service is to define the ground systems architectures and to implement them. For each project, their role is to find some architectural solutions, then to study their efficiency, their cost, and technical specifications, and once an architecture is chosen, to organize its exploitation with other services of the CNES. To offer the best solutions, the computer science architect must be aware of new technologies. 5. Methodology and tests requirements 5.1. Methodology At the beginning, we will have to install our test platform – hardware and operating system. Then we will try to understand how does Lustre work, and install it onto the platform. Once all this will be done, we will be able to start testing. In a first time, we will try to detect the main bottlenecks of the system, and see how we can upgrade it to get better performances. On a second time, we will test the cache, throughput and access times of each file system, to find out which one is better for small files (low access times), and which one is better for large files (high throughput). Then we will perform the same tests on the computing systems of the CNES. These tests will have two objectives: the first one is to compare the performances on the test platform to the
- 9 - ones of the computing systems, to find out if the test platform results are valid for the “real life”; the second objective is to test the different file systems that are installed on the computing systems, to determine advantages and disadvantages of each one. At last, we will perform tests on Lustre, changing its configuration, to try to determine the best value for some parameters. 5.2. Comparison tests The objective of these tests is to determine the performances of some file systems, and to compare them to Lustre performances. To achieve this, it will be necessary to execute exactly the same test series on every file system. The file systems to be compared with Lustre are ext3, for local tests, and NFS, for remote tests. Both are already in use on CNES computing systems. Three kinds of tests will be driven: • Access time tests, consisting of creating empty files, and removing them • Throughput tests, which must be performed for the basic operations permitted on any file system (read, write, etc.), and must also cover the utilizations made by the clients of the file servers, that is, perform sequential and random access. Files for these tests must be big enough to avoid any cache effect. Since the clients and servers RAM is 4 GB, we will perform the tests on 8 GB files. • Cache efficiency tests, consisting basically in the same tests as throughput tests, with smaller files, so they can fit in the cache. Moreover, the tests must be driven from 3 different user points of view: • Local: the tests will be performed on the file server itself. • Single client: the operations will be performed through the network, on a client that will be the only one accessing to and working on the file server. • Concurrent: several clients performing the tests simultaneously, so that they will access the files concurrently. The tests will be run with “basic” file systems configurations. That means that none of the file systems will be tuned after installation. Thus, it will be easier to perform again the same tests later, for instance on another hardware, and to compare the results to those exposed in this report. The tools used for these tests will be Iozone, a file system benchmark tool, and the Unix ‘dd’ command for throughput and cache efficiency tests ; and the Unix ‘touch’ and ‘rm’ commands for access time measurements. All these tools are presented in the Appendix I. 5.3. Cluster tests These tests consist in evaluating the performances of servers in production at the CNES. To achieve this, an account on different computing systems will be required. The objective of such tests is to compare the results obtained in the previous phase to the one that can be obtained on the computing systems – reminding that these systems are used by many people at the same time, including during the tests. The test methodology for these tests will be exactly the same as for the test platform, to make the comparisons easier.
- 16 - Figure 5 – Test platform SAN architecture 8.2.3. Performances This time, we could not make copies from a file, since it would have used the client disk, what we did not want. Instead, we created files using the ‘dd’ command 3 . This test was performed both locally and remotely, and the results are exposed in Table 5. In the first case, the OST Lustre server was itself configured as a Lustre client too, so that performing the tests on this special client would not be network dependant. Data Client Time Throughput (MB/s) Bandwidth utilization 1 file of 3 000 MB R emote 31.523s 95.168 76.13 % L ocal 28.271s 106.116 - Table 5 - Time for local and remote file copy on a SAN, with Lustre As we can see, the bottleneck is the network again, since the local test is significantly faster than the remote one, for which the bandwidth can be considered as saturated. We will further on perform more tests to highlight this. 8.3. Comparing Lustre kernel and “original” Linux kernel Because installing Lustre creates a modified kernel, we can wonder if performing ext3 or NFS tests on this kernel will not decrease their efficiency. So, to compare the efficiency of both kernels, we perform Iozone test 4 . When running remote tests, the server kernel was always the same as the client one. 3 See Appendix I for details on the commands used. 4 See Appendix I again.
- 17 - -40% -30% -20% -10% 0% 10% 20% 30% 40% Write Re-write Read Re-read Random Read Random Write Backward Read Stride Read Fwrite Re-fwrite Fread Re-fread Lustre kernel Original kernel faster faster Performances difference Equivalents results Disk Local ext3 client Disk Local ext3 server SAN Local ext3 Disk Remote NFS SAN Remote NFS Figure 6 - Differences of efficiency between the 2 kernels We can see in Figure 6 that performances are globally as fast for both kernel. There are however some exceptions to this: • Sequential writing on ext3 on the server are performed significantly faster by the original kernel – both on local disk and through the SAN. • On the contrary, sequential, and random, writeing on ext3 on the client are performed faster by the Lustre kernel. Because performances are equivalent for remote operations, and because remote operations are the main interest of our system, the following experiences will all be driven on the Lustre kernel. Thus, all the experimentations can be driven on the same kernel, and tedious reboots are avoided. 8.4. A mix of disk and SAN for Lustre data nodes As Lustre allows it, we started two OSTs on the same server, one using the internal disk, and the other one using the SAN. Then, performing ‘dd’ tests, we checked on which OST the data had been saved, executing the ‘df’ command on the OST server. We realized that the data were stored only on one of both OST, and the performance was exactly the same as if only this OST – the one where the data had been stored – was started. Lustre does not write automatically on the 2 devices, resulting in lower performances, but thus guaranteeing a bigger availability. Indeed, if data are written on 2 different OST, the fall of any of the 2 servers would imply the loss of these data. So we didn’t include tests with a mix of disk and SAN in the following experimentations, because they are not that interesting in terms of performances.
- 18 - 9. Comparison tests 9.1. Cache efficiency 9.1.1. Iozone and the caches effects Iozone allows a three dimensional view of one file system performances, on which we can observe the different cache levels. 64 256 1024 4096 16384 65536 262144 1048576 4194304 4 64 1024 16384 0 500 1000 1500 2000 2500 3000 3500 4000 4500 5000 Speed (MB/s) File size (KB) Record size (KB) 4500-5000 4000-4500 3500-4000 3000-3500 2500-3000 2000-2500 1500-2000 1000-1500 500-1000 0-500 Figure 7 - Caches effect on ext3 – Re-read report As we can see on Figure 7, when all the data can fit in the CPU cache (up to 1MB), we get a very high efficiency, around 4 GB/s. Larger files do not fit in this CPU cache; however, up to 2 GB, they fit in the buffer cache, which is a little bit slower, but can give a speed around 2 GB/s. Files larger than 2 GB do not fit in any cache, and so we can measure the storage efficiency. In this document, all occurrences of the “cache” word refer to the buffer cache, unless it is clearly specified. 9.1.2. Comparing Lustre to ext3, ext2, and NFS We first executed the Iozone test on files smaller than 2 GB (memory size is 4 GB on each machine), performing the default operations, and printed the mean throughput for each one. On Figure 8 and Figure 9, we just selected the operations in which the buffer helped. As we can see on Figure 8, the file systems taking most advantage of the cache is ext3. It is up to twice faster than the two others for reading. Lustre and ext2 have similar results. Remotely, NFS over ext3, is once again more efficient than Lustre, even though NFS seems to lower a little bit ext3 performances (see Figure 9). Lustre remote performances are really similar to local ones. This is quite normal, because we just added the network layer – that does not interfere in the cache efficiency – to the system.
- 19 - 0 500 1 000 1 500 2 000 Read Re-read Random Read Backward Read Record Rewrite Stride Read Fread Re-fread Speed (MB/s) ext3 ext2 Lustre SAN Speed Limit (2 Gbps) Figure 8 - Local cache speed 0 500 1 000 1 500 2 000 Read Re-read Random Read Backward Read Record Rewrite Stride Read Fread Re-fread Speed (MB/s) NFS-ext3 NFS-ext2 Lustre Network Speed Limit (1 Gbps) Figure 9 - Remote cache speed On the contrary, NFS slows down ext2 a lot. Indeed, 4 operations (read, backward read, stride read and fread) do not seem to take advantage of the cache. The 4 other operations are performed faster than locally, perhaps because the clients buffer is faster than the servers one.
- 20 - 9.2. Local throughput The first test we performed was writing and reading through the ‘dd’ command, and then we performed Iozone tests with an 8 GB file, and 1 MB blocks 5 . 9.2.1. The ext2 ‘pre-empted commit’ Running some quick tests, we got some strange results: we expected reading to be faster than writing, which never happens with ext2 and ext3, whatever the configuration is. To check this point, we measured the throughput on the Fiber Channel network, between the server and the SAN disks, while writing on the partition, and then while reading it. As we can see on Figure 10, data are sent at an average throughput of around 110 MB/s. The reason why writing looks so fast to the user is that the server commits the operation before it has really ended. We can guess that, once all data are loaded in memory, the system can assure all data are going to be written safely, and the process returns, whereas around 1,5 GB (server memory is 4 GB) of data have not been written yet. 0 50 100 150 200 024681012141618202224 26 283032 34 36384042444648 Time (s) Throughput (MB/s) Commit SAN throughput Figure 10 - Fiber Channel network throughput while writing on ext2 We have the same ‘pre-empted commit’ with ext3, which is based on ext2. On the contrary, Lustre does not return before all data have been written on the storage device (Figure 11). 5 See Appendix I
- 21 - 0 20 40 60 80 100 120 140 160 180 200 03691215182124273033363942 45 485154576063666972 Time (s) Throughput (MB/s) Commit SAN throughput Figure 11 - Fiber Channel network throughput while writing on Lustre 9.2.2. Results As we explained before (see 9.2.1), ext2 and ext3 seem to be very fast for writing, because of the ‘pre-empted commit’ effect., as we can see on Figure 12. 0 50 100 150 200 250 Write Re-write Read Re-read Random Read Random Write Backward Read Stride Read Fwrite Re-fwrite Fread Re-fread Throughput (MB/s) ext3 ext2 Lustre SAN Speed Limit (2 Gbps) Figure 12 - Local throughput We expected the ext2 and ext3 results to be better than Lustre ones, since Lustre is an additional layer to ext3. However, only ext2 is faster than Lustre, and only for writing, thanks to the ‘preempted commit’ effect. For reading, Lustre is much faster than the two other file systems.
- 22 - Since ext3 is an extension of ext2, adding a journal, writing is quite slower, because there is more data to be written. However, that does not change anything for reading, since the journal is not modified by this operation – and thus performances are equivalent when reading on ext2 or ext3. At last, we can see that in both experiences, reading with Lustre on the SAN reaches a throughput of almost 200 MB/s, taking into account the latency due to the communication between the OST and the MGS/MDT servers, which lowers this throughput. Since the Fiber Channel network has an upper theoretical limit of 2 Gb/s, or 250 MB/s, this network has an utilization of 80%. So reading on the SAN with Lustre saturates the Fiber Channel network. 9.2.3. Bottlenecks As we have seen previously, using a SAN is in all our tests more efficient than using the server’s internal disk. So in the case of using the internal disk, this device is the bottleneck of the system. top - 13:30:39 up 22:09, 1 user, load average: 8.99, 2.95, 1.13 Tasks: 403 total, 3 running, 400 sleeping, 0 stopped, 0 zombie Cpu(s): 0.2%us, 25.4%sy, 0%ni, 0.0%id, 72.8%wa, 0%hi, 1.7%si, 0%st Mem: 3995568k total, 2494184k used, 1501384k free, 11320k buffers Swap: 4192924k total, 152k used, 4192772k free, 1943968k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 7074 root 18 0 63280 1584 1496 R 45 0.0 0:08.00 dd Listing 1 - 'top' result when writing on ext3 The bottleneck when writing on ext2 or ext3, over the SAN, cannot be the Fiber Channel network, since we measured a 110 MB/s throughput, and the network can support up to 250 MB/s. So we performed a ‘top’ while writing on ext3, and found out that the bottleneck was the CPU, as we can see in Listing 1 (the same result has been observed on ext2). 0 50 100 150 200 0 4 8 12 16 20 24 28 32 36 40 44 48 52 56 60 64 68 72 76 80 Time (s) Throughput (MB/s) Lustre ext3 ext2 Figure 13 - Fiber Channel network throughput during local read
- 23 - The process uses around 50% of the CPU, the idle time is null (‘0.0%id’), and the CPU spends the great majority of its time waiting for I/O (‘72.8%wa’). This intensive need of CPU is caused by the “pre-empted commit” effect. On the contrary, when writing on Lustre, the bottleneck is not the CPU, what we can see with the ‘top’ command. The process uses only 20 to 25% of the CPU, which is not saturated – more than 40% of idle time. We did not find out this operation bottleneck. When reading on Lustre, as we can see on Figure 13, the Fiber Channel network throughput is upper than 200 MB/s, so the Fiber Channel network is, in this case, the bottleneck. On the contrary, the average throughput when reading on ext3 is around 104 MB/s only, and the server CPU is not saturated. Once again, we have no idea of what the bottleneck could be for the ext2 and ext3 reads. 9.3. Remote throughput 9.3.1. Results with a Gigabit Ethernet network As we can see on the Figure 14, Lustre is around twice faster than NFS. But what is very important here, and has to be noticed, is that reading (and probably writing) with Lustre on the SAN is only limited by the network. 0 20 40 60 80 100 120 Write Re-write Read Re-read Random Read Random Write Backward Read Stride Read Fwrite Re-fwrite Fread Re-fread Throughput (MB/s) NFS-ext3 SAN NFS-ext2 SAN Lustre SAN Network Speed Limit (1 Gbps) Figure 14 - Remote throughput We can guess that when using Lustre, sequential reading and writing are limited by the network, since their performances are worse than local ones. But for non-sequential operations, which are slower, the throughput remained the same, as expected. On the contrary, in the case of NFS, not only the network has been added to ext2 and ext3, but also the NFS overhead, which makes performances worse than local ones. At last, we can notice that NFS transfers the ‘pre-empted commit’ effect, since re-writing is still slower than writing.
- 24 - 9.3.2. Network bonding Since the network seemed to be the bottleneck is some cases, we decided to add a Gigabit Ethernet connexion to one client and one server (basically, the Lustre OST), and to perform bonding between the two connections, so we can double the theoretical network throughput. The results are given in Figure 15. As expected, NFS performances were exactly the same as when using a single Gigabit Ethernet connexion (NFS performances were not limited by the network). And as expected, Lustre performances that were limited by the network are increased, even though they do not reach the level of performance that was achieved locally. However, it confirms one of the previous hypothesis: the Gigabit Ethernet network is a bottleneck for Lustre operations. 0 20 40 60 80 100 120 140 160 180 200 Write Re-write Read Re-read Random Read Random Write Backward Read Stride Read Fwrite Re-fwrite Fread Re-fread Throughput (MB/s) NFS-ext3 - 2Gbps NFS-ext2 - 2Gbps Lustre - 1Gbps Lustre - 2Gbps 1Gb Net. Speed Limit Lustre - Local Figure 15 – Bonding network: comparison to local performances 9.3.3. Comparing Lustre, NFS and FTP FTP is a very efficient file transfer protocol, using the maximum of the available bandwidth, as we can see on Listing 2, performed through the network with bonding: ftp> put "|dd if=/dev/zero bs=1024k count=8192" /dev/null local: |dd if=/dev/zero bs=1024k count=8192 remote: /dev/null 227 Entering Passive Mode (192,168,2,4,48,176) 150 Ok to send data. 8192+0 enregistrements lus 8192+0 enregistrements écrits 8589934592 octets (8,6 GB) copiés, 47,851 seconde, 180 MB/s 226 File receive OK. 8589934592 bytes sent in 48 seconds (1.8e+05 Kbytes/s) Listing 2 - Writing a file through FTP
- 25 - The throughput is somewhat inferior to the theoretical upper limit, probably because we do not use a real 2 Gbps network, but bonding, that may lead to some overhead. Despite that network efficiency, FTP writings are much slower than local writings on ext2. They remain however more than twice faster than NFS ones. On the contrary, Lustre writings, which were much slower locally (45% slower) are now almost as fast as FTP ones (12% slower). Local readings were faster on Lustre than on ext2, and the difference grows a little bit: Lustre was 43% faster locally; it is remotely 49% faster than FTP and 56% faster than NFS. 0 30 60 90 120 150 180 210 WRITE READ Throughput (MB/s) Local NFS ext2 FTP ext2 Lustre Figure 16 - FTP, NFS and Lustre throughput performances The thing is that for Lustre, the overhead (around 10% for each operation) is caused only by the network; whereas both NFS and FTP add an additional software layer that leads to another additional cost. In the case of FTP, this software overhead is very important, as we con see on Listing 3. Moreover, FTP adds a communication latency, which may reach in some cases 5 seconds. top - 15:43:24 up 1 day, 22:43, 1 user, load average: 0.86, 0.63, 0.42 Tasks: 408 total, 2 running, 406 sleeping, 0 stopped, 0 zombie Cpu(s): 0.2%us, 17.6%sy, 0%ni, 55.9%id, 0%wa, 1.3%hi, 25.0%si, 0%st Mem: 3995568k total, 2356668k used, 1638900k free, 14764k buffers Swap: 4192924k total, 280k used, 4192644k free, 2012244k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 11616 root 15 0 39596 1032 508 R 52 0.0 0:07.60 vsftpd Listing 3 - 'top' result during an FTP transfer As a conclusion, Lustre seems to be a really better choice than either FTP or NFS. It is not only much faster than the two others for reading, but it is also almost as fast as FTP for writing, and much faster than NFS. Most of all, it provides an easy way to manage remote files – much easier than FTP – and it is a very scalable system.
- 32 - Note: The results of the test platform are those measured with network bonding (see 9.3.2). The shared file systems are signaled on the graph by a star (*). As we can see in Figure 21, the objective to avoid any cache effect has been reached in every case but the ext3 on the Linux Cluster. Actually, it is probably related to the fact that it is the only configuration using the internal disk, and not the SAN (JFS2 was not tested there). Moreover, we can notice that, re-writing is as fast as writing, probably because the “pre-empted commit” is disabled on this system. The system using GPFS performs all sequential operations somewhat faster than all others. For writing, it is at least twice faster than the others. On the contrary, the slowest system for sequential operations is NFS on our test platform. At last, the slowest file system for writing is NFS. Indeed, the 2 systems (Linux Cluster and the test platform) with NFS are the ones with the slowest performances for this operation. In both cases, using Lustre is around twice faster than using NFS – except in the case of cache effect. 10.4. Cache efficiency When running the tests on a smaller file (2 GB in this example), we can see on Figure 22 that GPFS seems to be the only system that does not take advantage of the cache. In fact, there is no use of the cache on this system for files bigger than 128 MB. 0 200 400 600 800 1 000 1 200 1 400 1 600 Write Re-write Read Re-read Random Read Random Write Throughput (MB/s) Test - NFS Linux - ext3 Test - Lustre Linux - Lustre* Calc-gen5 - UFS Calculx - GPFS* Figure 22 - Computing system throughput tests with a 2 GB file As we can notice, there is no cache effect for writing, whatever the file system is. Moreover, after writing on NFS, data do not seem to be kept in client memory, since reading then is quite slow, whereas Lustre, ext3 and UFS do it. Moreover, reading randomly on NFS seems to take a good advantage of the cache, since it is as fast as re-reading, and much faster than the first reading. We may guess that reading randomly
- 33 - after having cleared the cache would have lead to performances such as the first reading, which is probably not the case with the other file systems. At last, the faster file system when allowing cache effect seems to be Lustre, that performs almost all the operations faster than UFS, ext3 and NFS. 10.5. Access time As we can see in Figure 23, two systems have very short access times: UFS/Calc-gen5, and ext3/Linux. However, the result for ext3 is not a surprise: ext3 was yet much faster than Lustre on the test platform. 0,0 0,1 1,0 10,0 100,0 Touch Remove *1 000 Operations / s Test - NFS/ext3 Test - NFS/ext2 Test - Lustre Calculx - GPFS* Calc gen 5 - UFS Linux - ext3 Linux - Lustre* Figure 23 – Computing systems access time efficiency (the higher, the better) Performances of GPFS/Calculx are very bad: access times for both ‘touch’ and ‘remove’ are around 66 operations per second – 10 times slower than NFS. This is probably due to the structure of the GPFS file system, which needs to make some verifications before writing on the SAN – in particular, to manage concurrent access to the data. We can observe in Figure 24 that the performances got from the Linux Cluster are surprisingly similar to the ones from the test platform.
- 34 - 0,0 10,0 20,0 30,0 40,0 50,0 60,0 Touch Remove Touch Remove *1000 Operations / s [ ext3 ] 0,0 0,5 1,0 1,5 2,0 2,5 *1000 Operations / s [ Lustre ] ext3 disk local client ext3 disk local server ext3 SAN local server Linux - ext3 Lustre SAN remote Linux - Lustre* Figure 24 - Test platform and Linux Cluster comparison (the higher, the better) 10.6. Conclusion Since these tests have been driven on different configurations, we can only compare the combinations hardware + file system. It looks like GPFS/Calculx is a good solution for a system with big files, on which we will not use the cache. Indeed, it has very high access times (bad to work with small files), a very good throughput (good for big files) and it never uses the cache. For a system which will take a good advantage of the cache, UFS/Calc-gen5, or Lustre/Linux, are better solutions. The first one is typically made for small files, because it has very low access times, whereas Lustre/Linux, which has better cache and throughput performances, is designed for bigger files. Ext3/Linux could be a good compromise for systems with big and small files, and provides a very efficient access to the cache. However, it is a local file system, and using it remotely severely decreases its efficiency. At last, we saw that our test platform performances were very similar to Linux Cluster performances. Thus we can consider extending all the results obtained in paragraph 8 to the Linux Cluster.
- 35 - 11. Configuration tests 11.1. Scheduler 11.1.1. Test overview In this part we will test I/O scheduler, as suggested in the Lustre Operations Manual [10]. The four schedulers that are included in the version 2.6 of the Linux kernel, shall be tested: Completely Fair Scheduling (CFQ), Deadline, Anticipatory Scheduling[15], and Noop. The Lustre Operations Manual recommends using the Deadline schedulers, to reach the best efficiency. I/O schedulers are not invoked when accessing data in the cache, so we will not make cache efficiency tests. Moreover, to simplify the process, throughput and access time tests will be driven with single clients. 11.1.2. Client scheduler 0 20 40 60 80 100 120 140 160 Write Read Throughput (MB/s) Noop Anticipatory Deadline Cfq Figure 25 – Throughput with the different client I/O schedulers As explained in the documentation, CFQ gives the lowest results, what we can see on Figure 25. This is hard to see for writings, but it becomes obvious with readings. Noop and Anticipatory seem to be a little bit faster, and the best is obviously the Deadline scheduler... as expected. For the access time, differences of performance are to small (< 7%) to be significant, even though Anticipatory is a little bit slower than the other ones. 11.1.3. OST server scheduler Running the tests locally on the OST server, the 4 different schedulers had very similar performances. The mean difference of performances always stayed below 5%, except in one case: Deadline scheduler seemed to remove files around 15% faster than the others.
- 36 - With remote tests, the Deadline scheduler seems to be, once again, the best choice, since it performs both reading and writing faster than the others ones. 0 20 40 60 80 100 120 140 160 180 Write Re-write Read Re-read Random Read Random Write Throughput (MB/s) Noop Anticipatory Deadline Cfq Figure 26 – Remote throughput with the different OST server I/O schedulers It can be noticed that CFQ performs readings slower than writings, and it is the only scheduler that does not take advantage of the cache for re-doing an operation. At last, we can see that random operations are performe almost as fast by the 4 schedulers – CFQ is a little bit slower for reading, and Noop is quite slower for writing. Concerning the access times, differences of performance are lower than 5%, so the scheduler seems to have a very low impact on small files performances. 11.2. Client I/O RPC Stream tunables The maximum number of pages that will undergo I/O in a single RPC to the OST could not be greater than 256 on our test platform. The value can be modified by changing the following file: /proc/fs/lustre/osc/<object name>/max_pages_per_rpc. Whatever the value of this variable is, the access times remain unchanged, but the throughput increases linearly with the number of pages, until we reach the maximum. The RPCs in flight number corresponds to the maximum number of tasks that can be managed concurrently by the server. The value is in the following file: /proc/fs/lustre/osc/<object name>/max_rpcs_in_flight. This number must be big enough to avoid starvation. With very low numbers (e.g. 1 RPC in flight), the throughput with a single task was quite low (85MB/s for writing, 60MB/s for reading). On the contrary, high number may lead to overload, what we could not have tested because we did not have enough clients to saturate the server.
- 37 - 11.3. Different Lustre configurations We tested different configurations of Lustre during the internship. We will explain them here, and see what are their advantages and disadvantages. The first configuration tested is the classic one, composed of one MGS/MDT server, and one OST server. It seems to work well, and we recommend this configuration for the later use of Lustre in computing Clusters. Since we guess there will not be a lot of Lustre systems, installing the MGS apart seems to be irrelevant. The other configuration tested is a configuration with all the services on the same machine: MGS, MDT and OST. Notice that Lustre is designed to prevent anyone of using this configuration. Indeed, even though it may have some advantages, mainly for the access times, this configuration may lead to some problems, because the same machine will have to handle with twice more operations: data and metadata storage. 12. Synthesis As we have seen all along the tests performed, Lustre is not recommended for a local use, since ext2 and ext3 have much better results. On the contrary, Lustre has better performances than NFS, and it offers a scalability that NFS cannot give. Hence, Lustre seems to be a very good solution for a file system intending to allow data sharing, in a very big quantity. Moreover, we only tested during this internship platforms where clients and servers are connected through an Ethernet connection. As we have seen, Lustre is limited by this Ethernet connection, even when we made bonding. Since Lustre can manage Inifiniband networks, that are much faster than Ethernet ones, we can assume that performing the tests over Infiniband will improve the performances. Infiniband is a technology that is already used at the CNES, but we had not the time to perform the tests again with this technology. We strongly recommend to make these tests before installing Lustre in any computing system, since they can show very interesting improvements.. 13. Time repartition We can see in Figure 27 the original planning, and in Figure 28 the time spent on each task. The main reason why the time table has been modified is the early arrival of the SAN. So we did not perform disk tests, and then SAN tests, but we perform them in parallel. Moreover, we did not perform GPFS tests on the test platform, because of the complications we had to install it, and we changed the order of configuration tests and Computing system tests. At last, we performed ext2 and FTP tests quite late, since they were not included in the original test protocol, and we performed other parallel tests at the end of the internship because the results we had from the first tests were not relevant at all.
- 38 - 1 3 5 7 9 11 13 15 17 19 21 23 25 27 Test platform installation (Servers and Lustre) Test protocol definition Lustre tests NFS & GPFS tests SAN tests Tests on Clusters Infiniband tests Free time Week Figure 27 - Time table planning 1 3 5 7 9 11 13 15 17 19 21 23 25 27 Test platform installation (Servers and Lustre) Test protocol definition SAN study and installation Test tools study Lustre & NFS performances tests Tests on Clusters Configuration tests Ext2 and FTP tests Report writing Parallel tasks tests Week Figure 28 - Effective time repartition 14. Conclusion This internship was very rewarding, for different reasons. The first reason is obviously the technical aspect. Indeed, I could acquire new technical competences, on the following systems:
- 39 - • first of all is Lustre, of course, and its way of working: separation of data and metadata, failover mechanism, communication between the different nodes, etc. • then comes the SAN (Storage Area Network). I had never heard about this technology before, and my idea is that it is essential to know about SAN, NAS and DAS, for someone willing to work in the domain of the operating systems. • I learned also the basis about computing computing systems, and how to use it. • I also discovered the Red Hat operating system, along with the GPFS and UFS file systems, on which I had never worked before. • at last, I acquaint myself with some quite simple measurement tools, the most important being the Iozone file system benchmark, and the ‘dd’ Unix program. The second point is, I could observe some of the management troubles an enterprise can live through, and understand how vital it is to have a well organized management team. Last but not least, it was a good experience to me to work independently. It was the first time I practised self-working for a quite long period, and I had to define the test methodology, make my own planning and organize myself. This is in my mind something very important, since an engineer must be prepared to self-working, but also, to manage the tasks and time repartitions within team members, when he is lead to be a project manager. About the firm, I can say the CNES is a quite good firm to work in, with very interesting, innovative and motivating project, especially for someone who is very attracted by aeronautics and space like I am. 15. References [1] Red Hat. “Red Hat Enterprise Linux 5”. Red Hat Company Website. http://www.redhat.com/rhel/. Retrieved March, 06. 2008. [2] Free Software Foundation. “GNU General Public License”. Free Software Foundation Website. http://www.fsf.org/licensing/licenses/gpl.html. Modified February, 12. 2008. Retrieved February, 23. 2008. [3] “Sun Microsystems”. Sun Microsystems Website. http://www.sun.com. Retrieved February, 25. 2008. [4] “Sun Welcomes Cluster File Systems Customers And Partners”. Sun Microsystems Website. http://www.sun.com/software/Clusterfs/index.xml. Retrieved March, 13. 2008. [5] “Lustre File System – Overview”, Sun Microsystems Website. http://www.sun.com/software/products/lustre/index.xml. Retrieved July, 11. 2008. [6] “Lustre File System – Get the Software”, Sun Microsystems Website. http://www.sun.com/software/products/lustre/get.jsp. Retrieved April, 11. 2008. [7] Philippe Daix (APX Synstar), “Dossier d’installation”, for the CNES, November, 28. 2007, Chapters 7 & 8 [8] Qlogic. “Qlogic Drivers”. Qlogic Company Website. http://support.qlogic.com/support/drivers_software.aspx. Retrieved March, 20. 2008. [9] Lustre 1.6 Operations Manual, version 1.10, December 2007, Chapter 21 [10] Lustre 1.6 Operations Manual, version 1.10, December 2007, Chapter 3.3.4 [11] Lustre Features Roadmap, version 1.20, December 2007
- 40 - [12] Sun Microsystems. “Unix File System (UFS) at OpenSolaris.org”. OpenSolaris Website. http://opensolaris.org/os/community/ufs/. Retrieved May, 26. 2008. [13] Frank Schmuck and Roger Haskin, “GPFS: A Shared-Disk File System for Large Computing Clusters”, Proceedings of the FAST 2002 Conference on File and Storage Technologies, January, 28-30. 2002. [14] “IBM General Parallel File System”, IBM Website. http://www.ibm.com/systems/clusters/software/gpfs/. Retrieved July, 29. 2008. [15] Sitaram Iyer and Peter Druschel, “Anticipatory scheduling: A disk scheduling framework to overcome deceptive idleness in synchronous I/O”, ACM SOSP 2001, August, 6. 2001 [16] Lustre 1.6 Operations Manual, version 1.10, December 2007, Chapter 1.2.6, Figure 1.1 [17] “Change Log 1.6 – Wiki3”, Sun Microsystems – Lustre Wiki Website. http://wiki.lustre.org/index.php?title=Change_Log_1.6. Retrieved August, 18. 2008.
- 41 - APPENDIX
- 48 - • When reading, using Lustre on a SAN seems to be really more efficient than any other configuration. • On the ext3 file system, writing is faster than reading – except for random read/write on the internal disk. 0 50 100 150 200 250 WRITE READ Throughput (MB/s) Disk ext3 Server Disk ext3 Client SAN ext3 Server Disk ext2 Server Disk ext2 Client SAN ext2 Server Disk Lustre SAN Lustre Figure 30 – Local throughput test, measured with 'dd' The only contradiction between both experiences is that writing on an ext3 file system is not always faster than writing on Lustre. When using the SAN, the operations of re-writing are even quite worse with ext3 than with Lustre. This, and the fact that reading was slower than writing, was very astonishing. Thus we had to check where the problem could come from, and find out the ext3 “pre-empted commit” effect. At last we can see that ‘dd’ performances are always a little bit faster than Iozone ones, probably because of the running application overhead. 2. Remote throughput On these two graphs, performances are very similar. The only difference is that reading on NFS over the SAN gives better results with the ‘dd’ command – around 75 MB/s – than with the Iozone tool – 45 MB/s only, not faster than writing.
- 49 - 0 20 40 60 80 100 120 WRITE READ Throughput (MB/s) NFS/ext3 Disk NFS/ext3 SAN NFS/ext2 Disk NFS/ext2 SAN Lustre Disk Lustre SAN Figure 31 - Remote throughput test, measured with 'dd' 0 20 40 60 80 100 120 Write Re-write Read Re-read Random Read Random Write Backward Read Stride Read Fwrite Re-fwrite Fread Re-fread Throughput (MB/s) NFS-ext3 disk NFS-ext3 SAN NFS-ext2 disk NFS-ext2 SAN Lustre disk Lustre SAN Network Speed Limit (1 Gbps) Figure 32 - Remote throughput test, measured with Iozone
- 50 - 3. Schedulers 3.1. Client scheduler 0 20 40 60 80 100 120 140 Write Read Throughput (MB/s) Noop Anticipatory Deadline Cfq Figure 33 - Client scheduler test: 'dd' results 0 20 40 60 80 100 120 140 160 Write Re-write Read Re-read Random Read Random Write Throughput (MB/s) Noop Anticipatory Deadline Cfq Figure 34 - Client scheduler test: Iozone results For this tests, ‘dd’ and Iozone results are incredibly different. In the first one, Noop performs quite well, Anticipatory is from far the slowest, Deadline is the best, and CFQ writes faster than it reads.
- 51 - The Iozone results says the contrary: Noop is from far the slowest, Anticipatory is the best one, Deadline writes faster than it reads, and CFQ is almost as fast as Anticipatory. This is totally incredible. 3.2. OST server scheduler On the contrary, when testing the different OST server schedulers remotely, ‘dd’ and Iozone results were quite coherent, even though they differ a little bit. 0 20 40 60 80 100 120 140 Write Read Throughput (MB/s) Noop Anticipatory Deadline Cfq Figure 35 - OST server scheduler remote test: 'dd' results The coherence lies in the global shape of the results. In both case, Deadline is the best scheduler, before Anticipatory and Noop, and in both case CFQ writes quite quickly, but reads slower. However, there is some difference in terms of values. When writing, the ‘dd’ results are much higher than the Iozone ones – up to 2,5 times for the Noop scheduler. It is the same case again for reading with the Noop and Anticipatory schedulers.
- 52 - 0 20 40 60 80 100 120 140 160 180 Write Re-write Read Re-read Random Read Random Write Throughput (MB/s) Noop Anticipatory Deadline Cfq Figure 36 - OST server scheduler remote test: Iozone results
- 53 - APPENDIX III MORE RESULTS… In this appendix we present different results that we have observed, and that do not concern directly the aim of the internship. These results are basically: • Internal disk and SAN performances comparison • Client and server machines comparison – that is, comparison between IBM xSeries 336 and SunFire x4200 1. Comparing disk and SAN results 1.1. Buffer cache 0 500 1 000 1 500 2 000 Read Re-read Random Read Backward Read Record Rewrite Stride Read Fread Re-fread Speed (MB/s) ext3 - Disk ext3 - SAN ext2 - Disk ext2 - SAN Lustre - Disk Lustre - SAN SAN Speed Limit (2 Gbps) Figure 37 - Local cache tests on the server On the two graphs, we just printed out the results in which the RAM is involved. However, some operations for which we expected there would be some cache interference did not take advantage of it, as we can see on the remote graph for the NFS/ext2 file system.
- 54 - 0 500 1 000 1 500 2 000 Read Re-read Random Read Backward Read Record Rewrite Stride Read Fread Re-fread Speed (MB/s) NFS-ext3 - Disk NFS-ext3 - SAN NFS-ext2 - Disk NFS-ext2 - SAN Lustre - Disk Lustre - SAN Network Speed Limit (1 Gbps) Figure 38 - Remote cache tests As we can see in the two previous graphics, using the internal disk or the SAN has almost no impact on cache results. This is obviously what we expected, since the storage device is supposed to little interfere in the process. 1.2. Local throughput 0 50 100 150 200 250 WRITE READ Throughput (MB/s) Disk ext3 Client SAN ext3 Server Disk ext2 Client SAN ext2 Server Disk Lustre SAN Lustre Figure 39 - Local throughput
- 55 - First of all, we can notice that writing on a SAN is significantly faster than writing on the internal disk, as we expected. Indeed, ext3 writes twice faster on the SAN than on the disk, and it is even three times faster in the case of Lustre and ext2. Even though we could think writing on ext2 is limited by the Fiber Channel network of the SAN, it is not the case, since the real throughput on this network is around 175 MB/s. If this network was saturated, we would observe a throughput higher than 250 MB/s, due to the ‘preempted commit’ effect. When reading, the contrast is slightest for ext2 and ext3: the SAN is less than twice faster. On the contrary, Lustre performs read almost 4 times faster, and is probably limited by the Fiber Channel network. Then we can guess that the maximum throughput to the internal disk of the server is lower than 60 MB/s, since no file system wrote on or read from it faster (even though both ext2 and ext3 seems to write faster). In like manner, we can guess that the maximum throughput of the client disk is lower than 80 MB/s. At last we can observe that both ext2 and ext3 are better than Lustre when we used the internal disk. 1.3. Remote throughput 0 20 40 60 80 100 120 Write Re-write Read Re-read Random Read Random Write Backward Read Stride Read Fwrite Re-fwrite Fread Re-fread Throughput (MB/s) NFS-ext3 disk NFS-ext3 SAN NFS-ext2 disk NFS-ext2 SAN Lustre disk Lustre SAN Network Speed Limit (1 Gbps) Figure 40 - Remote throughput For sequential actions, the SAN storage is always at least twice faster than the internal disk... taking in account that for Lustre, the SAN platform performances are limited by the network, so its performances could be even better. For non-sequetial actions, the disk seems to be a little bit faster for NFS. Writing on Lustre is performed faster by the SAN, and reading on Lustre gives mixed results.
- 56 - Disk results for Lustre are the same that we observed locally. This is what we expected, because local tests gave results inferior to 60 MB/s, hence the Gigabit network – which is the only constraint we added – has no impact on that test. 1.4. Access time 0 10 20 30 40 50 60 70 80 Touch Remove *1000 Operations / s [ext3] 0,0 0,5 1,0 1,5 2,0 2,5 3,0 3,5 4,0 *1000 Operations / s [Lustre] ext3 disk ext3 SAN ext2 disk ext2 SAN Lustre disk Lustre SAN Figure 41 - Local access times 0,0 0,2 0,4 0,6 0,8 1,0 1,2 1,4 1,6 1,8 2,0 Touch Remove *1 000 Operations / s NFS/ext3 disk NFS/ext3 SAN NFS/ext2 disk NFS/ext2 SAN Lustre disk Lustre SAN Figure 42 - Remote access times In opposition to throughput tests, using whether the disk or the SAN has no significant impact on local access times, whatever the file system.
- 57 - On Lustre, remote results are equivalent to local ones. On the contrary, NFS has a big impact on ext2 and ext3 performances, almost when data are stored on the internal server’s disk. Indeed, NFS/ext3 is 6 times faster on the SAN than on the disk, and NFS/ext2 is up to 20 times faster on the SAN. Unexpectedly, when data are stored on server’s local disk, NFS is more than 500 times slower than ext3 ! Hence, the usage of the internal disk should be strongly avoided. 2. Comparing client and server machines In this test, we are going to compare throughput and access time performances of both server and client machines. So we will perform these tests on the ext2 and ext3 file systems, with the internal disk as storage device. It would have been interesting to perform the same tests with a SAN, but it was not possible, since the SAN was not installed for the client machines. The results show that server machines are more efficient than client ones, whatever the file system – ext2 or ext3. Indeed, as we can see on figures 7 and 8, the throughput is around 30% higher on the server than on the client, and the access time is always better on the server – up to 60% better on ext2. 0 10 20 30 40 50 60 70 80 90 WRITE READ Throughput (MB/s) ext3 Server ext3 Client ext2 Server ext2 Client Figure 43 – Comparing disk throughput between client and server