BLAST memory usage
0
1
Entering edit mode
7.5 years ago

Dear all,

I'm trying to test the blast 2.2.20 performance. I use Uniprot/Trembl and some query with different size to search against it using blastp. But why blast don't use all of my memory. How much memory size it need.

I read some papers about caching database on RAM.However, when i use 128MB RAM or 4GB RAM the execution time is approximately equal.

edit : 2018-09-03

I wrote a paper to solve this issue which is accessible by the following link http://www.eurekaselect.com/162633/article?trendmd-shared=3

blast • 7.3k views
ADD COMMENT
0
Entering edit mode

Dear Majid, Hi

I guess that the CPU with -num_threads is more important in the Blast performance.

and have a look at Gnu Parallel, it is interesting.

ADD REPLY
0
Entering edit mode

No! i use the basic command

$ blastall -d uniprot_trembl.fasta -i queryL.fasta -p blastp -o pp1.txt

ADD REPLY
0
Entering edit mode

In regard to CPU or threads (NOT RAM) it would be differece in blast performance using multiple CPU cores.

e.g:

blastx -query Trinity.fasta -db uniprot.fasta -out blast-result -evalue 1e-20 -num_threads 6 -max_target_seqs 1 -outfmt 6

and

blastx -query Trinity.fasta -db uniprot.fasta -out blast-result -evalue 1e-20 -num_threads 32 -max_target_seqs 1 -outfmt 6

ADD REPLY
0
Entering edit mode

I have just one CPU core! try to test memory impact on BLAST.

ADD REPLY
0
Entering edit mode

Majid jan,

Maybe the memory has no impact on local blast performance at all ! as I can not remember any option/switch in the blast script for feeding more RAM to Blast.

Have a look at these options, please.

ADD REPLY
0
Entering edit mode

Farbod jan,

I read in some paper that memory has a major impact on BLAST and if the database size be more than memory size, the performance significantly degrade. for example in mpiBLAST paper has a section about low memory performance.

Merci az shoma ;-)

ADD REPLY
0
Entering edit mode

I suppose you are referring to creating a RAMDisk/RAMDrive (or equivalent) to cache the db in memory? Likely 124MB or 4GB (not sure how big the index files for Uniprot are) of RAM would be enough for that purpose.

ADD REPLY
0
Entering edit mode

I use virtual machines to test it. I don't use RAMDisk. I try to test the impact of memory on BLAST. But in my case the 4GB has not any superiority on 128MB. the file size is as follows:

  • .pin 20MB .psd 96MB .psq 980MB .phr 410MB
ADD REPLY
0
Entering edit mode

Cool, thanks for updating and sharing!

ADD REPLY
0
Entering edit mode

How to cache the db into memory? Is there an operable method?

ADD REPLY

Login before adding your answer.

Traffic: 2483 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6