Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

[PROBLEM] Increase network buffer
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Problem: Increase network buffer
31st Dec, 2012, 10:05 AM
Post: #3
Uncle_Tubbie Offline
Thankful
Posts: 46
Joined: Dec 2012
Reputation: 4
RE: Increase network buffer
Would this help, it's from IGOR blog:

A successor to compcache, zram, has been already integrated in the Linux kernel for a while now. This means that no additional compilation nor tweaking is required to benefit from compressing memory on the fly and massively reduced swapping.

As with compache, I wanted to nicely integrate the solution into the Ubuntu Upstart deamon – hence this short article. After a couple of minutes of playing the configuration was ready.

Create file zramswap.conf in /etc/init and put the following content in it.


01 description "Initializes zram swaping"
02
03 start on runlevel [2345]
04 stop on runlevel [!2345]
05
06 pre-start script
07
08 # load dependency modules
09 modprobe zram num_devices=2
10
11# initialize the devices
12 echo 1073741824 > /sys/block/zram0/disksize
13 echo 1073741824 > /sys/block/zram1/disksize
14
15 # Creating swap filesystems
16 mkswap /dev/zram0
17 mkswap /dev/zram1
18
19 # Switch the swaps on
20 swapon -p 5 /dev/zram0
21 swapon -p 5 /dev/zram1
22 end script
23
24 post-stop script
25
26 # Switching off swap
27 swapoff /dev/zram0
28 swapoff /dev/zram1
29
30 rmmod zram
31 end script
Now you can start the service with sudo start zramswap (it will be automatically started on after the reboot as well).
You will benefit from 2x1GB swap files, which will be compressed and stored in the RAM. Tested on Ubuntu 11.04.


PLEASE remember Im not the smartest guy in the room, so wait till someone else confirms this before trying at your own risk.


Attached File(s)
.txt  zramswap.conf.txt (Size: 556 bytes / Downloads: 5)
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Messages In This Thread
Increase network buffer - p4trykx - 31st Dec, 2012, 08:24 AM
RE: Increase network buffer - Koenkk - 31st Dec, 2012, 08:38 AM
RE: Increase network buffer - Uncle_Tubbie - 31st Dec, 2012 10:05 AM
RE: Increase network buffer - raspberry_pd - 1st Jan, 2013, 05:59 AM
RE: Increase network buffer - p4trykx - 2nd Jan, 2013, 09:21 AM
Increase network buffer - Koenkk - 2nd Jan, 2013, 03:46 PM
RE: Increase network buffer - raspberry_pd - 6th Jan, 2013, 10:07 AM
RE: Increase network buffer - CurlyMo - 2nd Jan, 2013, 08:03 PM
Increase network buffer - Koenkk - 2nd Jan, 2013, 10:27 PM
RE: Increase network buffer - p4trykx - 3rd Jan, 2013, 06:06 AM
RE: Increase network buffer - p4trykx - 5th Jan, 2013, 05:02 AM
RE: Increase network buffer - namtih - 5th Jan, 2013, 10:29 PM
RE: Increase network buffer - eth0 - 6th Jan, 2013, 06:21 AM
Increase network buffer - Koenkk - 6th Jan, 2013, 05:33 PM
RE: Increase network buffer - raspberry_pd - 7th Jan, 2013, 02:38 PM
RE: Increase network buffer - gizag - 7th Jan, 2013, 11:26 PM
RE: Increase network buffer - Koenkk - 8th Jan, 2013, 01:31 AM
RE: Increase network buffer - CurlyMo - 8th Jan, 2013, 02:57 AM
RE: Increase network buffer - Pihkal - 15th Jan, 2013, 03:41 AM
RE: Increase network buffer - Koenkk - 15th Jan, 2013, 03:49 AM
RE: Increase network buffer - Pihkal - 15th Jan, 2013, 04:28 AM
RE: Increase network buffer - Koenkk - 15th Jan, 2013, 08:10 AM
RE: Increase network buffer - Pihkal - 15th Jan, 2013, 11:49 PM
RE: Increase network buffer - Koenkk - 30th Jan, 2013, 02:11 AM

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 12th Jun, 2025, 01:16 PM Powered By MyBB, © 2002-2025 MyBB Group.