Better HN
topnewbestaskshowjobs
Log inSign up

LinuxBender

57,650 karma · joined Jun 16, 2015 (11y ago) · 19,241 submissions

I am not for everyone. To ignore me in uBlock Origin, add to "My filters":

   news.ycombinator.com##tr.athing.comtr:has(a.hnuser):has-text(/\bLinuxBender\b/)
For HN usage questions see https://github.com/minimaxir/hacker-news-undocumented for HN tips (not my repo)

    (\_/)
    (='.'=)
    (")_(")
Submissions

comment 8y ago · link · parent

You're welcome! We were trying to unravel that post about PCID as well.

It appears the first PCID code was merged in 4.14.12 so you will probably have that in the coming days / weeks. CoreOS is also 4.14.11.

For those on LTS releases, we may have to venture into uncharted waters. The first that came to mind was elrepo.org, as they apply some of the same build options that Redhat uses against the latest upstream. Their kernel packages are meant to provide support for newer laptop hardware...

comment 8y ago · link · parent

Usenet is still very much alive. In fact, many of the spammers have left and now target other more popular resources. The text only groups are accessible for free from multiple servers. It's only the binary groups that you have to pay to get access.

comment 8y ago · link · parent

Someone please correct me if I am incorrect, but that would be any mainstream linux not using the 4.14 kernel. Redhat, CentOS, Suse at least. Looks like CoreOS that is on 4.14 is on a minor release just prior to the PCID patch.

It looks like Ubuntu 18 Bionic Beaver may have it. (4.15) I suppose some folks use Ubuntu in a datacenter, but more likely the LTS releases and 18 is not likely in many production datacenters.

Can you confirm that Redhat backported that newer PCID code into the 3.10 kernel branch? If so, people should not be seeing a performance hit on the KPTI patch.

comment 8y ago · link · parent

Not a public cloud. It does involve some private cloud visualization and containers.

comment 8y ago · link · parent

hehe it was also the secret monkey code on some old raid controllers to tell them to commit their cache to disk. It isn't even strictly required these days, but old bugs and features find their way into systems all the time, so I just keep the old incantations around as paranoid habits. :)

comment 8y ago · link · parent

Would it be feasible to put inductive chargers and battery banks under the parking spot, so that no wires are exposed and the spot could be used by non electric cars if required? Maybe a signal to/from the car to determine charge rates and negotiate power feeds? Or is that too much power to pass through a special thin layer of say, epoxy concrete? Seems like a good place to have a battery box, to protect it from heat/rain/lightning.

comment 8y ago · link · parent

30k physical servers. 512GB to 1TB ram each.

comment 8y ago · link · parent

zram is cool, but still considered experimental. Even zswap is still fairly young. I have used both on my own systems. zswap is much easier to conifg.

comment 8y ago · link · parent

It's a circular argument that people get into because they have the incorrect kernel settings. Even if you have 4TB of ram, someone will say to add more memory on disk. It just means the system is not configured correctly. I have 30k servers and not a single one of them has swap.

comment 8y ago · link · parent

Ensure Transparent Huge Pages are disabled. There is a known bug/leak. The only fix is to set to madvise or disable it all together.

comment 8y ago · link · parent

Allocate 20+% more memory that you could ever need. Use cgroups, lxc, systemd to constrain applications and containers to specific amounts of memory, cpu, etc. Properly engineered systems will have enough memory for everything else under the hood beyond the application. VM and container abstraction does not negate the requirement to calculate this.

comment 8y ago · link · parent

Then if technical solutions do not make it easier to avoid watching, you may want to see a counselor about substance abuse, self control, etc. There is no way to verify that people on HN are qualified to give such advice.

comment 8y ago · link · parent

The reason those articles are suggesting swap is due to the settings I linked above that most people are missing. The kernel is not evacuating cache early enough and it gets wedged. Kernel devs even argue among themselves about this. A properly engineered system would never need swap, that much is for certain.

And if you must use it, then at least know when you need to encrypt your swap. If you have customer data in memory that is encrypted at rest, then you must encrypt your swap.

Some people use crypttab for this, but I think that is a mistake. Rather, people should have a swap volume or partition that on each system boot, you use cryptsetup with a long randomly generated password and mkswap -f, then swapon each time.

Most companies have policies about encrypting customer data. If you have swap, it plays into that policy.

comment 8y ago · link · parent

Are you asking for technical or psychological advice?

From a technical perspective, one could implement blocking on their own network to make it harder (no pun intended) to find. pfSense might be helpful. There are browser addons to block porn.

If porn is causing problems in your life, such as interfering in your relationship or your ability to focus on work, then perhaps consider seeing a counselor.

comment 8y ago · link · parent

If you must use swap (you probably don't need to), then at least set zswap.enabled=1 in the kernel boot options, typically in grub. This will enable lzo compression of swap in memory so there is less writing to disk. Some newer kernels use lz4.

Either way, what most folks are actually missing is the correct kernel settings for the amount of memory they have. Sadly, the kernel does not dynamically adjust these based on your total amount of memory. Below is based loosely on Redhat suggestions. Please note, that if you fall below the min free, the kernel will decide what to do next, based on your oom and panic settings. The settings below will have the kernel free cache and other memory earlier so that you do not hit those stalling conditions and can even prevent some OOM race conditions. Some might suggest tuned, but use tuned with caution or at least read up on everything it does.

    MEM=`grep ^MemTotal /proc/meminfo | awk {'print $2'}`
    if   [ ${MEM} -gt 1129241478 ] ; then
        sysctl -q -w vm.min_free_kbytes=16384000
    elif [ ${MEM} -gt 564620739 ] ; then
        sysctl -q -w vm.min_free_kbytes=8192000
    elif [ ${MEM} -gt 352887962 ] ; then
        sysctl -q -w vm.min_free_kbytes=4096000
    elif [ ${MEM} -gt 176443981 ] ; then
        sysctl -q -w vm.min_free_kbytes=1024000
    elif [ ${MEM} -gt 88221990 ] ; then
        sysctl -q -w vm.min_free_kbytes=524288
    else
        sysctl -q -w vm.min_free_kbytes=262144
    fi
If you have small VM's, then perhaps set the default above to something a little smaller. You can of course free up about 128MB on default installations by removing "crashkernel" from your grub config and rebooting.

Then do this regardless, because overcommit set to 0 does not mean off, so we set the ration to 0 as well. Overcommit is good for developers testing code and finding the correct ways to manage memory in their applications during development.

    sysctl -q -w vm.overcommit_ratio=0
And of course, cache pressure plays into early evacuation of the right cache based on your usage:

    ## default is 100 (optimal for file servers).  4000+ for in memory databases.
    ## 10000 means always prefer page cache.
        sysctl -q -w vm.vfs_cache_pressure=1000
And if you have people oversubscribing a lot: (adjust based on your memory capacity)

    sysctl -q -w vm.admin_reserve_kbytes=131072
    sysctl -q -w vm.user_reserve_kbytes=262144
Please do read up on all of these before testing on your test machines. [1]

[1] https://www.kernel.org/doc/Documentation/sysctl/

Then finally, make sure you have Transparent Huge Pages disabled unless you know for sure you need it. THP can leak a lot of memory and it is nearly impossible to see without extensive kernel debugging.

In grub, set this and reboot:

    transparent_hugepage=madvise
Or to manually disable THP during run-time,

    echo -n "madvise" > /sys/kernel/mm/transparent_hugepage/enabled
    echo -n "never" > /sys/kernel/mm/transparent_hugepage/defrag
Then restart your applications. THP defrag can also cause stalling and lag spikes, especially in large memory java deployments (it will look like FGC's) and in MongoDB, Cassandra, others.

If you did this manually, stop your apps, flush cache, compact memory, then start your apps.

    sync;sync;sync
    echo 3 > /proc/sys/vm/drop_caches
    echo 1 > /proc/sys/vm/compact_memory
Some will say 3 sync's is not required. This is mostly true, but some old raid controllers treat this differently.

comment 8y ago · link · parent

If Comcast re-enable Sandvine and start tinkering with P2P and VPN traffic, will that be enough to start the conversations around anti-trust? Or is there already a precedent?

comment 8y ago · link · parent

I didn't realize I was hysterical? Just asking a question based on the article and discussion in this thread. Do you have links to images from the scanner?

comment 8y ago · link · parent

Are there no state or federal laws that regulate the storage and dissemination of nude children? I did not realize casinos were that powerful.

comment 8y ago · link · parent

Assuming the streamer proves they are at or above the legal age of consent for their location, why could this not be tolerated?

comment 8y ago · link · parent

Vegas has become family friendly, so to speak. Who assumes liability for the images of children? What are the legal protections around the storage, retention, secure deletion, handling and viewing of the images?

comment 8y ago · link · parent

There are people sexually aroused by eyes as well.

comment 8y ago · link · parent

If this is such a problem, then clearly there is a demand for it. Perhaps create a channel just for sexual streaming. The only question is, what to call it?

comment 8y ago · link · parent

Certainly, but you are increasing your risk by entering the property. Internet is entirely remote and can be somewhat anonymous through proxies. Perhaps you could even hire some kid to go ring the doorbell for you, but then that kid has seen your face. I mean, we could keep going down the PR rabbit hole, but I think some people will be able to see the differences in risk here.

comment 8y ago · link · parent

It is not. In fact, homes occupied by mafia or drug producers commonly have the windows blocked by steel panels. The same is true for safe houses occupied by special agents.

Some custom built homes intentionally have multiple windows that are too slim for a human to fit through for this reason.

[ Special Note: ] If you decide to do this, ensure you build other methods of escape for fire hazards.

comment 8y ago · link · parent

The difference is, the attacker must be physically at the lock. Sure, they do that all the time. They risk getting shot. My neighbors have shot invaders. The Sheriff high-fived them.

Now they can be in your neighborhood, using a list of popped accounts to unlock a batch of houses. They can look at your Amazon connected camera to know when you have left your home or children unattended. Amazon accounts get popped all the time.

Amazon is also a great place to get GB/TB of customer data from public S3 buckets.

comment 8y ago · link · parent

I watch accounts get popped all the time in cloud providers. Is it a good idea to bridge such risks to your home physical security?

comment 8y ago · link · parent

My understanding was an arsonist was driving down the California coast and lighting fires when the winds were high. Was this not the case?

18868.

Android security alert: Google's latest bulletin warns of 47 bugs, 10 critical(zdnet.com ↗)

5 points · by LinuxBender · 8y ago · discuss

18869.

You're not being paranoid. UK.gov really is watching you(theregister.co.uk ↗)

3 points · by LinuxBender · 8y ago · discuss

1
628629630
642