From: Oleg Pykhalov <go.wigust@gmail.com>
To: Jone <yeger9@gmail.com>
Cc: help-guix <help-guix@gnu.org>
Subject: Re: Вопрос по опциям монтирования SSD и logrotate
Date: Sat, 24 Mar 2018 14:33:06 +0300 [thread overview]
Message-ID: <87in9lzp1p.fsf@gmail.com> (raw)
In-Reply-To: <20180324162058.184a2eaf@gmail.com> (Jone's message of "Sat, 24 Mar 2018 16:20:58 +0300")
[-- Attachment #1: Type: text/plain, Size: 2468 bytes --]
Привет Jone,
Jone <yeger9@gmail.com> writes:
> 1. Из мануала не ясно, могу ли я использовать noatime и discard.
Это опции монтирования файловой системы EXT4(5), которые не перечислены
в докуметации Guix, но их можно посмотреть в мануале:
man 5 ext4
man -w 5 ext4
/gnu/store/…-e2fsprogs-1.43.6/share/man/man5/ext4.5.gz
Опции монтирования можно указать в file-system options для любых
файловых систем [1], например:
(operating-system
;; …
(file-systems (cons* ;; …
(file-system
(device "tmpfs")
(mount-point "/tmp")
(type "tmpfs")
(check? #f)
(flags '(no-dev))
(options "mode=1777,size=50%"))
%base-file-systems))
;; …
)
> Хорошо, мы можем выполнять trim по cron (mcron). Этот сервис есть в
> %desktop-services?
Нет.
Список сервисов ‘%desktop-services’ можно посмотреть в
‘gnu/services/desktop.scm’ [2] или вызвав Guile:
guile -e '(@@ (gnu services desktop) %desktop-services)'
> Или я должен явно прописывать это?
Да, примеры есть в документации Guix [3].
> Как часто следует выполнять команду trim?
У меня GuixSD занимает весь накопитель около года. ‘grep’ работает
шустро все это время без ‘trim’ :-) Но я бы наверное порекомендовал
после каждого вызова ‘guix gc’, потому что ‘trim’ выполняется для
нахождения пустого пространства, которое появляется после сборки мусора.
[…]
- [1] https://www.gnu.org/software/guix/manual/html_node/File-Systems.html
- [2] https://git.savannah.gnu.org/cgit/guix.git/tree/gnu/services/desktop.scm
- [3] https://www.gnu.org/software/guix/manual/html_node/Scheduled-Job-Execution.html
Oleg.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
next prev parent reply other threads:[~2018-03-24 12:37 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-24 13:20 Вопрос по опциям монтирования SSD и logrotate Jone
2018-03-24 11:33 ` Oleg Pykhalov [this message]
2018-03-24 13:01 ` Pierre Neidhardt
2018-03-24 13:30 ` Pierre Neidhardt
2018-03-25 18:23 ` Oleg Pykhalov
2018-03-26 17:57 ` Pierre Neidhardt
2018-03-26 18:53 ` Oleg Pykhalov
2018-04-04 14:21 ` Pierre Neidhardt
2018-04-05 8:46 ` Ludovic Courtès
2018-04-05 8:51 ` Pierre Neidhardt
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=87in9lzp1p.fsf@gmail.com \
--to=go.wigust@gmail.com \
--cc=help-guix@gnu.org \
--cc=yeger9@gmail.com \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.