Commit 6f703c4
committed
Merge pull request #1487 from kollyma/speedup_iptables_prefetch_variables
speedup iptables by prefetching the variables-- This PR is replacing speedup iptables setup #1449
-- Squashing commits and cleanup
PR against 4.7 as discussed with Remi Bergsma. This will speed up the iptables creation on the virtual router.
Testing showed the following:
with current code:
root@kvm704:~# time /usr/share/cloudstack-common/scripts/network/domr/router_proxy.sh vr_cfg.sh 169.254.1.176 -c /var/cache/cloud/VR-12f28879-de7e-44d2-8dbe-b93a04bd3ba4.cfg
real 2m56.401s
user 0m0.012s
sys 0m0.012s
modified version:
root@kvm704:~# time /usr/share/cloudstack-common/scripts/network/domr/router_proxy.sh vr_cfg.sh 169.254.1.176 -c /var/cache/cloud/VR-12f28879-de7e-44d2-8dbe-b93a04bd3ba4.cfg
real 1m35.762s
user 0m0.020s
sys 0m0.004s
* pr/1487:
speedup iptables by prefetching the variables
Signed-off-by: Will Stevens <[email protected]>1 file changed
+21
-16
lines changedLines changed: 21 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
775 | 775 | | |
776 | 776 | | |
777 | 777 | | |
| 778 | + | |
| 779 | + | |
| 780 | + | |
| 781 | + | |
| 782 | + | |
778 | 783 | | |
779 | 784 | | |
780 | 785 | | |
781 | | - | |
| 786 | + | |
782 | 787 | | |
783 | 788 | | |
784 | | - | |
| 789 | + | |
785 | 790 | | |
786 | | - | |
| 791 | + | |
787 | 792 | | |
788 | 793 | | |
789 | 794 | | |
790 | 795 | | |
791 | | - | |
| 796 | + | |
792 | 797 | | |
793 | 798 | | |
794 | | - | |
| 799 | + | |
795 | 800 | | |
796 | | - | |
| 801 | + | |
797 | 802 | | |
798 | 803 | | |
799 | 804 | | |
800 | 805 | | |
801 | 806 | | |
802 | 807 | | |
803 | | - | |
| 808 | + | |
804 | 809 | | |
805 | | - | |
| 810 | + | |
806 | 811 | | |
807 | 812 | | |
808 | 813 | | |
809 | 814 | | |
810 | 815 | | |
811 | 816 | | |
812 | | - | |
| 817 | + | |
813 | 818 | | |
814 | 819 | | |
815 | 820 | | |
816 | 821 | | |
817 | 822 | | |
818 | 823 | | |
819 | 824 | | |
820 | | - | |
| 825 | + | |
821 | 826 | | |
822 | 827 | | |
823 | | - | |
824 | | - | |
| 828 | + | |
| 829 | + | |
825 | 830 | | |
826 | 831 | | |
827 | 832 | | |
828 | 833 | | |
829 | | - | |
| 834 | + | |
830 | 835 | | |
831 | 836 | | |
832 | | - | |
| 837 | + | |
833 | 838 | | |
834 | 839 | | |
835 | 840 | | |
836 | | - | |
837 | | - | |
| 841 | + | |
| 842 | + | |
838 | 843 | | |
839 | 844 | | |
840 | 845 | | |
| |||
0 commit comments