Visitors To This Post

Search This Blog

Sunday, February 23, 2020

Drink Dr. Prepper, the Survivalists?


ARE YOU READY?




Many isolationist oriented preppers project egos of knowledge.

Many preppers have a huge game plans tinkering and thinking themselves experts.

Many preppers are easily traceable into rejects general population/society.

Many preppers are still living in their mother's basement whether be`it they have or have not ever, cause similarities are shockingly remarkable similar.

Many preppers  hide-out in many U.S.city regions nationwide all pretending to have created these few handy tips that origins are from articles in the farmers almanac regards homesteading. 

... shame on this 98% average of fake preppers ...

Many preppers boast of their supplies a person needs with shelter that in the real world must last over around 3 yrs, and never 6 months, prepper idiots!



RULES OF THUMB:
“Two is one. One is none.” Assume something will go wrong with your food-provisions and-or your physical survival gear(s).

Rule of Three, (originated from the native-American-culture and not preppers), and they are; The average person has the following time frames (all related to some measure of three) to survive: three minutes without oxygen, three hours in harsh climate (e.g. severe cold temps), three days without water, three weeks without food.

The average male needs to consume 2,500 calories per day, and the average female needs to consume 2,000 calories per day.

The average person needs 2 gallons of water per day (minimum) to survive: ½ gallon to drink, ½ gallon to cook, 1 gallon for cleaning and hygiene.

FOOD:
Most people will only have about three days’ worth of perishable food in their pantries. Beyond that, they will need to build up long-term food reserves. Harris recommends a mixture of food supplies to incorporate variety, but also to maintain a healthy balance of nutrients.

The average man would need to consume approximately 450,000 calories over a 6-month period. The average woman would need approximately 360,000 calories.

Most canned goods and properly packaged (nonrefrigerated) items will last six months to a year, so Harris highly recommends caching a good portion of your long-term foods with items that you already eat on a regular basis (e.g., canned corn, peas, green beans, etc.).
If you don’t expect to have electricity, or you are on a tight budget, there are still many good options available on the market. Consider the following examples:
SOS Food Ration Bars. Each brick contains approximately nine 400-calorie bars totaling 3,600 calories.

Liberty Tree (Gluten-Free) Dehydrated/Freeze-Dried pre-packaged meals. Each bucket has a 20-year shelf life and consists of approximately 18,000 calories.
To eat for one day, Harris recommends something like this: an SOS bar for breakfast, a Liberty Tree pre-packaged meal for lunch and a meal of one vegetable, one protein and one fruit from long-term food storage supplies for dinner.

Be sure to have a good daily multivitamin during this period to supplement the vitamins and minerals needed to maintain your health.

WATER:
360 gallons for drinking, cooking, cleaning, hygieneA food-grade water storage containers for long-term water storageA water filter and/or a water filtration strawBoiling, chlorination (liquid bleach) and/or distillation is highly recommended for any long-term water storage solutions if you do not have a good water filtration system.

WARMTH:
BlanketsBody WarmersFire-starters, flint fire-starter, lighter, waterproof matchesCandles

HYGIENE:Toothbrush, toothpaste, dental floss, mouthwash
Razor, shaving creamDeodorantNail file, nail clippersShampoo, soap, hand sanitizer, hand lotionFeminine Hygiene ProductsToilet PaperDisposable waste bags

FIRST AID:
First-aid guideBandages, gauze pads, gauze wrapAlcohol prep pads, alcohol, hydrogen peroxideBurn gel/creamTweezers, shears, butterfly wound closures, sutures, suture removal kit, skin staplerPain reliever, triple antibiotics, sting relief, antacid, diotame anti-diarrheal, electrolyte replacementTourniquet, tapeNitrile Gloves, N95 surgical-grade maskAny specific medications required

TOOLS/GEAR:
Manual can openerLED Flashlight/Batteries (solar/hand-crank)High quality multi-tool (we recommend Leatherman)NOAA Weather RadioGenerator (Gas/Propane/Solar)Entertainment (Playing Cards, books, games, etc.)Forms of communication (cell phone, HAM radio, walkie-talkies, powercords, chargers, etc.), Personal protection

W3C-Validator Ubunut-Fix

Source:
https://askubuntu.com/questions/471523/install-wc3-markup-validator-locally






How to install and use w3c markup validator on Ubuntu 13.10 locally? I know I can install it by installing following packages:
sudo apt-get install libapache2-mod-perl2   
sudo apt-get install w3c-markup-validator

but how do I configure it to use it same way as on-line version (that is by web browser), but locally?

Its uses CGI to work, and is probably designed for a webserver - the script on ubuntu seems to be located at /usr/lib/cgi-bin/w3c-markup-validator/check. Also: stackoverflow.com/a/16673201/2943276Wilf May 24 '14 at 14:42

If you find a way to use the validator offline, can you reply with detailed steps please, I was also looking for that :) – MrVaykadji May 24 '14 at 14:59

 2 Answers:

Good news! So if you have apache2 already installed, you install W3C Validator and Perl:
sudo apt-get install w3c-markup-validator libapache2-mod-perl2

The issue is that the w3c-markup-validator package hasn't been updated to install properly on 13.10+ (I'm on 14.04). To fix it manually:
sudo ln -s /etc/w3c/httpd.conf /etc/apache2/conf-enabled/w3c-markup-validator.conf

I then had an issue where /usr/lib/cgi-bin didn't have the correct permissions.

This is due to a problem in /etc/apache2/conf-available/serve-cgi-bin.conf where it will only give the correct permission if the module is being loaded. It appears this version of perl isn't listed in the IfModule statement. To fix this:
sudo gedit /etc/apache2/conf-available/serve-cgi-bin.conf

You want it to look like this:
 ---------------------------------------------------------------------
<IfModule mod_alias.c>
    <IfModule mod_cgi.c>
        Define ENABLE_USR_LIB_CGI_BIN
    </IfModule>

    <IfModule mod_cgid.c>
        Define ENABLE_USR_LIB_CGI_BIN
    </IfModule>

    <IfModule mod_perl.c>
        Define ENABLE_USR_LIB_CGI_BIN
    </IfModule>

    <IfDefine ENABLE_USR_LIB_CGI_BIN>
        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
        <Directory "/usr/lib/cgi-bin">
            AllowOverride None
            Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
            Require all granted
        </Directory>
    </IfDefine>
</IfModule>

# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
---------------------------------------------------------------------

Once you're done with these steps you have to symlink validator's html directory to /var/www/html:
sudo ln -s /usr/share/w3c-markup-validator/html /var/www/html/w3c-validator 

Once the file is linked and the changes are in place, all you have to do is restart the Apache server:
sudo service apache2 restart

Check that it's all working
http://localhost/w3c-validator

CSS might be missing from validator page in the browser, but validation should work well.

Try sudo xdg-open http://localhost/w3c-validator or to change httpd.conf's permission with sudo chown $USER:$USER /etc/w3c/httpd.conf and sudo chmod 777 /etc/w3c/httpd.conf. – MrVaykadji May 25 '14 at 19:52


I gave that a try and it didn't work. I'm pretty sure the problem is in /etc/w3c/httpd.conf and how it uses mod_rewrite to link to /usr/lib/cgi-bin/w3c-markup-validator/check. Possibly an Apache rule about running code perl that's not in the docroot... – Skarard May 25 '14 at 20:15


/etc/w3c/validator.conf might also need checking. E.g. there might be a validator.conf.dpkg-dist that is different. – Wolfgang Fahl Apr 13 '16 at 5:29


After applying @Skarard's answer the W3CValidator showed up but the check didn't work. There were errors in /var/log/apache2/error.log
  AH01337: Could not parse expr "$QUERY_STRING = /(^|[;&])debug(=[^0]?)?(\\b|$)/" in /usr/share/w3c-markup-validator/html/header.html: Parse error near '$'
  AH01337: Could not parse expr "$includeJS = 1" in /usr/share/w3c-markup-validator/html/header.html: Parse error near '$'
  AH01337: Could not parse expr "$debug = 1" in /usr/share/w3c-markup-validator/html/header.html: Parse error near '$'
  AH01337: Could not parse expr "$feeds = 1" in /usr/share/w3c-markup-validator/html/header.html: Parse error near '$'

So I found out that the validator.conf file was pointing to a wrong schema location. There was a left over validator.conf.dpkg-dist
/etc/w3c# diff validator.conf validator.conf.dpkg-dist 
42c42
<     Library = /usr/share/xml/xhtml/schema/dtd
---
>     Library = /usr/share/xml/w3c-sgml-lib/schema/dtd
57c57
< Allow Private IPs = yes
---
> Allow Private IPs = no
75c75
<   Allow = http
---
>   Allow = data,ftp,http,https
118,123d117
< 
< #
< # Source for the "Tip of The Day" blurbs.
< <Tips>
<   Include tips.cfg
< </Tips>

I moved the validator.conf.dkpk-dist to validator.conf and restarted apache. The error messages in /var/log/apache2/error.log were still there.
Apache 2.4 being in use seemed to be the reason as outlined in https://stackoverflow.com/questions/14878076/how-does-expression-work-in-apache-2-4) so i had to add
SSILegacyExprParser On
to the w3c-markup-validator.conf file.

Saturday, February 22, 2020

IP Subnet 1-32 references

Source:


IP Subnet 1-32 references



What Is a Subnet?

An IP address contains data-set numbers identifying  networks billions of computers are connected to.

The computer and-or host home-PC computer itself has an IP address associated with a single MAC-address, (MAC-Address-Example; 10:k7:98:y8:20:b7 ),  provides a way of networking hardware to recognize the network as well as the host segments of an IP address attached to Mac-Addresses.

This is were sub-netting can be exampled keeping people connected listed below.



All subnets for 192.168.0.1 are:


  CIDR block     IP range (network - broadcast)     Subnet Mask     IP Quantity  
  192.168.0.1/32     192.168.0.1 - 192.168.0.1     255.255.255.255     1  
  192.168.0.0/31     192.168.0.0 - 192.168.0.1     255.255.255.254     2  
  192.168.0.0/30     192.168.0.0 - 192.168.0.3     255.255.255.252     4  
  192.168.0.0/29     192.168.0.0 - 192.168.0.7     255.255.255.248     8  
  192.168.0.0/28     192.168.0.0 - 192.168.0.15     255.255.255.240     16  
  192.168.0.0/27     192.168.0.0 - 192.168.0.31     255.255.255.224     32  
  192.168.0.0/26     192.168.0.0 - 192.168.0.63     255.255.255.192     64  
  192.168.0.0/25     192.168.0.0 - 192.168.0.127     255.255.255.128     128  
  192.168.0.0/24     192.168.0.0 - 192.168.0.255     255.255.255.0     256  
  192.168.0.0/23     192.168.0.0 - 192.168.1.255     255.255.254.0     512  
  192.168.0.0/22     192.168.0.0 - 192.168.3.255     255.255.252.0     1024  
  192.168.0.0/21     192.168.0.0 - 192.168.7.255     255.255.248.0     2048  
  192.168.0.0/20     192.168.0.0 - 192.168.15.255     255.255.240.0     4096  
  192.168.0.0/19     192.168.0.0 - 192.168.31.255     255.255.224.0     8192  
  192.168.0.0/18     192.168.0.0 - 192.168.63.255     255.255.192.0     16384  
  192.168.0.0/17     192.168.0.0 - 192.168.127.255     255.255.128.0     32768  
  192.168.0.0/16     192.168.0.0 - 192.168.255.255     255.255.0.0     65536  
  192.168.0.0/15     192.168.0.0 - 192.169.255.255     255.254.0.0     131072  
  192.168.0.0/14     192.168.0.0 - 192.171.255.255     255.252.0.0     262144  
  192.168.0.0/13     192.168.0.0 - 192.175.255.255     255.248.0.0     524288  
  192.160.0.0/12     192.160.0.0 - 192.175.255.255     255.240.0.0     1048576  
  192.160.0.0/11     192.160.0.0 - 192.191.255.255     255.224.0.0     2097152  
  192.128.0.0/10     192.128.0.0 - 192.191.255.255     255.192.0.0     4194304  
  192.128.0.0/9     192.128.0.0 - 192.255.255.255     255.128.0.0     8388608  
  192.0.0.0/8     192.0.0.0 - 192.255.255.255     255.0.0.0     16777216  
  192.0.0.0/7     192.0.0.0 - 193.255.255.255     254.0.0.0     33554432  
  192.0.0.0/6     192.0.0.0 - 195.255.255.255     252.0.0.0     67108864  
  192.0.0.0/5     192.0.0.0 - 199.255.255.255     248.0.0.0     134217728  
  192.0.0.0/4     192.0.0.0 - 207.255.255.255     240.0.0.0     268435456  
  192.0.0.0/3     192.0.0.0 - 223.255.255.255     224.0.0.0     536870912  
  192.0.0.0/2     192.0.0.0 - 255.255.255.255     192.0.0.0     1073741824  
  128.0.0.0/1     128.0.0.0 - 255.255.255.255     128.0.0.0     2147483648  














Source Reference.

Tuesday, February 18, 2020

Melanesians Unknown Human Species DNA Baffled Scientists


Melanesians Unknown Human Species DNA Baffled Scientists

Posted by Awareness

Hints of an unidentified, extinct human species have been found in the DNA of modern Melanesians – those living in a region of the South Pacific, northeast of Australia. According to new genetic modelling, the species is unlikely to be Neanderthal or Denisovan – two ancient species that are represented in the fossil record – but could represent a third, unknown human relative that has so far eluded archaeologists.

“We're missing a population, or we're misunderstanding something about the relationships,” Ryan Bohlender, a statistical geneticist from the University of

Texas, told Tina Hesman Saey at Science News.
Bohlender and his team have been investigating the percentages of extinct hominid DNA that modern humans still carry today, and say they've found discrepancies in previous analyses that suggest our mingling with Neanderthals and Denisovans isn't the whole story.

It's thought that between 100,000 and 60,000 years ago, our early ancestors migrated out of Africa, and first made contact with other hominid species living on the Eurasian landmass.
This contact left a mark on our species that can still be found today, with Europeans and Asians carrying distinct genetic variants of Neanderthal DNA in their own genomes. And that's not all they've given us.
Earlier this year, researchers investigated certain genetic variants that people of European descent inherited from Neanderthals, and found that they're associated with several health problems, including a slightly increased risk of depression, heart attack, and a number of skin disorders.
And a separate study published earlier this month found evidence that modern genital warts – otherwise known as the human papillomavirus (HPV) – were sexually transmitted to Homo sapiens after our ancestors slept with Neanderthals and Denisovans once they left Africa.
While our relationship with Neanderthals has been widely researched, how we interacted with the Denisovans – the distant cousins of Neanderthals – is less clear.
The problem is that Neanderthals are well represented in the fossil record, with many remains having been uncovered across Europe and Asia, but all we have of the Denisovans is a lone finger bone and a couple of teeth that were found in a Siberian cave in 2008.
Using a new computer model to figure out the amount of Neanderthal and Denisovan DNA carried by modern humans, Bohlender and his colleague found that European people carry a similar amount of Neanderthal DNA: about 2.8 percent.
That result is pretty similar to previous studies have estimated that Europeans and Asians carry, on average, between 1.5 and 4 percent Neanderthal DNA.
But when they got to Denisovan DNA, things were a bit more complicated, particularly when it came to modern populations living in Melanesia – a region of the South Pacific that includes Vanuatu, the Solomon Islands, Fiji, Papua New Guinea, New Caledonia, West Papua, and the Maluku Islands.
As Hesman Saey explains for Science News:
“Europeans have no hint of Denisovan ancestry, and people in other-countries have a tiny amount – 0.1 percent, according to Bohlender's calculations. But 2.74 percent of the DNA in people in Papua New Guinea comes from Neanderthals.
And Bohlender estimates the amount of Denisovan DNA in Melanesians is about 1.11 percent, not the 3 to 6 percent estimated by other researchers. While investigating the Denisovan discrepancy, Bohlender and colleagues came to the conclusion that a third group of hominids may have bred with the ancestors of Melanesians.”
“Human history is a lot more complicated than we thought it was,”
he told her. This find is supported by a separate study by researchers from the Natural History Museum of Denmark, who analysed DNA from 83 Aboriginal Australians and 25 locals from the Papua New Guinea highlands. As we reported last month, this was the most comprehensive genetic study of Indigenous Australians to date, and it indicated that they are the oldest continuous civilization on Earth, dating back more than 50,000 years ago.
But the results revealed something else – DNA that was very similar to that of the Denisovans, but distinct enough for the researchers to suggest that it could have come from a third, unidentified hominid. “Who this group is we don't know,” lead researcher Eske Willerslev told Hesman Saey.
Until we have more concrete evidence of this hypothesized third human species (some fossils would be nice), we can't prove this, and we should point out that Bohlender's estimates have yet to be formally peer-reviewed, so they might shift with further scrutiny.
And it could be that our identification of Denisovan DNA is more ambiguous than we think, given that our only source is a finger bone and a couple of teeth. But the evidence is mounting that our interactions with ancient humans were far more complex than we'd assumed, which shouldn't be much of a surprise, when you think about it.
Just because we don't see them in the fossil record doesn't mean they didn't exist – preserving the remains of something for tens of thousands of years isn't easy, and then someone has to be in the right place at the right time to dig them up. Hopefully, the more we investigate the genetic make-up of our most ancient societies, the more hints we'll get of the rich and complicated history our species shared with those that didn't make it to modern times.
So much incredible findings of an unknown DNA surface, we may need to think twice before saying that we are ‘alone’ in the universe. The results of Bohlender's analysis were presented last week at the 2016 American Society of Human Genetics meeting in Canada.

DNA, extinct human species, Melanesian, Neanderthal, Denisovan, archaeologist, geneticist, hominid DNA, Africa, Eurasian landmass, Europeans, Asians, papillomavirus (HPV), Homo sapiens, Siberian, Asia, South Pacific, Vanuatu, Solomon Islands, Fiji, Papua New Guinea, New Caledonia, West Papua, Maluku Islands.

West Africans Human Origins Complicates History Re-writers via 'Ghost' DNA

Article Source Origin: npr.org

West Africans Human Origins Complicates History Re-writers via 'Ghost' DNA

DNA, extinct human species, Melanesian, Neanderthal, Denisovan, archaeologist, geneticist, hominid DNA, Africa, Eurasian landmass, Europeans, Asians, papillomavirus (HPV), Homo sapiens, Siberian, Asia, South Pacific, Vanuatu, Solomon Islands, Fiji, Papua New Guinea, New Caledonia, West Papua, Maluku Islands

Merrit Kennedy Instagram Twitter

An artist's rendering of DNA. Scientists have found traces of DNA that they say is evidence that prehistoric humans procreated with an unknown hominin group in West Africa.

  Westend61/Getty Images/Westend61 hide caption
toggle caption Westend61/Getty Images/Westend61

An artist's rendering of DNA. Scientists have found traces of DNA that they say is evidence that prehistoric humans procreated with an unknown hominid group in West Africa.
Westend61/Getty Images/Westend61
About 50,000 years ago, ancient humans in what is now West Africa apparently procreated with another group of ancient humans that scientists didn't know existed.

There aren't any bones or ancient DNA to prove it, but researchers say the evidence is in the genes of modern West Africans. They analyzed genetic material from hundreds of people from Nigeria and Sierra Leone and found signals of what they call "ghost" DNA from an unknown ancestor.

Our own species — Homo sapiens — lived alongside other groups that split off from the same genetic family tree at different times. And there's plenty of evidence from other parts of the world that early humans had sex with other hominins, like Neanderthals.

That's why Neanderthal genes are present in humans today, in people of European and Asian descent. Homo sapiens also mated with another group, the Denisovans, and those genes are found in people from Oceania.

Denisovans, A Mysterious Kind Of Ancient Humans, Are Traced To Tibet

The findings on ghost DNA, published in the journal Science Advances, further complicate the picture of how Homo sapiens — or modern humans — evolved away from other human relatives. "It's almost certainly the case that the story is incredibly complex and complicated and we have kind of these initial hints about the complexity," says Sriram Sankararaman, a computational biologist at UCLA.

The scientists analyzed the genomes of 405 West Africans. Sankararaman says they used a statistical model to flag parts of the DNA. The technique "goes along a person's genome and pulls out chunks of DNA which we think are likely to have come from a population that is not modern human."

Mixing It Up 50,000 Years Ago — Who Slept With Whom?

The unusual DNA found in West Africa isn't associated with either Neanderthals or Denisovans. Sankararaman and his study co-author, Arun Durvasula, think it comes from a yet-to-be-discovered group.
"We don't have a clear identity for this archaic group," Sankararaman says. "That's why we use the term 'ghost.' It doesn't seem to be particularly closely related to the groups from which we have genome sequences from."
The scientists think the interbreeding happened about 50,000 years ago, roughly the same time that Neanderthals were breeding with modern humans elsewhere in the world. It's not clear whether there was a single interbreeding "event," though, or whether it happened over an extended period of time.
The unknown group "appears to have split off from the ancestors of modern humans a little before when Neanderthals split off from our ancestors," he says.
Sharon Browning, a biostatistics professor at the University of Washington who has studied the mixing of Denisovans and humans, says "the scenario that they are discovering here is one that seems realistic."

Ancient Bone Reveals Surprising Sex Lives Of Neanderthals
Browning notes that the ghost DNA appears frequently in the genetic material. "That tells us that these archaic populations might have had some DNA that did some useful stuff that's proved to be useful to the modern population," she says.
But at the moment, Sankararaman says, it's not possible to know what, if any, role these genetic materials have for modern humans who carry them. "Are they just randomly floating in our genomes? Do they have any kind of adaptive benefits? Do they have deleterious consequences?" he added. "Those are all questions which would be fantastic to start thinking about."
He says there is likely evidence of other ghost populations in modern humans in other parts of the world. "I think as we get the genome sequences from different parts of the world at different points in time, there is always the possibility that we might discover these as-yet-unidentified ghost populations," Sankararaman says.
It's also possible that the ghost DNA found in this study comes from multiple groups, Browning added. "Within Africa, we don't know how many archaic groups might have been involved, and the study doesn't tell us that," she says. "It tells us that there was integration, but it could have been from more than one archaic population, in theory."
Compared with the Neanderthals, where there is abundant DNA fossil evidence, physical samples are much harder to come by in Africa. Browning says the climate on the continent has made it challenging.
"The conditions have to be right for the fossils to not totally disintegrate" in order to recover DNA, Browning says. Bones have been found in Africa from archaic populations, but no DNA has been recovered. Still, she adds, "the technology is continuing to improve, and people are still out there looking for more fossils."
So what happened to this mysterious group of ancient humans? Scientists aren't totally sure.
They might have died off, or they might have eventually been completely subsumed into modern humans.



Catch up on the latest headlines and unique NPR stories, sent every weekday.

Saturday, February 1, 2020

Ultra Low Latency Server Huge-page Config


Ultra Low Latency Server Huge-page Config






#

# Uncomment the following to stop low-level messages on console
kernel.printk = 3 4 1 3

# /etc/sysctl.conf - Configuration file for setting system variables
# See /etc/sysctl.d/ for additional system variables.
# See sysctl.conf (5) for information.
#
net.ipv4.tcp_fin_timeout = 1
#

# Increase maximum amount of memory allocated to shm
# Increase size of file handles and inode cache
fs.file-max = 209715200000
#

# Increase size of Kernel Memory Sharing
kernel.shmmax = 51539607552
kernel.shmmni = 515396075
kernel.shmall = 51539607552

vm.hugepages_treat_as_movable=24576
vm.nr_hugepages=24576
vm.nr_hugepages_mempolicy=24576
vm.nr_overcommit_hugepages=24576
vm.hugetlb_shm_group=0

#
# This will increase the amount of memory available for socket input/output queues
# Increase number of incoming connections
net.core.somaxconn = 65535
net.ipv4.tcp_rmem = 4096 51539607552 51539607552

# Maximum Socket Receive Buffer
net.core.rmem_max = 51539607552

# Default Socket Receive Buffer
net.core.rmem_default = 51539607552
net.ipv4.tcp_wmem = 4096 65536 51539607552

# Maximum Socket Send Buffer
net.core.wmem_max = 51539607552

# Default Socket Send Buffer
net.core.wmem_default = 31457280
net.core.optmem_max = 51539607552

net.ipv4.tcp_max_orphans = 51539607552
net.ipv4.tcp_max_syn_backlog = 51539607552

# Number of times SYNACKs for passive TCP connection.
net.ipv4.tcp_synack_retries = 2
net.ipv4.tcp_syn_retries = 2

# Increase the maximum amount of option memory buffers
net.core.optmem_max = 51539607552

##############################################################3

# Do less swapping
vm.swappiness = 0
vm.dirty_ratio = 1
vm.dirty_background_ratio = 1

### GENERAL NETWORK SECURITY OPTIONS ###

# Allowed local port range
net.ipv4.ip_local_port_range = 1 65535

# Protect Against TCP Time-Wait
net.ipv4.tcp_rfc1337 = 1

##############################################################3

### TUNING NETWORK PERFORMANCE ###

##############################################################3
# Functions previously found in netbase
#

# Uncomment the next two lines to enable Spoof protection (reverse-path filter)
# Turn on Source Address Verification in all interfaces to
# prevent some spoofing attacks
net.ipv4.conf.default.rp_filter=1
net.ipv4.conf.all.rp_filter=1

# Uncomment the next line to enable TCP/IP SYN cookies
# See http://lwn.net/Articles/277146/
# Note: This may impact IPv6 TCP sessions too
net.ipv4.tcp_syncookies=1

# Uncomment the next line to enable packet forwarding for IPv4
net.ipv4.ip_forward=1

# Uncomment the next line to enable packet forwarding for IPV4/IPv6
# Enabling this option disables Stateless Address Autoconfiguration
# based on Router Advertisements for this host
net.ipv6.conf.all.forwarding=1
net.ipv6.conf.all.forwarding=1

###################################################################
# Additional settings - these settings can improve the network
# security of the host and prevent against some network attacks
# including spoofing attacks and man in the middle attacks through
# redirection. Some network environments, however, require that these
# settings are disabled so review and enable them as needed.
#
# Do not accept ICMP redirects (prevent MITM attacks)
net.ipv4.conf.all.accept_redirects = 0
net.ipv6.conf.all.accept_redirects = 0
# _or_
# Accept ICMP redirects only for gateways listed in our default
# gateway list (enabled by default)
# net.ipv4.conf.all.secure_redirects = 1
#
# Do not send ICMP redirects (we are not a router)
net.ipv4.conf.all.send_redirects = 0
#
# Do not accept IP source route packets (we are not a router)
net.ipv4.conf.all.accept_source_route = 0
net.ipv6.conf.all.accept_source_route = 0
#
# Log Martian Packets
net.ipv4.conf.all.log_martians = 1
#

###################################################################
# Magic system request Key
# 0=disable, 1=enable all
# Debian kernels have this set to 0 (disable the key)
# See https://www.kernel.org/doc/Documentation/sysrq.txt
# for what other values do
kernel.sysrq=0

###################################################################
# Protected links
#
# Protects against creating or following links under certain conditions
# Debian kernels have both set to 1 (restricted)
# See https://www.kernel.org/doc/Documentation/sysctl/fs.txt
fs.protected_hardlinks=0
fs.protected_symlinks=0
#
###################################################################

Optimizing and Tuning R815-Server via Ultra/Low-Latency Configurations:

0. tuned-adm profile latency-performance 
0.1 for MF in `find /proc/irq -name *smp_affinity` ; do awk -F, \ '{for(i=1;i<NF;i++)printf("00000000,");printf("%8.8x\n",and(0x00000001, strtonum("0x"$NF)))}' \ $MF > $MF ; done

1. find /sys/kernel/slab -name 'cpu_partial' -exec sh -c 'echo 0 > {}' \;
2. cset shield --cpu 1-63 --kthread=on 
3.0 cset proc --move --pid=$$ --threads --toset=root
3.1 cset proc --move --pid=$$ --threads --toset=user
. grub2-mkconfig -o /boot/grub2/grub.cfg
or
.grub-mkconfig -o /boot/grub/grub.cfg




dnf install -y libhugetlbfs-utils


This is the 'Magic file'
/etc/sysctl.conf


The goal is to make the output of this program "happy"
sudo hugeadm --set-recommended-shmmax


This sets changes in motion immediately, though a reboot is suggested once everything is configured.
sysctl -p


We will make changes by echoing options to sysctl.conf
echo "vm.hugetlb_shm_group = 0" >> /etc/sysctl.conf 
echo "vm.min_free_kbytes = 112640" >> /etc/sysctl.conf 
echo "vm.nr_hugepages = 8600" >> /etc/sysctl.conf 
echo "kernel.shmmax = 18035507200" >> /etc/sysctl.conf 
echo "vm.swappiness = 0" >> /etc/sysctl.conf