# Ihanda ang Operating System

### I-configure ang pagbabantay ng oras

Kailangan nating tiyakin na ang oras sa ating aparato ay pareho sa lahat ng iba pang mga node upang magawa nating mag-sync sa lahat ng iba. Kung hindi tama ang pagbabantay natin sa oras, magsisimulang magkulang sa mga attestations (at mga gantimpala!). Tiyakin ito sa pamamagitan ng pagtakbo:

```bash
timedatectl
```

At siguruhing ang serbisyo ng NTP ay "aktibo". Tingnan ang screenshot sa ibaba.

<figure><img src="/files/QyCd5LsgWg58XgNWfdaC" alt=""><figcaption></figcaption></figure>

Kung hindi, paganahin ito sa pamamagitan ng pagsasagawa ng:

```bash
sudo timedatectl set-ntp on
```

### Lumikha ng Swap Space

Ang swap space (espasyo ng "back-up" memory na nilikha mula sa espasyo ng disk) ay ginagamit upang maiwasan ang mga error sa labas ng memory.

Inirerekomendang espasyo ng swap:

```bash
RAM     Swap Size
  8GB           3GB
 12GB           3GB
 16GB           4GB
 24GB           5GB
 32GB           6GB
 64GB           8GB
128GB          11GB
```

Lumikha ng swap file:

```bash
sudo fallocate -l 6G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
```

Gawing tandaan ng iyong OS ang mga setting ng espasyo ng swap kahit pagkatapos ng reboot:

```bash
sudo cp /etc/fstab /etc/fstab.bak
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab
sudo sysctl vm.swappiness=10
sudo sysctl vm.vfs_cache_pressure=50
sudo nano /etc/sysctl.conf
```

Add the following to the end of the `sysctl.conf` configuration file:

Idagdag ang mga sumusunod sa dulo ng configuration file ng `sysctl.conf`:

```bash
vm.swappiness=10
vm.vfs_cache_pressure=50
```

I-save at i-exit ang file gamit ang `CTRL + O, enter, CTRL + X`

Suriin ang iyong bagong espasyo ng swap gamit ang mga sumusunod na command.

```bash
htop
free -h
```

**Inaasahang output:**

<figure><img src="/files/KvbRF40hIyd2bNWPYI0R" alt=""><figcaption><p><code>htop</code></p></figcaption></figure>

<figure><img src="/files/EJuU3pFP7JMKB5NYvwET" alt=""><figcaption><p><code>free -h</code></p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://bitskwela.gitbook.io/bitskwela-x-lido-cs-fleet-eth-home-staking-guide/installing-and-configuring-clients/ihanda-ang-operating-system.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
