-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
parasail_memalign: posix_memalign failed: Cannot allocate memory #70
Comments
This is a generic out of memory error being reported from the C parasail library. Could you provide more information about the sizes of your input sequences, the "bigger task"? Also the matrix being used and the alignment routine. These all have implications for how much memory is needed to perform the alignment. |
The bigger task is just more sequences to be aligned, sorry for the confusion. So I want to align the mpox sequence *(seq. length ~ 19X,XXX ) from NCBI against a mpox reference. The setting in the code is
I use the same code for both machines. Right now I just use only a single thread to perform the alignment, however, I also plan to apply multiple alignments at the same time (multithread). |
Hi, I found the solution; my server didn't set a swap space to compensate for the RAM. Anyway, Does it is normal to consume so much RAM to do alignment?
|
It's been too long. I'm having to go back through my code to see how much memory it uses. Roughly, an alignment uses 3 NxM arrays and 1 length N array where N is the length of the s1 sequence and M is the length of the s2 sequence. The arrays are typically 4-byte integers. How long is the NCBI mpox reference? The parasail_aligner by default uses a suffix array filter. It can eliminate alignments by only aligning pairs with exact-match segments longer than a cutoff. It uses N + M memory. For your use case, I would turn it off using Also, you used |
Hi,
I have a problem with running the tool on my server, and it was very unclear to me what was happening.
At first, I installed the package (via pip) and tested/integrated it into my application, and then ran my application in my notebook (WSL, ubuntu 20) , which was working fine.
However, when I deploy my application on the server to perform a bigger task.
It said the error as follows
parasail_memalign: posix_memalign failed: Cannot allocate memory
The spec. of my mini server is.
Even though I tried to align with only 1 sample, it still said the same error.
I also tried to install the parasail from the source (e.g.,
python setup.py bdist_wheel
),and I also tried the method from CMake build (https://github.com/jeffdaily/parasail#compiling-and-installing) and manually copied the libparasail.so to the parasail-python shared lib folder. The installation from both methods went well; however, when I executed my application, the problem was still the same.
So maybe, Could you please shed light on what else could be the problems? Does it is something to do with the cross-platform compiling or dependencies?
Best regards,
Note
The text was updated successfully, but these errors were encountered: