Pagina 1 di 1

Swapfile e disco SSD

Inviato: ven 30 mag 2014, 19:26
da Burroughs
Buona sera a tutti!
Di recente ho aggiornato l'hardware del mio laptop, sostituendo il disco magnetico con uno a stato solido (ne ho parlato qui).
Visto che, di solito, per allungare la vita al drive, non si utilizza più una partizione di swap, ho seguito anch'io questo consiglio, optando però per una soluzione di swapfile gestita dal kernel linux-ice (il vecchio TuxOnIce che fino a qualche anno fa veniva manutenuto da Nigel Cunningham e che ora viene portato avanti dalla community di Arch).
Seguendo le impostazioni contenute in questa guida ed anche in quest'altra, dopo aver creato il mio swapfile, sono riuscito a far funzionare l'ibernazione, almeno fino a quando ho utilizzato il disco magnetico.
Ora che l'ho sostituito con l'SSD, qualcosa non va...
Se lancio questo comando:

Codice: Seleziona tutto

hibernate -F /etc/hibernate/tuxonice.conf
ottengo il seguente messaggio d'errore:

Codice: Seleziona tutto

hibernate: TuxOnIce reported the following errors:
 - TuxOnIce was aborted (see dmesg).
 - Not enough swapspace available. Free some memory?
 - Failed to initialise all modules.
Il file di configurazione principale, /etc/default/grub è configurato come segue:

Codice: Seleziona tutto

GRUB_DEFAULT="0"
GRUB_TIMEOUT="5"
GRUB_DISTRIBUTOR="Arch"
GRUB_CMDLINE_LINUX_DEFAULT="quiet resume_offset=46932"
GRUB_CMDLINE_LINUX="elevator=noop resume=file:UUID=89ea43f42a7e4245a863ce04264a3602:0x5baa0"

# Preload both GPT and MBR modules so that they are not missed
GRUB_PRELOAD_MODULES="part_gpt part_msdos"

# Uncomment to enable Hidden Menu, and optionally hide the timeout count
#GRUB_HIDDEN_TIMEOUT="5"
#GRUB_HIDDEN_TIMEOUT_QUIET="true"

# Uncomment to use basic console
GRUB_TERMINAL_INPUT="console"

# Uncomment to disable graphical terminal
#GRUB_TERMINAL_OUTPUT="console"

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
GRUB_GFXMODE="auto"

# Uncomment to allow the kernel use the same resolution used by grub
GRUB_GFXPAYLOAD_LINUX="keep"

# Uncomment if you want GRUB to pass to the Linux kernel the old parameter 
# format "root=/dev/xxx" instead of "root=/dev/disk/by-uuid/xxx" 
#GRUB_DISABLE_LINUX_UUID="true"

# Uncomment to disable generation of recovery mode menu entries
GRUB_DISABLE_RECOVERY="true"

# Uncomment and set to the desired menu colors.  Used by normal and wallpaper 
# modes only.  Entries specified as foreground/background.
#GRUB_COLOR_NORMAL="light-blue/black"
#GRUB_COLOR_HIGHLIGHT="light-cyan/blue"

# Uncomment one of them for the gfx desired, a image background or a gfxtheme
#GRUB_BACKGROUND="/path/to/wallpaper"
#GRUB_THEME="/path/to/gfxtheme"

# Uncomment to get a beep at GRUB start
#GRUB_INIT_TUNE="480 440 1"

#GRUB_SAVEDEFAULT="true"
Che indicazione potete darmi per risolvere il problema?

Burroughs.

Re: Swapfile e disco SSD

Inviato: ven 30 mag 2014, 20:19
da Blallo
Postaci il dmesg.

Re: Swapfile e disco SSD

Inviato: ven 30 mag 2014, 21:25
da Burroughs
Blallo ha scritto:Postaci il dmesg.
Riporto la parte più significativa:

Codice: Seleziona tutto

  223.784487] TuxOnIce 3.3, with support for usm, compression, block i/o, swap storage, file storage, userui.
[  223.784560] Initiating a hibernation cycle.
[  223.787626] Console is 48x170.
[  223.787664] Using configuration file /etc/splash/tuxonice/1366x768.cfg.
[  223.788136] No silent picture specified in the theme config.
[  223.788159] Framebuffer support initialised successfully.
[  223.793930] Starting other threads.Freezing user space processes ... (elapsed 0.001 seconds) done.
[  223.795478] Freezing remaining freezable tasks ... 
[  223.796566] (elapsed 0.001 seconds) done.
[  224.000042] Restarting kernel threads ... done.
[  228.781051] ACPI Warning: \_SB_.PCI0.PEG0.GFX0._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131218/nsarguments-95)
[  228.781153] ACPI Warning: \_SB_.PCI0.PEG0.GFX0._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20131218/nsarguments-95)
[  242.726016] Asked shrink_memory_mask for 13133 low pages & 0 pages from anywhere, got 9948.
[  242.726020] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[  242.834169] Restarting kernel threads ... done.
[  242.916560] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[  243.114434] Restarting kernel threads ... done.
[  250.718491] Asked shrink_memory_mask for 3154 low pages & 0 pages from anywhere, got 144.
[  250.718496] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[  250.817396] Restarting kernel threads ... done.
[  250.817757] Freezing remaining freezable tasks ... (elapsed 0.001 seconds) done.
[  250.915737] Free:1171373(1171373). Sets:449616(449616),0(0). Nosave:474114-451858=22256. Storage:446614/446614(451616=>449616). Needed:0,0,3002(100,1317,2000,-2) (PS2:no)
[  250.915740] Failed to prepare the image because...
[  250.915741] - The maximum number of iterations was reached without successfully preparing the image.
[  250.915742]  - We need at least 449616 pages of storage (ignoring the header), but only have 446614.
[  250.924320] Restarting tasks ... done.
[  250.929861] video LNXVIDEO:00: Restoring backlight state
[  250.930060] video LNXVIDEO:01: Restoring backlight state
[  250.930469] TuxOnIce debugging info:
- TuxOnIce core  : 3.3
- Kernel Version : 3.14.4-1-ice
- Compiler vers. : 4.9
- Attempt number : 2
- Parameters     : 4105 667656 0 1 -2 0
- Overall expected compression percentage: 0.
- Compressor is 'lzo'.
- Block I/O active.
  Used 0 pages from file /hibfile.
- Max outstanding reads 1. Max writes 0.
  Memory_needed: 1024 x (4096 + 384 + 136) = 4726784 bytes.
  Free mem throttle point reached 0.
- Swap Allocator enabled.
  Swap available for image: 0 pages.
- File Allocator active.
  Storage available for image: 447999 pages.
- No I/O speed stats available.
- Extra pages    : 0 used/2000.
- Result         : Hibernation was aborted.
                 : Insufficient storage was available.
                 : We were unable to successfully prepare an image.

Re: Swapfile e disco SSD

Inviato: ven 30 mag 2014, 21:46
da Blallo
Sembra un semplice problema di swapfile troppo piccolo.
A meno che TuxOnIce non lo crei in automatico, ti basta ingrandirlo.

Re: Swapfile e disco SSD

Inviato: ven 30 mag 2014, 21:51
da Burroughs
Blallo ha scritto:Sembra un semplice problema di swapfile troppo piccolo.
A meno che TuxOnIce non lo crei in automatico, ti basta ingrandirlo.
Sono d'accordo con te, il fatto, però, è che lo swapfile, che ho chiamato hibfile, l'ho creato io ed è di 1,7 GB... :-k

Re: Swapfile e disco SSD

Inviato: sab 31 mag 2014, 4:13
da Blallo
Burroughs ha scritto:Sono d'accordo con te, il fatto, però, è che lo swapfile, che ho chiamato hibfile, l'ho creato io ed è di 1,7 GB... :-k
Fallo di 4GB, se funziona vai al ribasso finché non trovi il limite.