Is TSM/HSM 7.1 compatible with GPFS 3.5.0.12 ?
We're using tsm 7.1 with gpfs 3.5.0.11. At some point we do want to enable the HSM features but haven't had time to properly configure/set them up yet. I had dmapi enabled on GPFS but was never able to bring it up with dmapi enabled. Everything wasn't properly configured at the time and we were missing some pieces (not my post, but same issue) : https://www.ibm.com/developerworks/community/forums/html/topic?id=77777777-0... I'd say that we are having less than optimal performance with TSM however. We're only able to pull about 4TB a day. It took us 20 days to backup 80TB for our initial full. Using rsync/tar piped to tar would probably have taken less than a week. We tried various methods, e.g. using a fast intermediate diskpool, going simultaneously to our 6 LTO6 tape drives, etc but each "cp" (tsm client) process that TSM would use seemed to be very slow. We tweaked just about every setting to optimize performance but to really no avail. When going to the disk pool this is what should have happened : GPFS => relatively fast random I/O (on par with rsync/tar piped to tar) tsm disk cache => large sequential I/O's for each disk pool volume => tape this is what really happened GPFS => slow random I/O => tsm disk pool cache => slow random I/O => tape so instead we did : GPFS => slow random I/O (TSM) => tape ..but was the same speed as going through the tsm disk pool cache. We closely monitored the network, disk, memory, cpu, on the tsm server and none of the hardware or capabilities of the server were the bottleneck, it was all in TSM. If anyone has seen this sort of behavior and has some pointers/hints at improving performance I'd be glad to hear it. Thanks, Sabuj On Thu, Mar 20, 2014 at 5:21 PM, Grace Tsai <gtsai@slac.stanford.edu> wrote:
Hi,
Is TSM/HSM 7.1 compatible with GPFS 3.5.0.12 ?
Thanks.
Grace _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
Hi, there are various ways to speed up backup of data from GPFS to TSM (which btw is the same problem for most other backup solutions as well), but first one needs to find out what the problem is as it can be multiple completely independent issues and each of them needs a different solution, so let me explain the different issues and also what you can do about them. the very first challenge is to find what data has changed. the way TSM does this is by crawling trough your filesystem, looking at mtime on each file to find out which file has changed. think about a ls -Rl on your filesystem root. this can, depending on how many files you have, take days in a large scale environment (think 100's of millions of files). there is very little one can speed up on this process the way its done. all you can do is put metadata on faster disks (e.g. SSD) and that will improve the speed of this 'scan phase'. an alternative is to not do this scan at all with the TSM client, but instead let GPFS find out for TSM what files have changed and then share this information with TSM . the function/command in GPFS to do so is called mmbackup : https://publib.boulder.ibm.com/infocenter/clresctr/vxrx/index.jsp?topic=%2Fc... it essentially traverses the GPFS metadata sequentially and in parallel across all nodes and filters out files that needs to be backed up. in several customer environments i was called to assist with issues like this, this change alone did speed up the backup process multiple orders of magnitudes. we had a few customers where this change reduced the scan time from days down to minutes. its not always this big, but its usually the largest chunk of the issue. the 2nd challenge is if you have to backup a very large number (millions) of very small (<32k) files. the main issue here is that for each file TSM issues a random i/o to GPFS, one at a time, so your throughput directly correlates with size of the files and latency for a single file read operation. if you are not on 3.5 TL3 and/or your files don't fit into the inode its actually even 2 random i/os that are issued as you need to read the metadata followed by the data block for the file. in this scenario you can only do 2 things : 1. parallelism - mmbackup again starts multiple processes in parallel to speed up this phase of the backup 2. use a 'helper' process to prefetch data for a single TSM client so all data comes out of cache and the latency for the random reads is eliminated to increase throughput. without any of this seeing only a few low MB/sec is not uncommon for customers, but with the changes above you are able to backup very large quantities of data. hope this helps. Sven ------------------------------------------ Sven Oehme Scalable Storage Research email: oehmes@us.ibm.com IBM Almaden Research Lab ------------------------------------------ From: Sabuj Pattanayek <sabujp@gmail.com> To: gpfsug main discussion list <gpfsug-discuss@gpfsug.org> Date: 03/20/2014 06:39 PM Subject: Re: [gpfsug-discuss] Is TSM/HSM 7.1 compatible with GPFS 3.5.0.12 ? Sent by: gpfsug-discuss-bounces@gpfsug.org We're using tsm 7.1 with gpfs 3.5.0.11. At some point we do want to enable the HSM features but haven't had time to properly configure/set them up yet. I had dmapi enabled on GPFS but was never able to bring it up with dmapi enabled. Everything wasn't properly configured at the time and we were missing some pieces (not my post, but same issue) : https://www.ibm.com/developerworks/community/forums/html/topic?id=77777777-0... I'd say that we are having less than optimal performance with TSM however. We're only able to pull about 4TB a day. It took us 20 days to backup 80TB for our initial full. Using rsync/tar piped to tar would probably have taken less than a week. We tried various methods, e.g. using a fast intermediate diskpool, going simultaneously to our 6 LTO6 tape drives, etc but each "cp" (tsm client) process that TSM would use seemed to be very slow. We tweaked just about every setting to optimize performance but to really no avail. When going to the disk pool this is what should have happened : GPFS => relatively fast random I/O (on par with rsync/tar piped to tar) tsm disk cache => large sequential I/O's for each disk pool volume => tape this is what really happened GPFS => slow random I/O => tsm disk pool cache => slow random I/O => tape so instead we did : GPFS => slow random I/O (TSM) => tape ..but was the same speed as going through the tsm disk pool cache. We closely monitored the network, disk, memory, cpu, on the tsm server and none of the hardware or capabilities of the server were the bottleneck, it was all in TSM. If anyone has seen this sort of behavior and has some pointers/hints at improving performance I'd be glad to hear it. Thanks, Sabuj On Thu, Mar 20, 2014 at 5:21 PM, Grace Tsai <gtsai@slac.stanford.edu> wrote: Hi, Is TSM/HSM 7.1 compatible with GPFS 3.5.0.12 ? Thanks. Grace _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss _______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
the very first challenge is to find what data has changed. the way TSM does this is by crawling trough your filesystem, looking at mtime on each file to find out which file has changed. think about a ls -Rl on your filesystem root. this
The mmbackup mmapplypolicy phase is not a problem. It's going to take as long as it's going to take. We're using 5 RAID1 SAS SSD NSD's for metadata and it takes ~1 hour to do the traversal through 157 million files.
the 2nd challenge is if you have to backup a very large number (millions) of very small (<32k) files. the main issue here is that for each file TSM issues a random i/o to GPFS, one at a time, so your throughput directly correlates with size of the files and latency for a single file read operation. if you are not on 3.5 TL3 and/or your files don't fit into the inode its actually even 2 random i/os that are issued as you need to read the metadata followed by the data block for the file. in this scenario you can only do 2 things :
The problem here is why is a single rsync or tar | tar process orders of magnitude faster than a single tsm client at pulling data off of GPFS into the same backup system's disk (e.g. disk pool)? It's not a problem with GPFS, it's a problem with TSM itself. We tried various things, e.g. : 1) changed commmethod to sharedmem 2) increase txnbytelimit to 10G 3) increased movesizethresh to the same as txnbytelimit (10G) 4) increase diskbufsize to 1023kb 5) increased txngroupmax to 65000 6) increased movesizethresh to 10240 the next problem is that one would expect backups to tape to do straight sequential I/O to tape, in the case of putting the files to the disk pool before moving them to tape, it did the same random I/O to tape even with 8GB disk pool chunks. We haven't tried the file pool option yet, but we've been told that it'll do the same thing. If I'm tar'ing or dd'ing large files to tape that's the most efficient, why doesn't TSM do something similar?
1. parallelism - mmbackup again starts multiple processes in parallel to speed up this phase of the backup
..use multiple clients. This would help, but again I'm trying to get a single tsm client to be on par with a single "cp" process. Thanks, Sabuj
It's also not a problem with the TSM database, which is sitting on a RAID10 of 4 SSDs. I'll watch dstat and it'll basically do a large 500MB/s write to the LUN every 30 mins - hour and then just sit idle waiting for more data. On Fri, Mar 21, 2014 at 5:16 PM, Sabuj Pattanayek <sabujp@gmail.com> wrote:
the very first challenge is to find what data has changed. the way TSM
does this is by crawling trough your filesystem, looking at mtime on each file to find out which file has changed. think about a ls -Rl on your filesystem root. this
The mmbackup mmapplypolicy phase is not a problem. It's going to take as long as it's going to take. We're using 5 RAID1 SAS SSD NSD's for metadata and it takes ~1 hour to do the traversal through 157 million files.
the 2nd challenge is if you have to backup a very large number (millions) of very small (<32k) files. the main issue here is that for each file TSM issues a random i/o to GPFS, one at a time, so your throughput directly correlates with size of the files and latency for a single file read operation. if you are not on 3.5 TL3 and/or your files don't fit into the inode its actually even 2 random i/os that are issued as you need to read the metadata followed by the data block for the file. in this scenario you can only do 2 things :
The problem here is why is a single rsync or tar | tar process orders of magnitude faster than a single tsm client at pulling data off of GPFS into the same backup system's disk (e.g. disk pool)? It's not a problem with GPFS, it's a problem with TSM itself. We tried various things, e.g. :
1) changed commmethod to sharedmem 2) increase txnbytelimit to 10G 3) increased movesizethresh to the same as txnbytelimit (10G) 4) increase diskbufsize to 1023kb 5) increased txngroupmax to 65000 6) increased movesizethresh to 10240
the next problem is that one would expect backups to tape to do straight sequential I/O to tape, in the case of putting the files to the disk pool before moving them to tape, it did the same random I/O to tape even with 8GB disk pool chunks. We haven't tried the file pool option yet, but we've been told that it'll do the same thing. If I'm tar'ing or dd'ing large files to tape that's the most efficient, why doesn't TSM do something similar?
1. parallelism - mmbackup again starts multiple processes in parallel to speed up this phase of the backup
..use multiple clients. This would help, but again I'm trying to get a single tsm client to be on par with a single "cp" process.
Thanks, Sabuj
Hi,
the very first challenge is to find what data has changed. the way TSM does this is by crawling trough your filesystem, looking at mtime on each file to find out which file has changed. think about a ls -Rl on your filesystem root. this
The mmbackup mmapplypolicy phase is not a problem. It's going to take as long as it's going to take. We're using 5 RAID1 SAS SSD NSD's for metadata and it takes ~1 hour to do the traversal through 157 million files.
that sounds too long, if you want i could take a look at your gpfs config and make suggestions on how to further improve this. if you want me to do that please send me a email with the output of mmlscluster,mmlsconfig,mmlsnsd and mmlsfs all to oehmes@us.ibm.com
the 2nd challenge is if you have to backup a very large number (millions) of very small (<32k) files. the main issue here is that for each file TSM issues a random i/o to GPFS, one at a time, so your throughput directly correlates with size of the files and latency for a single file read operation. if you are not on 3.5 TL3 and/or your files don't fit into the inode its actually even 2 random i/os that are issued as you need to read the metadata followed by the data block for the file. in this scenario you can only do 2 things :
The problem here is why is a single rsync or tar | tar process orders of magnitude faster than a single tsm client at pulling data off of GPFS into the same backup system's disk (e.g. disk pool)? It's not a problem with GPFS, it's a problem with TSM itself. We tried various things, e.g. :
1) changed commmethod to sharedmem 2) increase txnbytelimit to 10G 3) increased movesizethresh to the same as txnbytelimit (10G) 4) increase diskbufsize to 1023kb 5) increased txngroupmax to 65000 6) increased movesizethresh to 10240
the next problem is that one would expect backups to tape to do straight sequential I/O to tape, in the case of putting the files to the disk pool before moving them to tape, it did the same random I/O to tape even with 8GB disk pool chunks. We haven't tried the file pool option yet, but we've been told that it'll do the same thing.
i assume you refer to using raw disks behind TSM ? i never used them, in fact the fastest TSM Storage you can build for TSM is to use a GPFS filesystem and put files into the filesystem and create a pool with sequential file volumes for TSM. if you match the gpfs blocksize with the raid blocksize you get very high throughputs to the TSM pool, i have customers who see >600 MB/sec backup throughput to a single TSM Server in production.
If I'm tar'ing or dd'ing large files to tape that's the most efficient, why doesn't TSM do something similar?
i can't tell you much about the tape part of TSM but i can help you speed up the ingest into a TSM Server leveraging a Filesystem pool if you want.
1. parallelism - mmbackup again starts multiple processes in parallel to speed up this phase of the backup
..use multiple clients. This would help, but again I'm trying to get a single tsm client to be on par with a single "cp" process.
cp uses buffered write operation and therefore will not sync the data to the disk, which is why its faster. TSM guarantees each write operation to to be committed to stable storage before it ever returns to the client, this is most likely the difference you see. don't get me wrong, i don't try to defend the way TSM works, i just know that there are several ways to make it fast and i am happy to help with that :-) if you need a single TSM client to run faster, then option 2 (helper process) would fix that. if you want to try something out send me a email and i can help you with that.
Thanks, Sabuj_______________________________________________ gpfsug-discuss mailing list gpfsug-discuss at gpfsug.org http://gpfsug.org/mailman/listinfo/gpfsug-discuss
participants (3)
-
Grace Tsai -
Sabuj Pattanayek -
Sven Oehme
