terminal intermittent activity

Joined
May 5, 2017
Messages
2
Reaction score
0
Points
1
Hi,

I am in the field of molecular biology, and I am currently aligning a huge file with DNA sequences to another file using terminal. There are all kinds of programs for this, I use a program called bowtie. The file to align is ±10GB. I used to do this on my macbook pro using an terminal account quite easily, where it would run a few hours to do this. However, for some reason the same analysis now takes 2-3 days to run, I don't know why. What I can see, is that the activity in terminal seems to be intermittent. It analyses for a couple minutes, then it stops for a long time, where it occasionally 'reactivates' and starts aligning again. I have the same when analyzing on an external drive, or on the hard-drive.

Does anyone know how this can happen? And more importantly, how to fix it and keep the analysis going till complete? This would be much appreciated!
Cheers
RJ
 

Raz0rEdge

Well-known member
Staff member
Moderator
Joined
Jul 17, 2009
Messages
15,762
Reaction score
2,100
Points
113
Location
MA
Your Mac's Specs
2022 Mac Studio M1 Max, 2023 M2 MBA
Welcome to Mac-Forums..

With the application running, open up another terminal window or tab and run the 'top' command and find the 'Bowtie' app and see what its state is. It's possible that with a large file you are spending a lot of it waiting to load chunks of data and then processing it. Is it normal to have to process files of that size? Can that large file be broken down into smaller files and then the output put back together?
 
OP
R
Joined
May 5, 2017
Messages
2
Reaction score
0
Points
1
Hi, I am not sure how to check the status. Any hints?
Regarding the size, this cannot be changed easily, some files are even much bigger, up to 100GB. This is sequencing data to sequence 600 million DNA molecules at the same time.... the output files are huge
 

Raz0rEdge

Well-known member
Staff member
Moderator
Joined
Jul 17, 2009
Messages
15,762
Reaction score
2,100
Points
113
Location
MA
Your Mac's Specs
2022 Mac Studio M1 Max, 2023 M2 MBA
Running the 'top' command in a Terminal window/tab will show you the status for all the applications. They will be things like sleeping, running, etc. In the case of Bowtie, it should likely be running all the time to ensure that its constantly processing the data..
 
M

MacInWin

Guest
What you might do is to open Activity Monitor in the Utilities folder, let it be parked and running on the screen. Now go to terminal and start the process working. Watch Activity Monitor on the CPU tab to see what processes are using the CPU. You can sort the column to put the heavy user at the top by clicking on the column header. Follow the column labeled "% CPU" to see if terminal shows up and stays high. From that you can at least see if Terminal is, in fact, intermittent.
 
Joined
Aug 5, 2008
Messages
346
Reaction score
14
Points
18
Location
Central New York
Look into running Bowtie by invoking it with nice. It runs the process with an altered priority.
For example: nice -20 Bowtie -f dnadata

[edit: that may need to be nice --20 Bowtie -f dnadata (double hyphen to enter a negative value) ]
 
Last edited:

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top