Bob Friesenhahn wrote:
On Mon, 15 Jun 2009, Bob Friesenhahn wrote:If the system is dedicated to serving files rather than also being used interactively, it should not matter much what the CPU usage is. CPU cycles can't be stored for later use. Ultimately, it (mostly*) does not matter if one option consumes more CPU resources than another if those CPU resources were otherwise going to go unused. Changes (increases) in latencies are a consideration but probably depend more on process scheduler choice and policies. *Higher CPU usage will increase energy consumption, heat output, and cooling costs...these may be important considerations in some specialized dedicated file server applications, depending on operational considerations. The interactivity hit may pose a greater challenge for any other processes/databases/virtual machines run on hardware that also serves files. The interactivity hit may also be evidence that the process scheduler is not fairly or effectively sharing CPU resources amongst the running processes. If scheduler tweaks aren't effective, perhaps dedicating a processor core(s) to interactive GUI stuff and the other cores to filesystem duties would help smooth things out. Maybe zones be used for that? With a slower disk subsystem the CPU overhead would surely be less since writing is still throttled by the disk.There are 4 sets of articles with links and snippets from their test data below. Follow the links for the full discussion: First article: http://blogs.sun.com/dap/entry/zfs_compression#comments Hardware: Sun Storage 7000 # The server is a quad-core 7410 with 1 JBOD (configured with mirrored storage) and 16GB of RAM. No SSD. # The client machine is a quad-core 7410 with 128GB of DRAM. Summary: text data set
Summary: media data set
Second article/discussion: http://ekschi.com/technology/2009/04/28/zfs-compression-a-win-win/ http://blogs.sun.com/observatory/entry/zfs_compression_a_win_win Third article summary: ZFS and MySQL/InnoDB shows that gzip is often cpu-bound on current processors; lzjb improves performance. http://blogs.smugmug.com/don/2008/10/13/zfs-mysqlinnodb-compression-update/ Hardware: SunFire X2200 M2 w/64GB of RAM and 2 x dual-core 2.6GHz Opterons Dell MD3000 w/15 x 15K SCSI disks and mirrored 512MB battery-backed write caches "Also note that this is writing to two DAS enclosures with 15 x 15K SCSI disks apiece (28 spindles in a striped+mirrored configuration) with 512MB of write cache apiece."
Notes on TABLE1:
Notes on TABLE2:
Notes on TABLE3:
Notes on TABLE4:
Fourth article: zfs-fuse on Linux: http://www.mail-archive.com/zfs-discuss@opensolaris.org/msg08219.html Hardware: "this test was done an an ancient suse 9.1 box, fuse 2.5.3, 1,25 GB RAM (1 gb in use for other apps), 2x80gb 3ware raid1" linux kernel source, (239M) time tar xf linux-2.6.20.3.tar |compression |time-real |time-user |time-sys |compressratio -------------------------------------------------------------- |lzo |6m39.603s |0m1.288s |0m6.055s |2.99x |gzip |7m46.875s |0m1.275s |0m6.312s |3.41x |lzjb |7m7.600s |0m1.227s |0m6.033s |1.79x |off |7m26.735s |0m1.348s |0m6.230s |1.00x |
_______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss