Hello again! Just wanted to ask again about bbnorm...
# mag
h
Hello again! Just wanted to ask again about bbnorm. I see that around half of my samples are still failing this step, as bbnorm is running for over 48 hours, thus restarting the process. I find this very weird, as most of the other samples passed through. However I see that the ones that failed are a bit higher on the average read counts in total compared to the ones that passed, but this shouldn't account for the difference in time usage i think. I get the following from the logs:
Copy code
bbnorm.log:

Exception in thread "Thread-98" java.lang.RuntimeException: java.io.IOException: Broken pipe
        at stream.ReadStreamByteWriter.run(ReadStreamByteWriter.java:32)
Caused by: java.io.IOException: Broken pipe
        at java.base/java.io.FileOutputStream.writeBytes(Native Method)
        at java.base/java.io.FileOutputStream.write(FileOutputStream.java:400)
        at java.base/java.lang.Process$PipeOutputStream.write(Process.java:907)
        at java.base/java.io.BufferedOutputStream.implWrite(BufferedOutputStream.java:217)
        at java.base/java.io.BufferedOutputStream.write(BufferedOutputStream.java:206)
        at stream.ReadStreamByteWriter.writeFastq(ReadStreamByteWriter.java:452)
        at stream.ReadStreamByteWriter.processJobs(ReadStreamByteWriter.java:97)
        at stream.ReadStreamByteWriter.run2(ReadStreamByteWriter.java:42)
        at stream.ReadStreamByteWriter.run(ReadStreamByteWriter.java:28)
Exception in thread "Thread-111" java.lang.RuntimeException: Writing to a terminated thread.
        at stream.ConcurrentGenericReadOutputStream.write(ConcurrentGenericReadOutputStream.java:202)
        at stream.ConcurrentGenericReadOutputStream.addOrdered(ConcurrentGenericReadOutputStream.java:188)
        at stream.ConcurrentGenericReadOutputStream.add(ConcurrentGenericReadOutputStream.java:93)
        at jgi.KmerNormalize$ProcessThread.normalizeInThread(KmerNormalize.java:3150)
        at jgi.KmerNormalize$ProcessThread.run(KmerNormalize.java:2822)
Exception in thread "Thread-100" java.lang.RuntimeException: java.io.IOException: Broken pipe
        at stream.ReadStreamByteWriter.run(ReadStreamByteWriter.java:32)
Caused by: java.io.IOException: Broken pipe
        at java.base/java.io.FileOutputStream.writeBytes(Native Method)
        at java.base/java.io.FileOutputStream.write(FileOutputStream.java:400)
        at java.base/java.lang.Process$PipeOutputStream.write(Process.java:907)
        at java.base/java.io.BufferedOutputStream.implWrite(BufferedOutputStream.java:217)
        at java.base/java.io.BufferedOutputStream.write(BufferedOutputStream.java:206)
        at stream.ReadStreamByteWriter.writeFastq(ReadStreamByteWriter.java:468)
        at stream.ReadStreamByteWriter.processJobs(ReadStreamByteWriter.java:97)
        at stream.ReadStreamByteWriter.run2(ReadStreamByteWriter.java:42)
        at stream.ReadStreamByteWriter.run(ReadStreamByteWriter.java:28)
Output buffer became full; key 507145 waiting on 506892.

.command.err:
INFO:    underlay of /etc/localtime required more than 50 (74) bind mounts

.exitcode:
140

Memory stats: 
Allocated: 500
Used: 337

Time: 
Allocated: 48H
Elapsed: 48 H
Any ideas here?
j
Exit code 140 is typically out of memory
@Daniel Lundin I forget if I asked before... but how much memory were oyu seeing previously?
h
Yes it might be, but it's also out of time. It doesn't look like it used all the memory allocated here, 337/500, but not sure if that is correct
j
Ah I see, do you have a 2day timeout of the job process?
But if you have a 140 exit code it implies it failed... why that nhasn't been reported to nextflow is wierd (if it's still running)
h
yes the slurm log says 48H elapsed of the 48H allocated, but not sure if that is connected to the other errors. I am suspecting that the error listed above stops bbnorm somehow, but keeps the job running anyway, making it time out
but i'm no expert!
perhaps there are some options in bbnorm that can reduce the computational burden a bit? like adjusting the bitsize or disabling assertions?
j
I have no idea sorry1 I've never used it... Daniel Lundin is the best person to ask as the person who implemented it
h
No worries! Thanks for pinging him 🙂
d
It does use quite more memory than I thought when implementing it. Which sort of takes away the point of it. Did you ask 500 GiB? With that amount maybe it's possible to do the assemblies directly instead?
h
I tried running the assemblies directly, but that also took quite a long time. But given the issues here it might be feasible to just increase requirements for the assembly instead?
d
If you can get 1 TiB nodes and run one assembly per sample
h
I will give that a try!