LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-01-2014, 10:08 PM   #1
notsure
Member
 
Registered: Jun 2012
Location: Detroit
Distribution: Arch x86_64
Posts: 112

Rep: Reputation: 10
small file performance situation


I have zoneminder virtualized running debian. It currently uses a dedicated 3TB HDD that is local to the ESX host. The server runs great, no complaints.

I have 2TB (LVM,ext4) full of jpg files 16KB-35KB, many directories containing 1000-5000 files each.

A transfer of 480GB (56million files) to the current 2TB volume took 48hours.

Code:
root@zoneminder:~# time ls -R1 /var/www/zm/events/* | wc -l 158578363

real    75m11.510s
user    16m22.881s
sys     2m22.853s
I'm just curious if anyone has suggestions to increase performance. I tried tweaking the filesystem but didn't notice any increase watching iotop.

Code:
fstab:
/dev/VolGroup1/lv3T     /var/www/zm     ext4    defaults,noatime,data=writeback         0 0

(some of you may notice I labeled the volume 3T instead of 2T, oops)

Last edited by notsure; 02-01-2014 at 11:39 PM. Reason: i forgot to add the times
 
Old 02-01-2014, 11:59 PM   #2
DinoFly
Member
 
Registered: Nov 2007
Distribution: Fedora, CentOS,
Posts: 72

Rep: Reputation: Disabled
You should have considered using reiserfs for performance on huge amount of small files. You will definitely see the difference.
 
Old 02-02-2014, 01:12 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,120

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Having a filesystem more attuned to small file packing will help, but you still have to do all the I/O - twice. That's an awful lot of interrupts. And are we talking 2 separate ESX (physical) devices here ?. On separate busses ?. Are there any other guests ?
LVM adds another layer of block device driver to the stack that already consists of ESX, then Linux device driver then VFS. And various levels of caching and I/O schedulers. Let's hope you're not also getting NFS/CIFS into the mix as well.

If this is going to be a regular occurrence, I would get it out from being a guest, and I wouldn't use LVM. Reiser was the answer to this yeas ago, maybe not so much now. Maybe phoronix will have an up-to-date benchmark runoff.
 
Old 02-02-2014, 01:34 AM   #4
notsure
Member
 
Registered: Jun 2012
Location: Detroit
Distribution: Arch x86_64
Posts: 112

Original Poster
Rep: Reputation: 10
Thanks guys, I'll check out reiser and ditch LVM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Intel's Mesa Driver Gets A Small Performance Boost LXer Syndicated Linux News 0 01-29-2013 05:30 AM
[SOLVED] Writing to file from kernel space at panic situation ashumnnit29 Linux - Kernel 1 01-05-2013 02:25 PM
[SOLVED] System File is Full (100%) How can I relieve the situation? mike-member Linux - Newbie 8 03-14-2011 02:32 AM
Improve performance with Low/Small Memory MIRV Linux - General 15 02-15-2008 03:38 PM
Situation/condition in spec file for RPM Ameii83 Linux - Software 2 04-12-2007 12:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:55 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration