ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* [sisyphus] Как очистить chroot hasher-а?
@ 2008-10-16 20:40 Slava Semushin
  2008-10-16 20:49 ` Damir Shayhutdinov
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Slava Semushin @ 2008-10-16 20:40 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussions

Здравствуйте!

Вот уже не первый год у меня сборочная хашера находится в /build (как
когда-то порекомендовал amorozov@ в IRC).

Сейчас она несколько раздулась

[c0der@rock ~]$ sudo du -sh /build
357M    /build

И хочу её почисить.

Вопрос в том как это правильно сделать.

Есть идея сохранить файлы /build/apt.conf и /build/sources.list, потом
грохнуть весь каталог, вернуть эти файла обратно и запустить hsh init.
Можно ли так поступить или лучше как-то иначе?

Спасибо за внимание!

--
+ Slava Semushin | slava.semushin @ gmail.com
+ ALT Linux Team | php-coder @ altlinux.ru

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

* Re: [sisyphus] Как очистить chroot hasher-а?
  2008-10-16 20:40 [sisyphus] Как очистить chroot hasher-а? Slava Semushin
@ 2008-10-16 20:49 ` Damir Shayhutdinov
  2008-10-16 20:56   ` Slava Semushin
  2008-10-16 21:36 ` Alexey Gladkov
  2008-10-17  6:07 ` [sisyphus] [Best practice] hasher Ildar Mulyukov
  2 siblings, 1 reply; 14+ messages in thread
From: Damir Shayhutdinov @ 2008-10-16 20:49 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussions

> Вот уже не первый год у меня сборочная хашера находится в /build (как
> когда-то порекомендовал amorozov@ в IRC).
>
> Сейчас она несколько раздулась
>
> [c0der@rock ~]$ sudo du -sh /build
> 357M    /build
>
> И хочу её почисить.
>
> Вопрос в том как это правильно сделать.
>
> Есть идея сохранить файлы /build/apt.conf и /build/sources.list, потом
> грохнуть весь каталог, вернуть эти файла обратно и запустить hsh init.
> Можно ли так поступить или лучше как-то иначе?

hsh-rmchroot

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

* Re: [sisyphus] Как очистить chroot hasher-а?
  2008-10-16 20:49 ` Damir Shayhutdinov
@ 2008-10-16 20:56   ` Slava Semushin
  2008-10-16 21:01     ` Dmitry V. Levin
  0 siblings, 1 reply; 14+ messages in thread
From: Slava Semushin @ 2008-10-16 20:56 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussions

17 октября 2008 г. 3:49 пользователь Damir Shayhutdinov
<lost404/gmail.com> написал:
[...]
> hsh-rmchroot

После запуска осталось 161M, что многовато...

При этом /build/repo, с готовыми пакетами занимает всего 16М.. куда
ещё ~140М делось?


-- 
+ Slava Semushin | slava.semushin @ gmail.com
+ ALT Linux Team | php-coder @ altlinux.ru

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

* Re: [sisyphus] Как очистить chroot hasher-а?
  2008-10-16 20:56   ` Slava Semushin
@ 2008-10-16 21:01     ` Dmitry V. Levin
  0 siblings, 0 replies; 14+ messages in thread
From: Dmitry V. Levin @ 2008-10-16 21:01 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussions

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

On Fri, Oct 17, 2008 at 03:56:48AM +0700, Slava Semushin wrote:
> 17 октября 2008 г. 3:49 пользователь Damir Shayhutdinov
> <lost404/gmail.com> написал:
> [...]
> > hsh-rmchroot
> 
> После запуска осталось 161M, что многовато...
> 
> При этом /build/repo, с готовыми пакетами занимает всего 16М.. куда
> ещё ~140М делось?

/build/cache
/build/aptbox

После выполнения hsh-rmchroot каталоги aptbox и cache можно безболезненно
удалить.


-- 
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

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

* Re: [sisyphus] Как очистить chroot hasher-а?
  2008-10-16 20:40 [sisyphus] Как очистить chroot hasher-а? Slava Semushin
  2008-10-16 20:49 ` Damir Shayhutdinov
@ 2008-10-16 21:36 ` Alexey Gladkov
  2008-10-16 21:43   ` Dmitry V. Levin
  2008-10-17  6:07 ` [sisyphus] [Best practice] hasher Ildar Mulyukov
  2 siblings, 1 reply; 14+ messages in thread
From: Alexey Gladkov @ 2008-10-16 21:36 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussions

Slava Semushin wrote:
> [c0der@rock ~]$ sudo du -sh /build
> 357M    /build
> 
> И хочу её почисить.

hsh --clean /build

-- 
Rgrds, legion



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

* Re: [sisyphus] Как очистить chroot hasher-а?
  2008-10-16 21:36 ` Alexey Gladkov
@ 2008-10-16 21:43   ` Dmitry V. Levin
  0 siblings, 0 replies; 14+ messages in thread
From: Dmitry V. Levin @ 2008-10-16 21:43 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussions

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

On Fri, Oct 17, 2008 at 01:36:26AM +0400, Alexey Gladkov wrote:
> Slava Semushin wrote:
> >[c0der@rock ~]$ sudo du -sh /build
> >357M    /build
> >
> >И хочу её почисить.
> 
> hsh --clean /build

Будьте внимательны, эта операция удаляет все каталоги, с которыми работает
hasher, в том числе и /build/repo.


-- 
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

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

* Re: [sisyphus] [Best practice] hasher
  2008-10-16 20:40 [sisyphus] Как очистить chroot hasher-а? Slava Semushin
  2008-10-16 20:49 ` Damir Shayhutdinov
  2008-10-16 21:36 ` Alexey Gladkov
@ 2008-10-17  6:07 ` Ildar Mulyukov
  2008-10-17  6:15   ` Damir Shayhutdinov
                     ` (2 more replies)
  2 siblings, 3 replies; 14+ messages in thread
From: Ildar Mulyukov @ 2008-10-17  6:07 UTC (permalink / raw)
  To: sisyphus

On 17.10.2008 02:40:41, Slava Semushin wrote:
> Здравствуйте!
> 
> Вот уже не первый год у меня сборочная хашера находится в /build (как
> когда-то порекомендовал amorozov@ в IRC).
> 
> Сейчас она несколько раздулась
> 
> [c0der@rock ~]$ sudo du -sh /build
> 357M    /build

очень хорошо и удобно держать hasher на tmpfs (подробнее поищите на  
altlinux.org по словам hasher tmpfs).

Только будьте внимательны: repo (собранные пакеты) не сохранится после  
перезагрузки.
-- 
Ildar  Mulyukov,  free SW designer/programmer/packager
=========================================
email: ildar@altlinux.ru
Jabber: ildar@jabber.ru
ICQ: 4334029
ALT Linux Sisyphus http://www.sisyphus.ru
=========================================


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

* Re: [sisyphus] [Best practice] hasher
  2008-10-17  6:07 ` [sisyphus] [Best practice] hasher Ildar Mulyukov
@ 2008-10-17  6:15   ` Damir Shayhutdinov
  2008-10-17  6:41   ` Alexey Gladkov
  2008-10-17  8:15   ` Slava Semushin
  2 siblings, 0 replies; 14+ messages in thread
From: Damir Shayhutdinov @ 2008-10-17  6:15 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussions

>> [c0der@rock ~]$ sudo du -sh /build
>> 357M    /build
>
> очень хорошо и удобно держать hasher на tmpfs (подробнее поищите на
> altlinux.org по словам hasher tmpfs).
>
> Только будьте внимательны: repo (собранные пакеты) не сохранится после
> перезагрузки.
Все сохранится, если делать симлинк repo -> куда-нибудь не на tmpfs.

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

* Re: [sisyphus] [Best practice] hasher
  2008-10-17  6:07 ` [sisyphus] [Best practice] hasher Ildar Mulyukov
  2008-10-17  6:15   ` Damir Shayhutdinov
@ 2008-10-17  6:41   ` Alexey Gladkov
  2008-10-17  7:11     ` Dmitry V. Levin
  2008-10-17  8:15   ` Slava Semushin
  2 siblings, 1 reply; 14+ messages in thread
From: Alexey Gladkov @ 2008-10-17  6:41 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussions

Ildar Mulyukov wrote:
> очень хорошо и удобно держать hasher на tmpfs (подробнее поищите на  
> altlinux.org по словам hasher tmpfs).
> 
> Только будьте внимательны: repo (собранные пакеты) не сохранится после  
> перезагрузки.

Для того чтобы сохранить repo в другое место в hasher есть три ключа:

--repo=DIR      repository directory;
--repo-bin=DIR  binary packages destination directory,
                 overriding --repo option for binary packages;
--repo-src=DIR  source packages destination directory,
                 overriding --repo option for source packages;

-- 
Rgrds, legion



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

* Re: [sisyphus] [Best practice] hasher
  2008-10-17  6:41   ` Alexey Gladkov
@ 2008-10-17  7:11     ` Dmitry V. Levin
  0 siblings, 0 replies; 14+ messages in thread
From: Dmitry V. Levin @ 2008-10-17  7:11 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussions

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

On Fri, Oct 17, 2008 at 10:41:45AM +0400, Alexey Gladkov wrote:
> Ildar Mulyukov wrote:
> >очень хорошо и удобно держать hasher на tmpfs (подробнее поищите на  
> >altlinux.org по словам hasher tmpfs).
> >
> >Только будьте внимательны: repo (собранные пакеты) не сохранится после  
> >перезагрузки.
> 
> Для того чтобы сохранить repo в другое место в hasher есть три ключа:
> 
> --repo=DIR      repository directory;
> --repo-bin=DIR  binary packages destination directory,
>                 overriding --repo option for binary packages;
> --repo-src=DIR  source packages destination directory,
>                 overriding --repo option for source packages;

А также переменная def_repo, см. hsh(1).  Например,
$ fgrep def_repo ~/.hasher/config
def_repo="$HOME/repo/$(uname -m)"

При этом параллельные запуски hsh с разными workdir могут работать с общим
repo, что иногда удобно, а иногда не очень.


-- 
ldv

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

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

* Re: [sisyphus] [Best practice] hasher
  2008-10-17  6:07 ` [sisyphus] [Best practice] hasher Ildar Mulyukov
  2008-10-17  6:15   ` Damir Shayhutdinov
  2008-10-17  6:41   ` Alexey Gladkov
@ 2008-10-17  8:15   ` Slava Semushin
  2008-10-17  8:22     ` Ildar Mulyukov
  2008-10-17 10:57     ` Kirill A. Shutemov
  2 siblings, 2 replies; 14+ messages in thread
From: Slava Semushin @ 2008-10-17  8:15 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussions

17 октября 2008 г. 13:07 пользователь Ildar Mulyukov
<ildar%altlinux.ru> написал:
[...]
> очень хорошо и удобно держать hasher на tmpfs (подробнее поищите на
> altlinux.org по словам hasher tmpfs).
[...]

Для этого, наверное, надо много оперативной памяти? У меня просто всего 512М..

Да и в хашере я собираю реже, снова, всё чаще, стал собирать прям в системе..


-- 
+ Slava Semushin | slava.semushin @ gmail.com
+ ALT Linux Team | php-coder @ altlinux.ru

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

* Re: [sisyphus] [Best practice] hasher
  2008-10-17  8:15   ` Slava Semushin
@ 2008-10-17  8:22     ` Ildar Mulyukov
  2008-10-17 10:57     ` Kirill A. Shutemov
  1 sibling, 0 replies; 14+ messages in thread
From: Ildar Mulyukov @ 2008-10-17  8:22 UTC (permalink / raw)
  To: sisyphus

On 17.10.2008 14:15:34, Slava Semushin wrote:
> 17 октября 2008 г. 13:07 пользователь Ildar Mulyukov
> <ildar%altlinux.ru> написал:
> [...]
> > очень хорошо и удобно держать hasher на tmpfs (подробнее поищите на
> > altlinux.org по словам hasher tmpfs).
> [...]
> 
> Для этого, наверное, надо много оперативной памяти? У меня просто  
> всего 512М..
> 
> Да и в хашере я собираю реже, снова, всё чаще, стал собирать прям в  
> системе..

поэтому я сразу предложил поискать в архиве. Там старшие товарищи всё  
популярно объяснили.
Моя же практика показывает, что во многих случаях хватает даже  
банального (уже готового) /tmp. Вот.
-- 
Ildar  Mulyukov,  free SW designer/programmer/packager
=========================================
email: ildar@altlinux.ru
Jabber: ildar@jabber.ru
ICQ: 4334029
ALT Linux Sisyphus http://www.sisyphus.ru
=========================================


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

* Re: [sisyphus] [Best practice] hasher
  2008-10-17  8:15   ` Slava Semushin
  2008-10-17  8:22     ` Ildar Mulyukov
@ 2008-10-17 10:57     ` Kirill A. Shutemov
  2008-10-18 13:34       ` Eugene Prokopiev
  1 sibling, 1 reply; 14+ messages in thread
From: Kirill A. Shutemov @ 2008-10-17 10:57 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussions

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

On Fri, Oct 17, 2008 at 03:15:34PM +0700, Slava Semushin wrote:
> 17 октября 2008 г. 13:07 пользователь Ildar Mulyukov
> <ildar%altlinux.ru> написал:
> [...]
> > очень хорошо и удобно держать hasher на tmpfs (подробнее поищите на
> > altlinux.org по словам hasher tmpfs).
> [...]
> 
> Для этого, наверное, надо много оперативной памяти? У меня просто всего 512М..

Своп всё равно быстрее чем любая fs.

-- 
Regards,  Kirill A. Shutemov
 + Belarus, Minsk
 + ALT Linux Team, http://www.altlinux.com/

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

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

* Re: [sisyphus] [Best practice] hasher
  2008-10-17 10:57     ` Kirill A. Shutemov
@ 2008-10-18 13:34       ` Eugene Prokopiev
  0 siblings, 0 replies; 14+ messages in thread
From: Eugene Prokopiev @ 2008-10-18 13:34 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussions

17.10.08, Kirill A. Shutemov написал(а):
> On Fri, Oct 17, 2008 at 03:15:34PM +0700, Slava Semushin wrote:
>  > 17 октября 2008 г. 13:07 пользователь Ildar Mulyukov
>  > <ildar%altlinux.ru> написал:
>  > [...]
>  > > очень хорошо и удобно держать hasher на tmpfs (подробнее поищите на
>  > > altlinux.org по словам hasher tmpfs).
>  > [...]
>  >
>  > Для этого, наверное, надо много оперативной памяти? У меня просто всего 512М..
>
>
> Своп всё равно быстрее чем любая fs.

Вопрос в том, насколько. У меня почему-то даже на tmpfs в RAM это было
не очень ощутимо - и даже для пакетов, при сборке которых большая
часть времени уходит на инициализацию чрута, удавалось выжать максимум
20% выигрыша.

-- 
С уважением,
Прокопьев Евгений

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

end of thread, other threads:[~2008-10-18 13:34 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-16 20:40 [sisyphus] Как очистить chroot hasher-а? Slava Semushin
2008-10-16 20:49 ` Damir Shayhutdinov
2008-10-16 20:56   ` Slava Semushin
2008-10-16 21:01     ` Dmitry V. Levin
2008-10-16 21:36 ` Alexey Gladkov
2008-10-16 21:43   ` Dmitry V. Levin
2008-10-17  6:07 ` [sisyphus] [Best practice] hasher Ildar Mulyukov
2008-10-17  6:15   ` Damir Shayhutdinov
2008-10-17  6:41   ` Alexey Gladkov
2008-10-17  7:11     ` Dmitry V. Levin
2008-10-17  8:15   ` Slava Semushin
2008-10-17  8:22     ` Ildar Mulyukov
2008-10-17 10:57     ` Kirill A. Shutemov
2008-10-18 13:34       ` Eugene Prokopiev

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git