SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#76 2013-09-05 14:39:11

ahumba
Member
Registered: 2013-08-28
Posts: 30

Re: HOWTO - Optimize #! statler for use with a solid state drive

Alright then, I want to hibernate, so I need swap. Is anacron running cron jobs the system needs or is it only for user specific made cronjobs? I won't mount /var/spool/, cause that's not necessary for a laptop. Thanks fatmac smile

Offline

Help fund CrunchBang, donate to the project!

#77 2013-09-05 17:19:55

fatmac
#! Die Hard
Registered: 2012-11-14
Posts: 1,948

Re: HOWTO - Optimize #! statler for use with a solid state drive

Take a look for yourself,
cat /etc/crontab
smile

Edit: Re phrased what I previously wrote.

ls /etc/cron.daily
ls /etc/cron.weekly
ls /etc/cron.monthly

Edit2: Must be the heat, had to do 2 edits!

With anacron these scheduled jobs will run when the computer re connects, so you don't need to worry about them.

Last edited by fatmac (2013-09-05 17:28:00)

Offline

#78 2013-09-05 18:00:41

ahumba
Member
Registered: 2013-08-28
Posts: 30

Re: HOWTO - Optimize #! statler for use with a solid state drive

0anacron, run before any other script. Also, anacron is useful for a system not running 24/7 if I understood Wikipedia correctly. It sounds useful imho.

Offline

#79 2013-09-05 22:55:45

mynis01
#! Die Hard
From: 127.0.0.1
Registered: 2010-07-02
Posts: 2,005

Re: HOWTO - Optimize #! statler for use with a solid state drive

Offline

#80 2013-09-06 15:11:29

ahumba
Member
Registered: 2013-08-28
Posts: 30

Re: HOWTO - Optimize #! statler for use with a solid state drive

My SSD arrived and here is my first issue: I can't see the drive when I boot the live USB and start gparted..

Edit: Fixed, after I fiddled with it, it's showing up in the BIOS smile

Question: I want to hibernate, so I need swap. Should I make a partition for this? It will get a lot of writes..

Last edited by ahumba (2013-09-06 16:28:02)

Offline

#81 2013-09-06 20:01:05

ahumba
Member
Registered: 2013-08-28
Posts: 30

Re: HOWTO - Optimize #! statler for use with a solid state drive

Offline

#82 2013-09-07 10:13:56

mynis01
#! Die Hard
From: 127.0.0.1
Registered: 2010-07-02
Posts: 2,005

Re: HOWTO - Optimize #! statler for use with a solid state drive

Offline

#83 2013-09-09 17:28:59

ahumba
Member
Registered: 2013-08-28
Posts: 30

Re: HOWTO - Optimize #! statler for use with a solid state drive

Offline

#84 2013-09-09 19:35:16

fatmac
#! Die Hard
Registered: 2012-11-14
Posts: 1,948

Re: HOWTO - Optimize #! statler for use with a solid state drive

So was that 2 partitions, / & /home; &/or with a swap file under /home (?).
(I'm not keen on having any swap on an SSD, I'd rather wait for it to boot than use hibernate.)

Offline

#85 2013-09-10 09:12:21

ahumba
Member
Registered: 2013-08-28
Posts: 30

Re: HOWTO - Optimize #! statler for use with a solid state drive

Last edited by ahumba (2013-09-10 09:13:05)

Offline

#86 2013-09-10 17:02:40

fatmac
#! Die Hard
Registered: 2012-11-14
Posts: 1,948

Re: HOWTO - Optimize #! statler for use with a solid state drive

Yes, I just read that somewhere as well the other day, so you should be good to go.

Edit: It was on the Debian wiki for SSD.

Last edited by fatmac (2013-09-10 17:03:34)

Offline

#87 2013-09-10 17:10:58

ahumba
Member
Registered: 2013-08-28
Posts: 30

Re: HOWTO - Optimize #! statler for use with a solid state drive

The only thing now is that I have this daily cronjob and it hasn't run yet. Or it has run, but the logging is flawed. Can someone check this out:

#! /bin/sh
LOG = /var/log/batched_discard.log
echo "*** $(date -R) ***" >> $LOG
fstrim -v / >> $LOG
fstrim -v /home >> $LOG

I also noticed that durin the install there is a 1MB of free space before my root partition. I assume that this is the alignment Wheezy takes care of?

Offline

#88 2013-09-11 09:14:51

fatmac
#! Die Hard
Registered: 2012-11-14
Posts: 1,948

Re: HOWTO - Optimize #! statler for use with a solid state drive

Try running it manually; it's just possible that it needs root permission for a log file.
(Have a look at/in man crontab)

Agree, 1mb is probably for alignment, I sometimes have a MB or two 'unused' on my disks.

Offline

#89 2013-09-11 09:36:04

ahumba
Member
Registered: 2013-08-28
Posts: 30

Re: HOWTO - Optimize #! statler for use with a solid state drive

When I run it as user and root I get the following:

/etc/cron.daily/batched_discard: 2: /etc/cron.daily/batched_discard: LOG: not found
/etc/cron.daily/batched_discard: 3: /etc/cron.daily/batched_discard: cannot create : Directory nonexistent
/etc/cron.daily/batched_discard: 4: /etc/cron.daily/batched_discard: cannot create : Directory nonexistent
/etc/cron.daily/batched_discard: 5: /etc/cron.daily/batched_discard: cannot create : Directory nonexistent

Edit: /var/spool is on tmpfs, this might cause a hickup, I will investigate..

Last edited by ahumba (2013-09-11 09:41:20)

Offline

#90 2014-04-13 18:08:12

bokiscout
Member
Registered: 2014-04-09
Posts: 13

Re: HOWTO - Optimize #! statler for use with a solid state drive

sudo chmod +x /etc/cron.daily/trim

Offline

#91 2014-04-14 06:19:30

mynis01
#! Die Hard
From: 127.0.0.1
Registered: 2010-07-02
Posts: 2,005

Re: HOWTO - Optimize #! statler for use with a solid state drive

bash /etc/cron.daily/trim

Last edited by mynis01 (2014-04-14 06:22:18)

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat

Debian Logo