2019/10/16
初心者向け颁罢贵の奥别产分野の强化法
CTFのweb分野を勉強しているものの本番でなかなか解けないと悩んでいないでしょうか?そんな悩みを持った方を対象に、私の経験からweb分野の強化法を解説します。
How to strengthen the CTF Web field for beginners !!
Although you are studying the CTF web field, are you worried that you can't solve it in production?
For those who have such problems, I will explain how to strengthen the web field based on my experience.
(study group) https://yahoo-osaka.connpass.com/event/149524/
This document discusses methods for automated machine learning (AutoML) and optimization of hyperparameters. It focuses on accelerating the Nelder-Mead method for hyperparameter optimization using predictive parallel evaluation. Specifically, it proposes using a Gaussian process to model the objective function and perform predictive evaluations in parallel to reduce the number of actual function evaluations needed by the Nelder-Mead method. The results show this approach reduces evaluations by 49-63% compared to baseline methods.
2019/10/16
初心者向け颁罢贵の奥别产分野の强化法
CTFのweb分野を勉強しているものの本番でなかなか解けないと悩んでいないでしょうか?そんな悩みを持った方を対象に、私の経験からweb分野の強化法を解説します。
How to strengthen the CTF Web field for beginners !!
Although you are studying the CTF web field, are you worried that you can't solve it in production?
For those who have such problems, I will explain how to strengthen the web field based on my experience.
(study group) https://yahoo-osaka.connpass.com/event/149524/
This document discusses methods for automated machine learning (AutoML) and optimization of hyperparameters. It focuses on accelerating the Nelder-Mead method for hyperparameter optimization using predictive parallel evaluation. Specifically, it proposes using a Gaussian process to model the objective function and perform predictive evaluations in parallel to reduce the number of actual function evaluations needed by the Nelder-Mead method. The results show this approach reduces evaluations by 49-63% compared to baseline methods.
gcp ja night #31 での発表資料です。
http://gcpja.connpass.com/event/23874/
[補足記事]
http://qiita.com/na_ga/items/d89b320ba098a0941043
http://qiita.com/na_ga/items/7c3cc3f52dd4068fd319
4. Beowulf型スパコン
The Beowulf Project was started at
CESDIS(Center of Excellence in Space
Data & Information Sciences), which is
operated for NASA by USRA in early 1994.
In the summer of 1994 the first Beowulf 16
node cluster was constructed for the Earth
and Space Sciences project, (ESS), at the
Goddard Space Flight Center (GSFC).
The project quickly spread to other NASA
sites, other R&D labs and to universities
around the world.
http://faculty.bus.olemiss.edu/breithel/final
%20backup%20of%20bus620%20summe
r%202000%20from%20mba%20server/sta
n_cook/beowulf.htm
8. ログインノード上の作業例:
Javaプログラム実行
you@gw1:~ (2021-09-26 15:02:28)
$ qlogin
Your job 13862654 ("QLOGIN") has been submitted
waiting for interactive job to be scheduled ...
Your interactive job 13862654 has been successfully scheduled.
Establishing /home/geadmin/UGER/utilbin/lx-amd64/qlogin_wrapper session to
host at139 ...
Last login: Sun Sep 26 14:49:08 2021 from gw1
you@at139:~ (2021-09-26 15:03:36)
$ java -version
Error occurred during initialization of VM
Could not allocate metaspace: 1073741824 bytes
you@at139:~ (2021-09-26 15:03:39)
$
ログインノードでJavaプログラムを起動しようとすると、
メモリが足りない旨のエラーが出ます。
9. ログインノード上の作業例:
Javaプログラムのメモリ問題の解消
you@at139:~ (2021-09-26 15:03:36)
$ java -version
Error occurred during initialization of VM
Could not allocate metaspace: 1073741824 bytes
you@at139:~ (2021-09-26 15:03:39)
$ export MALLOC_ARENA_MAX=2
oogasawa@at139:~ (2021-09-26 15:13:34)
$ java -version
openjdk version "11.0.1" 2018-10-16 LTS
OpenJDK Runtime Environment Zulu11.2+3 (build 11.0.1+13-LTS)
OpenJDK 64-Bit Server VM Zulu11.2+3 (build 11.0.1+13-LTS, mixed mode)
you@at139:~ (2021-09-26 15:13:36)
$
glibc 2.10以降で arena機能が導入されたことにより、Javaプログラムにとってはメモリ確保
量が不必要に大きくなる(常にヒープメモリの他に8GB程とられる)結果となっています。
(Javaから何かNativeコードを呼んでいるのでなければ)環境変数 MALLOC_ARENA_MAX に小
さな値を設定してください。
10. ログインノードで使えるメモリを増やす
にはqlogin 時にメモリ量を指定する
you@gw1:~ (2021-09-26 15:40:28)
$ qlogin -l mem_req=10G -l s_vmem=10G
Your job 13862667 ("QLOGIN") has been submitted
waiting for interactive job to be scheduled ...
Your interactive job 13862667 has been successfully scheduled.
Establishing /home/geadmin/UGER/utilbin/lx-amd64/qlogin_wrapper session to
host at137 ...
Last login: Sun Sep 26 14:45:35 2021 from gw1
you@at137:~ (2021-09-26 15:40:41)
$ java -Xms7G -version
openjdk version "11.0.1" 2018-10-16 LTS
OpenJDK Runtime Environment Zulu11.2+3 (build 11.0.1+13-LTS)
OpenJDK 64-Bit Server VM Zulu11.2+3 (build 11.0.1+13-LTS, mixed mode)
you@at137:~ (2021-09-26 15:41:05)
$
11. 計算に長時間かかる場合や、計算リソースを多く
使う場合はqsubコマンドを使ってください
$ singularity exec /usr/local/biotools/b/bwa:0.7.17--pl5.22.0_2 bwa
index hg38.fasta
WARNING: Skipping mount
/opt/pkg/singularity/3.7.1/var/singularity/mnt/session/etc/resolv.conf
[files]: /etc/resolv.conf doesn't exist in container
[bwa_index] Pack FASTA... 22.05 sec
[bwa_index] Construct BWT for the packed sequence...
[BWTIncCreate] textLength=6189699726, availableWord=447529688
[BWTIncConstructFromPacked] 10 iterations done. 99999998 characters
processed.
…
[bwa_index] Update BWT... [bwt_bwtupdate_core] Failed to allocate
3094849924 bytes at bwtindex.c line 158: Cannot allocate memory
$
例えばBWAを使ってヒトゲノムのインデックスを作る場合に、ログインノード上で以下の
ように実行しても構わないのですが、メモリが足りないなどの問題が発生しがちです。
大規模計算はqsubコマンドを用い、compute node上で計算してください。