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
MAX_N_PID should be 4194304 on 64bit machines #27
Comments
|
please do nt set an hard coded value. instead use the value that the OS and kernel may supply MAX PID can be obtain via 2 calls it can also be determined programaticaly the maxpid value is set by the os and can be edited by admins why 4194304 ? size_t examples: regards Eric |
|
Thanks a lot Eric,
This is very useful. I will implement this ASAP
Cedric
Le 1/7/20 à 18:03, Eric Deveaud a écrit :
please do nt set an hard coded value. instead use the value that the
OS and kernel may supply
MAX PID can be obtain via 2 calls
eg:
|cat /proc/sys/kernel/pid_max|
or
|sysctl kernel.pid_max|
it can also be determined programaticaly
the maxpid value is set by the os and can be edited by admins why
4194304 ? size_t
examples:
|maestro-submit:~ > uname -s -p -o -m Linux x86_64 x86_64 GNU/Linux
maestro-submit:~ > sysctl kernel.pid_max kernel.pid_max = 65536 |
|tars-submit0:~ > uname -s -p -o -m Linux x86_64 x86_64 GNU/Linux
tars-submit0:~ > sysctl kernel.pid_max kernel.pid_max = 57344 |
regards
Eric
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#27 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABML3KLV5AAV3SJZNL72OSDRZNM3RANCNFSM4OBHGCAA>.
--
##########################################
Dr Cedric Notredame, PhD
Group Leader
Notredame's lab - Comparative Bioinformatics Group
Bioinformatics and Genomics Programme
Room 440.03
Centre de Regulació Genòmica (CRG)
Dr. Aiguader, 88
08003 Barcelona
Spain
Ph# + 34 93 316 02 71
Fax# + 34 93 316 00 99
Mobile# + 34 66 250 47 82
email cedric.notredame@crg.eu
url www.tcoffee.org
blog cedricnotredame.blogspot.com
ORC-ID: 0000-0003-1461-0988
###########################################
|
Yes, this is a wise solution.
Do you mean you are going to implement taking the |
|
yes, I will implement a procedure that uses the kernel value.
Unfortunately, I have just realized there does not seem to be any simple
programmatic way to do this on mac OSX, does any body have a suggestion
on this?
Cedric
Le 1/7/20 à 18:15, Andrius Merkys a écrit :
please do nt set an hard coded value. instead use the value that
the OS and kernel may supply
Yes, this is a wise solution.
This is very useful. I will implement this ASAP
Do you mean you are going to implement taking the |MAX_N_PID| from the
kernel in tcoffee build system?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#27 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABML3KIADBYKRNE632C4NSTRZNOIPANCNFSM4OBHGCAA>.
--
##########################################
Dr Cedric Notredame, PhD
Group Leader
Notredame's lab - Comparative Bioinformatics Group
Bioinformatics and Genomics Programme
Room 440.03
Centre de Regulació Genòmica (CRG)
Dr. Aiguader, 88
08003 Barcelona
Spain
Ph# + 34 93 316 02 71
Fax# + 34 93 316 00 99
Mobile# + 34 66 250 47 82
email cedric.notredame@crg.eu
url www.tcoffee.org
blog cedricnotredame.blogspot.com
ORC-ID: 0000-0003-1461-0988
###########################################
|
|
on my mac (Mojave) man 2 setaudit_addr says: http://www.opensource.apple.com/source/xnu/xnu-1699.24.23/bsd/sys/proc_internal.h Eric |
|
https://apple.stackexchange.com/questions/51119/whats-the-maximum-pid-for-mac-os-x
Seems like for Mac OS it is ok to hardcode the limit to 99998 |
to workaround cbcrg/tcoffee#27
Merge PR #25932, commits were: * Add [de]activate scripts to workaround cbcrg/tcoffee#27 * Skip osx Just running `t_coffee` fails with: ``` 04:33:21 BIOCONDA INFO (OUT) -max_n_proc D [0] 1 04:33:21 BIOCONDA INFO (OUT) 04:33:21 BIOCONDA INFO (OUT) 04:33:21 BIOCONDA INFO (OUT) ************************************************************************************************* 04:33:21 BIOCONDA INFO (OUT) * FULL TRACE BACK PID: 2901 04:33:21 BIOCONDA INFO (OUT) 2901 -- ERROR: COREDUMP: T-COFFEE Version_13.45.32.7d81f5b (2020-12-18 11:45:26 - Revision 7d7e789 - Build 647) 04:33:21 BIOCONDA INFO (OUT) ************************************************************************************************* 04:33:21 BIOCONDA INFO (OUT) 04:33:21 BIOCONDA INFO (OUT) ****************************************************************** 04:33:21 BIOCONDA INFO (OUT) * Abnormal Termination 04:33:21 BIOCONDA INFO (OUT) * Job NOT Completed:[T-COFFEE, Version_13.45.32.7d81f5b] 04:33:21 BIOCONDA INFO (OUT) * Please CHECK: 04:33:21 BIOCONDA INFO (OUT) * -1 The format of your Input Files 04:33:21 BIOCONDA INFO (OUT) * -2 The parameters 04:33:21 BIOCONDA INFO (OUT) * -3 The use of special characters in sequence names: 04:33:21 BIOCONDA INFO (OUT) * (@, |, %...) 04:33:21 BIOCONDA INFO (OUT) * -4 The Online Doc (http://www.tcoffee.org) 04:33:21 BIOCONDA INFO (OUT) * -5 re-run your CL (see below) with the -debug option. This will produce a debug file you can send us. 04:33:21 BIOCONDA INFO (OUT) * 04:33:21 BIOCONDA INFO (OUT) * NO 04:33:21 BIOCONDA INFO (OUT) * to: 04:33:21 BIOCONDA INFO (OUT) * cedric.notredame@gmail.com 04:33:21 BIOCONDA INFO (OUT) * If you run T-Coffee over the WEB: 04:33:21 BIOCONDA INFO (OUT) * Windows Cut and Paste is sometimes erratic and 04:33:21 BIOCONDA INFO (OUT) * it can loose carriage returns. If you suspect this, 04:33:21 BIOCONDA INFO (OUT) * try to cut and paste through an intermediate application 04:33:21 BIOCONDA INFO (OUT) * (word pad) and inspect the results 04:33:21 BIOCONDA INFO (OUT) 04:33:21 BIOCONDA INFO (OUT) 04:33:21 BIOCONDA INFO (OUT) * CONFIDENTIALITY: 04:33:21 BIOCONDA INFO (OUT) * The File NO may contain your personal DATA 04:33:21 BIOCONDA INFO (OUT) * Remove ALL confidential DATA from this file BEFORE sending it 04:33:21 BIOCONDA INFO (OUT) ****************************************************************** 04:33:21 BIOCONDA INFO (OUT) # Command Line: t_coffee [PROGRAM:T-COFFEE] 04:33:21 BIOCONDA INFO (OUT) 04:33:21 BIOCONDA INFO (OUT) # TERMINATION STATUS: FAILURE [PROGRAM: T-COFFEE pid 2901 ppid 2895 04:33:21 BIOCONDA INFO (OUT) #CL: t_coffee ``` * Update t-coffee to 13.45.0.4846264
While using t-coffee on Debian, it has been noticed that on 64bit machines process IDs (PIDs) exceed the default
MAX_N_PIDsetting (currently 260000) and starts acting weird (please see the original Debian bug report). I would suggest either increasing the default value ofMAX_N_PIDto 4194304, or doing so only when compiled 64bit machines.The text was updated successfully, but these errors were encountered: