カテゴリー: Linux

  • OpenFOAMの計算がSLURMクラスターでどのように動作するか

    OpenFOAMの計算がSLURMクラスターでどのように動作するか


    1. ユーザー操作:
      • ユーザーはSSHを使用してクラスターにログイン
      • OpenFOAMのケースディレクトリとSLURMジョブスクリプトを準備
      • sbatchsrunコマンドでジョブを投入
    2. SLURM管理:
      • SLURMコントローラーがジョブを受け付け
      • ジョブスケジューラーが優先順位と利用可能なリソースを評価
      • 要求されたリソースに基づいて適切な計算ノードを割り当て
    3. 計算プロセス:
      • ノードが割り当てられると、OpenFOAM計算が開始
      • decomposeParで自動的にケースが分割される
      • 各計算ノードが領域の一部を担当
      • MPI(Message Passing Interface)でノード間通信
    4. OpenFOAMワークフロー:
      • decomposePar:領域を並列部分に分割
      • 並列ソルバーが複数ノードで同時実行
      • reconstructPar:結果を単一のソリューションに統合
    5. ストレージシステム:
      • 共有ストレージから入力ファイルを読み込み
      • 結果を共有ストレージに書き込み
      • すべてのノードが同じファイルシステムにアクセス可能

    #!/bin/bash
    #SBATCH --job-name=openfoam_calc
    #SBATCH --nodes=4
    #SBATCH --ntasks-per-node=32
    #SBATCH --time=24:00:00
    #SBATCH --partition=compute
    
    # OpenFOAMモジュールの読み込み
    module load openfoam
    
    # ケースの分割
    decomposePar
    
    # 並列でソルバーを実行
    mpirun simpleFoam -parallel
    
    # 結果の再構築
    reconstructPar

  • Rocky Linuxの異なるデスクトップ環境の違い

    Rocky Linuxの異なるデスクトップ環境の違い

    デスクトップ環境説明リソース使用量
    GNOMEモダンで使いやすく、多機能で洗練されたインターフェース。中〜高
    KDE Plasmaカスタマイズ可能で多機能、視覚的に魅力的なインターフェース。中〜高
    XFCE軽量で高速、古いハードウェアやシンプルなインターフェースを好むユーザーに適している。
    MATEGNOME 2の継続で、従来のデスクトップ体験を提供し、リソース使用量が少ない。低〜中
    LXDE非常に軽量で高速、古いハードウェアやミニマリストな設定に最適。非常に低い
    Cinnamon親しみやすいレイアウトでモダンなデスクトップ環境を提供し、パフォーマンスと美観のバランスが良い。

  • sudo apt install slurm

    sudo apt install slurm

    server@user1:~$ slurm
    Command 'slurm' not found, but can be installed with:
    sudo apt install slurm
    
    server@user1:~$ sudo apt install slurm
    [sudo] password for user1:
    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    The following NEW packages will be installed:
      slurm
    0 upgraded, 1 newly installed, 0 to remove and 59 not upgraded.
    Need to get 19.2 kB of archives.
    After this operation, 67.6 kB of additional disk space will be used.
    Get:1 http://archive.ubuntu.com/ubuntu focal/universe amd64 slurm amd64 0.4.3-2build4 [19.2 kB]
    Fetched 19.2 kB in 1s (21.5 kB/s)
    Selecting previously unselected package slurm.
    (Reading database ... 72507 files and directories currently installed.)
    Preparing to unpack .../slurm_0.4.3-2build4_amd64.deb ...
    Unpacking slurm (0.4.3-2build4) ...
    Setting up slurm (0.4.3-2build4) ...
    Processing triggers for man-db (2.9.1-1) ...
    
    server@user1:~$ slurm -version
    slurm: invalid option -- 'v'
    slurm 0.4.3 - https://github.com/mattthias/slurm
    
    usage: slurm [-hHz] [-csl] [-d delay] [-t theme] -i interface
    
        -h            print help
        -z            zero counters at startup
        -d delay      delay between refreshs in seconds (1 < delay < 300)
        -c            old classic/combined view
        -s            split window mode with stats
        -l            large split window mode
        -L            enable TX/RX 'leds'
        -i interface  select network interface
        -t theme      select a theme
    

  • kali linux tips

    • lsb_release -a
    • cat /etc/os-release
    • hostnamectl
    • sudo date –set=”2022/07/12 13:00″ //時間合わせは大事
    • apt install ntpdate
      ntpdate ntp.nict.jp
    • sudo apt update
    • sudo apt full-upgrade -y
    • sudo apt install ibus-anthy

    222 View Count