beautypg.com

Memory space assignment guidelines, Configuration procedure – H3C Technologies H3C SecPath F5020 User Manual

Page 75

background image

66

Use the display context resource command to view the amount of disk space that has been used by

the context before assigning disk space to the context.

Assign disk space larger than the disk space used by the context to avoid the following problems:

{

The context cannot apply for more disk space.

{

The context cannot create, copy, or save additional folders or files.

Memory space assignment guidelines

When you assign memory space to a context, follow these guidelines:

Use the display context resource command to view the amount of memory space that has been
used by the context before assigning memory space to the context.

Assign memory space larger than the memory space used by the context to avoid the following
problems:

{

The context cannot apply for more memory space.

{

The context cannot create, copy, or save additional folders or files.

Configuration procedure

To assign CPU, disk, and memory resources to a context:

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Enter context view.

context context-name

N/A

3.

Specify a CPU
weight for the

context.

limit-resource cpu weight
weight-value

By default, each context has a CPU weight of
10.

4.

Specify a disk
space percentage

for the context.

Centralized IRF

devices/distributed devices in
standalone mode:

limit-resource disk slot

slot-number cpu cpu-number

ratio limit-ratio

Distributed devices in IRF

mode:

limit-resource disk chassis
chassis-number
slot

slot-number cpu cpu-number

ratio limit-ratio

By default, all contexts on a security engine
share the disk spaces on the engine. A
context can use all free disk spaces on the

engine.
This setting defines the maximum disk space

that the context can use. It takes effect on all
the storage media.

5.

Specify a memory

space percentage
for the context.

Centralized IRF
devices/distributed devices in

standalone mode:

limit-resource memory slot
slot-number cpu cpu-number

ratio limit-ratio

Distributed devices in IRF

mode:

limit-resource memory chassis

chassis-number slot

slot-number cpu cpu-number
ratio limit-ratio

By default, all contexts share the memory
spaces in the system. A context can use all
free memory spaces in the system.
This setting defines the maximum disk space
that the context can use.

This manual is related to the following products: