From: "Хихин Руслан" <ruslandh@gmail.com>
To: smoke-room@lists.altlinux.org
Subject: Re: [room] про размер корня в regular/starterkits
Date: Tue, 15 Mar 2016 13:54:56 +0300
Message-ID: <201603151355.02176@3114> (raw)
In-Reply-To: <20160314193409.GS1119@imap.altlinux.org>
[-- Attachment #1: Type: text/plain, Size: 1201 bytes --]
Здравствуйте !
On Monday 14 March 2016 22:34:09 Michael Shigorin написал(а):
Вот "на коленке" накидал алгоритм:
unsigneg int size_hd; // Общий размер диска (В Гб)
unsigneg int size_mem; // Общий размер ОЗУ (В Гб)
unsigneg int size_root; // размер раздела root (В Гб)
unsigneg int size_home; // размер раздела home (В Гб)
unsigneg int size_swap; // размер раздела swap (В Гб)
unsigneg int size_other; // размер раздела для медиаархива (условно /mnt/disk)
(В Гб)
if (size_hd <= 10 Гб)
{
size_home=0;
size_other=0;
if (size_mem < 1 Гб)
{
size_swap = 2*size_mem;
}else
size_swap = 0;
size_root=size_hd-size_swap;
}
if (10 Гб <size_hd < 25 Гб)
{
size_other=0;
if (size_mem < 1 Гб)
{
size_swap = 2*size_mem;
}else
size_swap = 0;
}
size_root= 10 Гб + (size_hd - 10)*0.4 (Гб);
size_home=size_hd - size_root - size_swap;
}
if (25 Гб <size_hd < 150 Гб)
{
size_other=0;
size_swap = 4 (Гб);
size_root= 16 + (size_hd - 16) * 0.45 (Гб);
size_home=size_hd - size_root - size_swap;
}
if (size_hd > 150 Гб)
{
size_swap = 4 (Гб);
size_root = 60 (Гб) + 0.1 *size_hd;
size_home = 86 (Гб) + 0.2 *size_hd;
size_other= size_hd - size_root - size_swap - size_home;
}
--
C уважением, Хихин Руслан.
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
next prev parent reply other threads:[~2016-03-15 10:54 UTC|newest]
Thread overview: 81+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-29 8:31 [room] А где нынче общаются? Alexei V. Mezin
2016-02-29 10:55 ` Pavel N. Solovyov
2016-03-01 9:12 ` Sergey
2016-02-29 11:16 ` Хихин Руслан
2016-03-01 10:33 ` Anton Farygin
2016-03-01 10:43 ` Вадим Илларионов
2016-03-02 6:57 ` Anton Farygin
2016-03-02 7:33 ` Alexei V. Mezin
2016-03-02 7:27 ` Eugene Prokopiev
2016-03-02 7:37 ` Alexei V. Mezin
2016-03-02 14:13 ` Anton Farygin
2016-03-02 14:30 ` Alexei V. Mezin
2016-03-02 15:02 ` Anton Farygin
2016-03-04 16:30 ` Michael Shigorin
2016-03-02 19:02 ` Alexei V. Mezin
2016-03-04 16:52 ` [room] про размер корня в regular/starterkits Michael Shigorin
2016-03-04 21:01 ` Alexei V. Mezin
2016-03-05 3:37 ` Hihin Ruslan
2016-03-05 5:12 ` Denis G. Samsonenko
2016-03-05 6:11 ` Hihin Ruslan
2016-03-05 8:04 ` Alexei V. Mezin
2016-03-05 9:14 ` Denis G. Samsonenko
2016-03-05 9:57 ` Alexei V. Mezin
2016-03-07 16:15 ` Вадим Илларионов
2016-03-10 17:06 ` Anton Farygin
2016-03-10 17:09 ` Anton Farygin
2016-03-10 17:33 ` Alexei V. Mezin
2016-03-10 17:38 ` Denis G. Samsonenko
2016-03-11 6:21 ` Anton Farygin
2016-03-11 6:47 ` Denis G. Samsonenko
2016-03-11 22:54 ` Michael Shigorin
2016-03-12 10:42 ` Anton Farygin
2016-03-12 11:16 ` Vladimir Karpinsky
2016-03-12 12:54 ` Anton Farygin
2016-03-12 13:14 ` Vladimir Karpinsky
2016-03-13 11:44 ` Anton Farygin
2016-03-13 12:11 ` Alexei V. Mezin
2016-03-13 14:41 ` Alexander Yereschenko
2016-03-13 17:25 ` Хихин Руслан
2016-03-13 18:34 ` Michael Shigorin
2016-03-13 19:27 ` Hihin Ruslan
2016-03-13 22:45 ` Michael Shigorin
2016-03-14 3:08 ` Denis G. Samsonenko
2016-03-14 11:15 ` Michael Shigorin
2016-03-14 11:41 ` Ruslan Hihin
2016-03-14 18:31 ` Alexei V. Mezin
2016-03-14 19:34 ` Michael Shigorin
2016-03-15 10:54 ` Хихин Руслан [this message]
2016-03-16 9:14 ` Anton Farygin
2016-03-16 14:07 ` Sergey
2016-03-16 14:51 ` Anton Farygin
2016-03-16 15:00 ` Anton Farygin
2016-03-16 15:02 ` Anton Farygin
2016-03-16 23:51 ` Денис Смирнов
2016-03-17 6:41 ` [room] про размер корня и swap в дефолтных установках Anton Farygin
2016-03-17 9:44 ` Sergey
2016-03-17 11:44 ` Sergey
2016-03-17 9:30 ` [room] про размер корня в regular/starterkits Sergey
2016-03-18 12:04 ` Anton Farygin
2016-03-18 12:40 ` Хихин Руслан
2016-03-19 9:20 ` Sergey
2016-03-17 9:26 ` Sergey
2016-03-17 9:32 ` Sergey
2016-03-18 12:09 ` Anton Farygin
2016-03-18 19:48 ` Вадим Илларионов
2016-03-19 9:56 ` Sergey
2016-03-21 1:50 ` В.А. Илларионов
2016-03-23 12:47 ` Sergey
2016-03-18 12:08 ` Anton Farygin
2016-03-19 7:11 ` Sergey
2016-03-19 7:49 ` Vyatcheslav Perevalov
2016-03-19 8:10 ` Sergey
2016-03-19 8:35 ` Sergey
2016-03-19 20:47 ` Vyatcheslav Perevalov
2016-03-14 3:54 ` Hihin Ruslan
2016-03-16 9:13 ` Anton Farygin
2016-03-13 18:32 ` Michael Shigorin
2016-03-16 9:17 ` Anton Farygin
2016-03-12 2:24 ` Вадим Илларионов
2016-03-12 2:28 ` Вадим Илларионов
2016-03-12 10:44 ` Anton Farygin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201603151355.02176@3114 \
--to=ruslandh@gmail.com \
--cc=smoke-room@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Культурный офтопик
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/smoke-room/0 smoke-room/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 smoke-room smoke-room/ http://lore.altlinux.org/smoke-room \
smoke-room@lists.altlinux.org smoke-room@lists.altlinux.ru smoke-room@lists.altlinux.com smoke-room@altlinux.ru smoke-room@altlinux.org smoke-room@altlinux.com
public-inbox-index smoke-room
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.smoke-room
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git