[SOLVED] Cauldron: SSD Optimizations with Systemd

(I hope this is the correct place to post this. It concerns SSD optimizations; but since Mageia 3 RC is using systemd, I "guessed" it was a Cauldron thing. Sorry if I "guessed" wrong.)
I'm using Mageia 3 RC and want to implement SSD optimizations described in an excellent article on the subject:
"How to maximise SSD performance with Linux"
http://apcmag.com/how-to-maximise-ssd-performance-with-linux.htm
However, to replace the scheduler "QFC" (optimized for HDD's) with "deadline" (ideal for SSD's), it's necessary to add a statement to the /etc/rc.local file which no-longer exists under systemd.
The statement is: echo deadline >/sys/block/sda/queue/scheduler
I also want to use another tip about creating a primary Swap file in RAM (my only storage device is an SSD and I have 8 MB of RAM), leaving the Swap file on the SSD to be used only when RAM is full.
The tip indicates it's necessary to add a statement to that same /etc/rc.local file:
echo 0 >/proc/sys/vm/swappiness
I read in another post that it's possible to create an rc.local file and cause it to run, but I'm hoping somebody more knowledgeable about Linux than I, can suggest a way to make the same adds in an existing file under systemd.
Many thanks for any help you can provide.
I'm using Mageia 3 RC and want to implement SSD optimizations described in an excellent article on the subject:
"How to maximise SSD performance with Linux"
http://apcmag.com/how-to-maximise-ssd-performance-with-linux.htm
However, to replace the scheduler "QFC" (optimized for HDD's) with "deadline" (ideal for SSD's), it's necessary to add a statement to the /etc/rc.local file which no-longer exists under systemd.
The statement is: echo deadline >/sys/block/sda/queue/scheduler
I also want to use another tip about creating a primary Swap file in RAM (my only storage device is an SSD and I have 8 MB of RAM), leaving the Swap file on the SSD to be used only when RAM is full.
The tip indicates it's necessary to add a statement to that same /etc/rc.local file:
echo 0 >/proc/sys/vm/swappiness
I read in another post that it's possible to create an rc.local file and cause it to run, but I'm hoping somebody more knowledgeable about Linux than I, can suggest a way to make the same adds in an existing file under systemd.
Many thanks for any help you can provide.