# Upgrading a suite to the latest UM version

**URL:** https://cms-helpdesk.ncas.ac.uk/t/upgrading-a-suite-to-the-latest-um-version/924
**Category:** Unified Model
**Tags:** ARCHER2
**Created:** [24 February 2023 11:04 UTC](https://cms-helpdesk.ncas.ac.uk/t/upgrading-a-suite-to-the-latest-um-version/924 "2023-02-24T11:04:53Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![AnnetteOsprey](https://dub1.discourse-cdn.com/flex013/user_avatar/cms-helpdesk.ncas.ac.uk/annetteosprey/32/27_2.png) [@AnnetteOsprey](https://cms-helpdesk.ncas.ac.uk/u/AnnetteOsprey)
#### Post date: [24 February 2023 11:04 UTC](https://cms-helpdesk.ncas.ac.uk/t/upgrading-a-suite-to-the-latest-um-version/924/1 "2023-02-24T11:04:53Z")

</div>

Hi Torsten,

Continuing our email conversation…

You are trying to upgrade an N1280 suite from vn11.6 to vn13.1. We’ve advised to use the rose upgrade macros to update through each version one at a time. See: [Upgrading suite to vn12.0 - #4 by dcase](https://cms-helpdesk.ncas.ac.uk/t/upgrading-suite-to-vn12-0/299/4)

Once you get to vn13.1 the fcm\_make app will need a config branch. In the rose\_app.conf file, set the following:

```auto
config_root_path=fcm:um.x-br/dev/simonwilson/vn13.1_comorph_compile

```

You also need to upgrade one of the code branches. To do this:

Create a new branch:

```auto
fcm bc remove_defensive_checks fcm:um.x-tr@vn13.1

```

Check out the branch:

```auto
fcm co fcm:um.x-br/dev/torstenauerswald/vn13.1_remove_defensive_checks
cd vn13.1_remove_defensive_checks

```

Merge in the vn11.6 branch and commit the changes

```auto
fcm merge fcm:um.x-br/dev/annetteosprey/vn11.6_remove_defensive_checks
fcm commit

```

Annette

---

<div class="post-metadata">

### Author: ![AnnetteOsprey](https://dub1.discourse-cdn.com/flex013/user_avatar/cms-helpdesk.ncas.ac.uk/annetteosprey/32/27_2.png) [@AnnetteOsprey](https://cms-helpdesk.ncas.ac.uk/u/AnnetteOsprey)
#### Post date: [24 February 2023 11:12 UTC](https://cms-helpdesk.ncas.ac.uk/t/upgrading-a-suite-to-the-latest-um-version/924/2 "2023-02-24T11:12:45Z")

</div>

Well I should say that before your commit the branch, check there aren’t any merge errors, and the changes have been copied in correctly!

Annette

---

<div class="post-metadata">

### Author: ![Torsten](https://avatars.discourse-cdn.com/v4/letter/t/8e8cbc/32.png) [@Torsten](https://cms-helpdesk.ncas.ac.uk/u/Torsten)
#### Post date: [1 March 2023 16:37 UTC](https://cms-helpdesk.ncas.ac.uk/t/upgrading-a-suite-to-the-latest-um-version/924/3 "2023-03-01T16:37:29Z")

</div>

Hi Annette,

Thanks for the suggestions. I followed your instructions and everything seemed to work. My suite is now at version 13.1 and I was able to create the branch for the defensive checks for version 13.1. However, when I try to run my suite the fcm\_make2\_um task fails with the following error:

slurmstepd: error: Detected 1 oom-kill event(s) in StepId=3183164.batch. Some of your processes may have been killed by the cgroup out-of-memory handler.

Since it seems to indicate that it ran out of memory I tried to change the number of tasks in archer2.rc, hoping that I would get access to more RAM. I set ntasks=4 and ROSE\_TASK\_N\_JOBS = 4 (both were set to 1 before) in the [[HPC\_SERIAL]] section.

The compilation process did run 20 min longer but then still crashed with the same error. I also did a test where I updated the suite to version 11.7 and didn’t have any problems there.

Do you have any suggestions what I could do to fix this?

Cheers,  
Torsten

---

<div class="post-metadata">

### Author: ![grenville](https://dub1.discourse-cdn.com/flex013/user_avatar/cms-helpdesk.ncas.ac.uk/grenville/32/29_2.png) [@grenville](https://cms-helpdesk.ncas.ac.uk/u/grenville)
#### Post date: [1 March 2023 16:57 UTC](https://cms-helpdesk.ncas.ac.uk/t/upgrading-a-suite-to-the-latest-um-version/924/4 "2023-03-01T16:57:25Z")

</div>

Torsten, see

`https://docs.archer2.ac.uk/user-guide/analysis/`

and search for

```auto
# Define memory required for this jobs. By default, you would 
# get just under 2 GB, but you can ask for up to 125 GB.
#SBATCH --mem=4G

```

We’d be interested to know what memory is required.

Grenville

---

<div class="post-metadata">

### Author: ![Torsten](https://avatars.discourse-cdn.com/v4/letter/t/8e8cbc/32.png) [@Torsten](https://cms-helpdesk.ncas.ac.uk/u/Torsten)
#### Post date: [2 March 2023 08:56 UTC](https://cms-helpdesk.ncas.ac.uk/t/upgrading-a-suite-to-the-latest-um-version/924/5 "2023-03-02T08:56:43Z")

</div>

Thanks Grenville. That solved my problem. I tried 8 GB but it still failed with the same error. With 16 GB it worked.

The relevant part in my archer2.rc file looks like this now:

```
[[UMBUILD_RESOURCE]]
    inherit = HPC_SERIAL
    [[[job]]]
        execution time limit = PT90M
    [[[directives]]]
        --mem=16G

```

Thanks,  
Torsten

---

<div class="post-metadata">

### Author: ![Torsten](https://avatars.discourse-cdn.com/v4/letter/t/8e8cbc/32.png) [@Torsten](https://cms-helpdesk.ncas.ac.uk/u/Torsten)
#### Post date: [3 March 2023 14:24 UTC](https://cms-helpdesk.ncas.ac.uk/t/upgrading-a-suite-to-the-latest-um-version/924/6 "2023-03-03T14:24:54Z")

</div>

Hello,

After successfully compiling the UM, I faced a problem with the UM run itself. The atmos\_main task runs really slow now. In vn11.7 one time step would take about 1s or so. In vn 13.1 it takes about 50s. A 1 month simulation in vn11.7 took about 4.5h (10800 time steps). With vn13.1 I completed 892 time steps in 12h.

Is there any experience with performance issues after upgrading to newer UM versions? I thought maybe some compile options need to be changed? I did make sure to set the config\_root\_path the way Annette suggested above. The config\_revision field is empty.

I am running suite u-cv063.

I hope you can point me in the right direction.

Torsten

```auto

```

---

<div class="post-metadata">

### Author: ![grenville](https://dub1.discourse-cdn.com/flex013/user_avatar/cms-helpdesk.ncas.ac.uk/grenville/32/29_2.png) [@grenville](https://cms-helpdesk.ncas.ac.uk/u/grenville)
#### Post date: [7 March 2023 08:14 UTC](https://cms-helpdesk.ncas.ac.uk/t/upgrading-a-suite-to-the-latest-um-version/924/7 "2023-03-07T08:14:08Z")

</div>

Torsten

Can we rule out ARCHER2 being very slow? Is the slow performance repeatable?

Grenville

---

<div class="post-metadata">

### Author: ![Torsten](https://avatars.discourse-cdn.com/v4/letter/t/8e8cbc/32.png) [@Torsten](https://cms-helpdesk.ncas.ac.uk/u/Torsten)
#### Post date: [7 March 2023 16:17 UTC](https://cms-helpdesk.ncas.ac.uk/t/upgrading-a-suite-to-the-latest-um-version/924/8 "2023-03-07T16:17:20Z")

</div>

Thanks Grenville. I re-submitted the run and this time it ran at normal speed (slightly faster than in vn11.7).

Torsten

---

<div class="post-metadata">

### Author: ![RosalynHatcher](https://dub1.discourse-cdn.com/flex013/user_avatar/cms-helpdesk.ncas.ac.uk/rosalynhatcher/32/11_2.png) [@RosalynHatcher](https://cms-helpdesk.ncas.ac.uk/u/RosalynHatcher)
#### Post date: [19 May 2023 15:03 UTC](https://cms-helpdesk.ncas.ac.uk/t/upgrading-a-suite-to-the-latest-um-version/924/9 "2023-05-19T15:03:59Z")

</div>


