> ## Documentation Index
> Fetch the complete documentation index at: https://private-7c7dfe99-mintlify-8c05c8a2.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/index)) — فهرس الـ bin المرتبة حسب الحجم.
* `large` ([UInt8](/ar/reference/data-types/index)) — تكون قيمته True للتخصيصات الكبيرة وFalse للتخصيصات الصغيرة.
* `size` ([UInt64](/ar/reference/data-types/index)) — حجم التخصيصات في هذه الـ bin.
* `allocations` ([Int64](/ar/reference/data-types/index)) — عدد التخصيصات.
* `deallocations` ([Int64](/ar/reference/data-types/index)) — عدد عمليات إلغاء التخصيص.
* `nregs` ([Int64](/ar/reference/data-types/index)) — عدد المناطق لكل slab.
* `curslabs` ([Int64](/ar/reference/data-types/index)) — العدد الحالي لـ slabs.
* `curregs` ([Int64](/ar/reference/data-types/index)) — العدد الحالي للمناطق ضمن فئة الحجم هذه.

<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 │
└───────┴───────┴──────────┴──────────────┴───────────────┴────────────────────┴─────────────────┘
```
