all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: Вопрос по опциям монтирования SSD и logrotate
  2018-03-24 13:20 Вопрос по опциям монтирования SSD и logrotate Jone
@ 2018-03-24 11:33 ` Oleg Pykhalov
  2018-03-24 13:01   ` Pierre Neidhardt
  0 siblings, 1 reply; 10+ messages in thread
From: Oleg Pykhalov @ 2018-03-24 11:33 UTC (permalink / raw)
  To: Jone; +Cc: help-guix

[-- 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 --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Вопрос по опциям монтирования SSD и logrotate
  2018-03-24 11:33 ` Oleg Pykhalov
@ 2018-03-24 13:01   ` Pierre Neidhardt
  2018-03-24 13:30     ` Pierre Neidhardt
  0 siblings, 1 reply; 10+ messages in thread
From: Pierre Neidhardt @ 2018-03-24 13:01 UTC (permalink / raw)
  To: Oleg Pykhalov; +Cc: help-guix

[-- Attachment #1: Type: text/plain, Size: 461 bytes --]


Forgive me if this not an appropriate place to ask.

Regarding multilingual e-mails, I'm wondering if it would be possible to
have a summary of the matter at hand together with its various solutions
once the problem is solved.

Similar to what Alex Kost did in the "Modify system behavior after
reconfigure" thread.

--
Pierre Neidhardt

The price one pays for pursuing any profession, or calling, is an intimate
knowledge of its ugly side.
		-- James Baldwin

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Вопрос по опциям монтирования SSD и logrotate
@ 2018-03-24 13:20 Jone
  2018-03-24 11:33 ` Oleg Pykhalov
  0 siblings, 1 reply; 10+ messages in thread
From: Jone @ 2018-03-24 13:20 UTC (permalink / raw)
  To: help-guix

1. Из мануала не ясно, могу ли я использовать noatime и discard.
Хорошо, мы можем выполнять trim по cron (mcron). Этот сервис есть в
%desktop-services? Или я должен явно прописывать это? Как часто следует
выполнять команду trim?

2. Для logrotate есть какой-то аналог, но я забыл какой :) Он включен
по умолчанию?

Я считаю, что дефолтные настройки для Desktop требуют корректировки, с
учетом сказанного выше. Я выполняю reconfigure уже в десятый раз, но
все равно полностью не доволен результатом. 

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Вопрос по опциям монтирования SSD и logrotate
  2018-03-24 13:01   ` Pierre Neidhardt
@ 2018-03-24 13:30     ` Pierre Neidhardt
  2018-03-25 18:23       ` Oleg Pykhalov
  0 siblings, 1 reply; 10+ messages in thread
From: Pierre Neidhardt @ 2018-03-24 13:30 UTC (permalink / raw)
  To: Oleg Pykhalov; +Cc: help-guix

[-- Attachment #1: Type: text/plain, Size: 338 bytes --]


> Regarding multilingual e-mails, I'm wondering if it would be possible to
> have a summary of the matter at hand together with its various solutions
> once the problem is solved.

I mean, a summary in English.

-- 
Pierre Neidhardt

Retirement means that when someone says "Have a nice day", you
actually have a shot at it.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Вопрос по опциям монтирования SSD и logrotate
  2018-03-24 13:30     ` Pierre Neidhardt
@ 2018-03-25 18:23       ` Oleg Pykhalov
  2018-03-26 17:57         ` Pierre Neidhardt
  2018-04-04 14:21         ` Pierre Neidhardt
  0 siblings, 2 replies; 10+ messages in thread
From: Oleg Pykhalov @ 2018-03-25 18:23 UTC (permalink / raw)
  To: Pierre Neidhardt; +Cc: help-guix

[-- Attachment #1: Type: text/plain, Size: 3228 bytes --]

Hello Pierre,

Pierre Neidhardt <ambrevar@gmail.com> writes:

>> Regarding multilingual e-mails, I'm wondering if it would be possible to
>> have a summary of the matter at hand together with its various solutions
>> once the problem is solved.
>
> I mean, a summary in English.

Thank you for a suggestion.  It will be definitely great for searching
throw the mailing list.

Oleg Pykhalov <go.wigust@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))
>       ;; …
>       )

The question was about file systems mount options, particularly about
how to add mount options to ext4 file system.

>> Хорошо, мы можем выполнять trim по cron (mcron).  Этот сервис есть в
>> %desktop-services?
>
> Нет.
>
> Список сервисов ‘%desktop-services’ можно посмотреть в
> ‘gnu/services/desktop.scm’ [2] или вызвав Guile:
>
>     guile -e '(@@ (gnu services desktop) %desktop-services)'
>
>> Или я должен явно прописывать это? 
>
> Да, примеры есть в документации Guix [3].

The question was about how to check what services contains
‘%desktop-services’ variable.

>> Как часто следует выполнять команду trim?
>
> У меня GuixSD занимает весь накопитель около года.  ‘grep’ работает
> шустро все это время без ‘trim’ :-) Но я бы наверное порекомендовал
> после каждого вызова ‘guix gc’, потому что ‘trim’ выполняется для
> нахождения пустого пространства, которое появляется после сборки мусора.

The question was about preferable frequency of invoking ‘trim’ command.

> […]
>
> - [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 --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Вопрос по опциям монтирования SSD и logrotate
  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
  1 sibling, 1 reply; 10+ messages in thread
From: Pierre Neidhardt @ 2018-03-26 17:57 UTC (permalink / raw)
  To: Oleg Pykhalov; +Cc: help-guix

[-- Attachment #1: Type: text/plain, Size: 742 bytes --]


Thank you, Oleg.

>>> Как часто следует выполнять команду trim?
>>
>> У меня GuixSD занимает весь накопитель около года.  ‘grep’ работает
>> шустро все это время без ‘trim’ :-) Но я бы наверное порекомендовал
>> после каждого вызова ‘guix gc’, потому что ‘trim’ выполняется для
>> нахождения пустого пространства, которое появляется после сборки мусора.
>
> The question was about preferable frequency of invoking ‘trim’ command.

And what's the answer? :p

-- 
Pierre Neidhardt

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Вопрос по опциям монтирования SSD и logrotate
  2018-03-26 17:57         ` Pierre Neidhardt
@ 2018-03-26 18:53           ` Oleg Pykhalov
  0 siblings, 0 replies; 10+ messages in thread
From: Oleg Pykhalov @ 2018-03-26 18:53 UTC (permalink / raw)
  To: Pierre Neidhardt; +Cc: help-guix

[-- Attachment #1: Type: text/plain, Size: 894 bytes --]

Pierre Neidhardt <ambrevar@gmail.com> writes:

>>>> Как часто следует выполнять команду trim?
>>>
>>> У меня GuixSD занимает весь накопитель около года.  ‘grep’ работает
>>> шустро все это время без ‘trim’ :-) Но я бы наверное порекомендовал
>>> после каждого вызова ‘guix gc’, потому что ‘trim’ выполняется для
>>> нахождения пустого пространства, которое появляется после сборки мусора.
>>
>> The question was about preferable frequency of invoking ‘trim’ command.
>
> And what's the answer?

Not an answer, but a suggestion is after each invokation of ‘guix gc’,
because of ‘trim’ purpose to find an empty space.

Oleg.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Вопрос по опциям монтирования SSD и logrotate
  2018-03-25 18:23       ` Oleg Pykhalov
  2018-03-26 17:57         ` Pierre Neidhardt
@ 2018-04-04 14:21         ` Pierre Neidhardt
  2018-04-05  8:46           ` Ludovic Courtès
  1 sibling, 1 reply; 10+ messages in thread
From: Pierre Neidhardt @ 2018-04-04 14:21 UTC (permalink / raw)
  To: Oleg Pykhalov; +Cc: help-guix

[-- Attachment #1: Type: text/plain, Size: 780 bytes --]


Oleg Pykhalov <go.wigust@gmail.com> writes:

>>> Хорошо, мы можем выполнять trim по cron (mcron).  Этот сервис есть в
>>> %desktop-services?
>>
>> Нет.
>>
>> Список сервисов ‘%desktop-services’ можно посмотреть в
>> ‘gnu/services/desktop.scm’ [2] или вызвав Guile:
>>
>>     guile -e '(@@ (gnu services desktop) %desktop-services)'
>>
>>> Или я должен явно прописывать это? 
>>
>> Да, примеры есть в документации Guix [3].
>
> The question was about how to check what services contains
> ‘%desktop-services’ variable.

Is there a convenient way to get a pretty print out of the result?

-- 
Pierre Neidhardt

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Вопрос по опциям монтирования SSD и logrotate
  2018-04-04 14:21         ` Pierre Neidhardt
@ 2018-04-05  8:46           ` Ludovic Courtès
  2018-04-05  8:51             ` Pierre Neidhardt
  0 siblings, 1 reply; 10+ messages in thread
From: Ludovic Courtès @ 2018-04-05  8:46 UTC (permalink / raw)
  To: Pierre Neidhardt; +Cc: help-guix

Hello,

Pierre Neidhardt <ambrevar@gmail.com> skribis:

> Oleg Pykhalov <go.wigust@gmail.com> writes:
>
>>>> Хорошо, мы можем выполнять trim по cron (mcron).  Этот сервис есть в
>>>> %desktop-services?
>>>
>>> Нет.
>>>
>>> Список сервисов ‘%desktop-services’ можно посмотреть в
>>> ‘gnu/services/desktop.scm’ [2] или вызвав Guile:
>>>
>>>     guile -e '(@@ (gnu services desktop) %desktop-services)'
>>>
>>>> Или я должен явно прописывать это? 
>>>
>>> Да, примеры есть в документации Guix [3].
>>
>> The question was about how to check what services contains
>> ‘%desktop-services’ variable.
>
> Is there a convenient way to get a pretty print out of the result?

You can use ‘guix system extension-graph’ to view the graph of services
of your system:

  https://www.gnu.org/software/guix/manual/html_node/Invoking-guix-system.html

Alternately, you can inspect the ‘%desktop-services’ variable at the REPL:

--8<---------------cut here---------------start------------->8---
$ guile
GNU Guile 2.2.3
Copyright (C) 1995-2017 Free Software Foundation, Inc.

Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
This program is free software, and you are welcome to redistribute it
under certain conditions; type `,show c' for details.

Enter `,help' for help.
scheme@(guile-user)> ,use(gnu services desktop)
scheme@(guile-user)> ,use(gnu services)
scheme@(guile-user)> (map (compose service-type-name service-kind) %desktop-services)
$1 = (slim screen-locker screen-locker mtp network-manager wpa-supplicant avahi udisks upower accountsservice colord geoclue polkit elogind dbus ntp login console-fonts agetty mingetty mingetty mingetty mingetty mingetty mingetty static-networking syslog urandom-seed guix nscd udev special-files)
--8<---------------cut here---------------end--------------->8---

HTH,
Ludo’.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Вопрос по опциям монтирования SSD и logrotate
  2018-04-05  8:46           ` Ludovic Courtès
@ 2018-04-05  8:51             ` Pierre Neidhardt
  0 siblings, 0 replies; 10+ messages in thread
From: Pierre Neidhardt @ 2018-04-05  8:51 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: help-guix

[-- Attachment #1: Type: text/plain, Size: 1152 bytes --]


Ludovic Courtès <ludo@gnu.org> writes:

> Alternately, you can inspect the ‘%desktop-services’ variable at the REPL:
>
> --8<---------------cut here---------------start------------->8---
> $ guile
> GNU Guile 2.2.3
> Copyright (C) 1995-2017 Free Software Foundation, Inc.
>
> Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'.
> This program is free software, and you are welcome to redistribute it
> under certain conditions; type `,show c' for details.
>
> Enter `,help' for help.
> scheme@(guile-user)> ,use(gnu services desktop)
> scheme@(guile-user)> ,use(gnu services)
> scheme@(guile-user)> (map (compose service-type-name service-kind) %desktop-services)
> $1 = (slim screen-locker screen-locker mtp network-manager wpa-supplicant avahi udisks upower accountsservice colord geoclue polkit elogind dbus ntp login console-fonts agetty mingetty mingetty mingetty mingetty mingetty mingetty static-networking syslog urandom-seed guix nscd udev special-files)
> --8<---------------cut here---------------end--------------->8---

This is exactly what I was looking for.  Thanks!

-- 
Pierre Neidhardt

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-04-05  8:51 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-24 13:20 Вопрос по опциям монтирования SSD и logrotate Jone
2018-03-24 11:33 ` Oleg Pykhalov
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

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.