> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-trino-dialect.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> جدول نظامي يحتوي على معلومات عن تخصيصات الذاكرة التي ينفذها مخصّص الذاكرة jemalloc ضمن فئات الأحجام المختلفة (bins)، والمجمّعة من جميع الـ الساحات.

# system.jemalloc_bins

<Info>
  **الاستعلام في ClickHouse Cloud**

  تُخزَّن بيانات جدول النظام هذا محليًا على كل عقدة في ClickHouse Cloud. لذلك، يتطلب الحصول على رؤية كاملة لجميع البيانات استخدام الدالة `clusterAllReplicas`. راجع [هنا](/ar/reference/system-tables/overview#system-tables-in-clickhouse-cloud) لمزيد من التفاصيل.
</Info>

<div id="description">
  ## الوصف
</div>

يتضمن معلومات عن تخصيصات الذاكرة التي أُجريت عبر مخصّص الذاكرة jemalloc ضمن فئات الأحجام المختلفة (bins)، والمُجمَّعة من جميع الساحات.
قد لا تكون هذه الإحصاءات دقيقة تمامًا بسبب التخزين المؤقت المحلي للخيوط في jemalloc.

<div id="columns">
  ## الأعمدة
</div>

* `index` ([UInt16](/ar/reference/data-types/int-uint)) — فهرس الـ bin مرتّبًا حسب الحجم.
* `large` ([UInt8](/ar/reference/data-types/int-uint)) — تكون True للتخصيصات الكبيرة وFalse للتخصيصات الصغيرة.
* `size` ([UInt64](/ar/reference/data-types/int-uint)) — حجم التخصيصات ضمن هذا الـ bin.
* `allocations` ([Int64](/ar/reference/data-types/int-uint)) — عدد تخصيصات الذاكرة.
* `deallocations` ([Int64](/ar/reference/data-types/int-uint)) — عدد عمليات تحرير الذاكرة.
* `nregs` ([Int64](/ar/reference/data-types/int-uint)) — عدد المناطق لكل slab.
* `curslabs` ([Int64](/ar/reference/data-types/int-uint)) — العدد الحالي للـ slabs.
* `curregs` ([Int64](/ar/reference/data-types/int-uint)) — العدد الحالي للمناطق ضمن فئة الحجم هذه.

**الأسماء المستعارة:**

* `availregs` — اسم مستعار لـ `nregs * curslabs`.
* `util` — اسم مستعار لـ `curregs / availregs`.

<div id="example">
  ## مثال
</div>

حدّد أحجام عمليات تخصيص الذاكرة التي أسهمت بأكبر قدر في إجمالي استخدام الذاكرة الحالي.

```sql theme={null}
SELECT
    *,
    allocations - deallocations AS active_allocations,
    size * active_allocations AS allocated_bytes
FROM system.jemalloc_bins
WHERE allocated_bytes > 0
ORDER BY allocated_bytes DESC
LIMIT 10
```

```text theme={null}
┌─index─┬─large─┬─────size─┬─allocactions─┬─deallocations─┬─active_allocations─┬─allocated_bytes─┐
│    82 │     1 │ 50331648 │            1 │             0 │                  1 │        50331648 │
│    10 │     0 │      192 │       512336 │        370710 │             141626 │        27192192 │
│    69 │     1 │  5242880 │            6 │             2 │                  4 │        20971520 │
│     3 │     0 │       48 │     16938224 │      16559484 │             378740 │        18179520 │
│    28 │     0 │     4096 │       122924 │        119142 │               3782 │        15491072 │
│    61 │     1 │  1310720 │        44569 │         44558 │                 11 │        14417920 │
│    39 │     1 │    28672 │         1285 │           913 │                372 │        10665984 │
│     4 │     0 │       64 │      2837225 │       2680568 │             156657 │        10026048 │
│     6 │     0 │       96 │      2617803 │       2531435 │              86368 │         8291328 │
│    36 │     1 │    16384 │        22431 │         21970 │                461 │         7553024 │
└───────┴───────┴──────────┴──────────────┴───────────────┴────────────────────┴─────────────────┘
```
