254 points · by moonboots · 13y ago · 114 comments
> X86 before (linux 3.6-rc4):
> # time rm -f test1
> real 0m2.710s
> user 0m0.000s
> sys 0m1.530s
> X86 after:
> # time rm -f test1
> real 0m0.644s
> user 0m0.003s
> sys 0m0.060s
The commit affects 5 lines only.
EDIT. Not sure if this optimization applies to filesystems mounted with standard journaling options...
Con: All my files are gone before I can frantically ctrl-c to save some of them.
I dug up the commit: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux.git... which seems to be a bit older than I would have expected. Of course, this being Linux, "old" means it's from September 19th.
Interesting... anyone know more about this?
[1] http://en.wikipedia.org/wiki/Slow-start [2] http://blog.benstrong.com/2010/11/google-and-microsoft-cheat...
I guess CentOS will get this in 2020, sigh, still waiting for initrwnd 10 support.
The particularly unfortunate part is, as much of the world's commercial hosting runs on RHEL, it's the world that doesn't get this until 2020. Well, except for services that roll custom kernels.
Every so often I am tempted to fiddle with debian, looks like more and more people are thinking that way:
http://w3techs.com/blog/entry/debian_is_now_the_most_popular...
It's API/ABI stability, and it's meant to be a feature of RHEL.
In fact, many of the security considerations are the same.
6.3 still does not support initrwnd which needs a minimum kernel of 2.6.38
perf trace will show the events associated with the
target, initially syscalls, but other system events like
pagefaults, task lifetime events, scheduling events, etc.
I'm excited.While both are a can of worms, (1) is more so. With regards to (2), AFAIK it is generally accepted that grsec provides the easiest profiling tools here; whilst 'roll your own' is never as secure as something locked down by multiple third parties 'in the know' and to a finite extent (see: NSA SELinux), it is far better than nothing, and very frequently custom code or the latest or patched version of a certain daemon will not have publicly accredited rulesets. Therefore grsec's solution is a reasonable basis for beginning here. Docs @ http://en.wikibooks.org/wiki/Grsecurity/The_Administration_U...
"ptrace" is the main userspace debugging API, used behind tools like "strace" or "gdb", but it's old and clumsy. Quite new "perf" tool, on the other hand, allows user to get various CPU/Kernel stats mostly useful for profiling. Before "perf" you could only try to emulate your program using "valgrind" to get, say cache misses.
The command "perf trace", seems to move "perf" more into the "ptrace" domain. This is indeed exciting.
Android, on the other hand, will take much longer. It's sad as there are so many goodies in this for ARM, especially the multi-platform support. This will make updating Android version a lot easier (for manufacturers, hackers). Right now the one of the bigger issues is updating the kernels (and the closed drivers, to be honest).
Ubuntu 12.04 uses version 3.2, 12.10 is on kernel 3.5.
I suppose the next Android version will use this kernel.
Cached version: http://webcache.googleusercontent.com/search?q=cache:vjkg-vG...
When i think of ARM i think of Mobile Phones, total ram isn't an issue(yet?) Are there other advantages?
Beyond that…
The ARM 64 bit comes with 31 64 bit registers instead of 14 32 bit registers.
There are a number of instruction set differences, such that you run the same object code on previous architectures.
The NEON unit also gets twice the registers, double precision floating point, and IEEE 754 compliance.
We don't think about it much, but the total power draw of a data center is a huge cost, and ARM servers are lower-power than x86 servers. Every step towards being able to replace x86 servers with ARM ones is saving the people who pay data center power bills lots of money.
Don't forget AMD's announcement about ARM64 based servers.
http://www.anandtech.com/show/6418/amd-will-build-64bit-arm-...
http://www.theregister.co.uk/2011/11/01/hp_redstone_calxeda_...
http://www.hp.com/hpinfo/globalcitizenship/environment/techg...
Moterola Droid 256MB [2009]
Google Nexus One 512MB [2010]
Galaxy Nexus 1GB [2011]
Google Nexus 4 2GB [2012]
It doesn't look like it will be long before we need 4GB or more. I would expect, like with x86, you need 64bit even to access the full 4GB (due to memory mapped devices)Also think Moore's Law. Current phones are sporting 1GB of RAM. It will just be a few years before they exceed 4GB, and it's easier to get the software support ready now.
http://www.phonearena.com/news/Sonys-2013-flagships-tipped-Q...
This announcement is for the Linux kernel. The different Linux distributions (Ubuntu, Redhat, etc.) all bundle different versions of the Linux kernel and umpteen number of packages around that to create a cohesive Desktop or Server experience.
The kernel is the one core, similar piece between ALL of the distros. It is the desktops, package managers, etc. that differs between the distros.
The Linux kernel is important, but only a small part of a whole operating system - it's the lowest layer, but there are lots of layers on top of it, including all the programs that the average user uses.
Ubuntu, Red Hat, and other Linux _distributions_ bundle a Linux kernel, common software packages, and utilities to manage these together. So there are many Linux distributions, but only one Linux kernel.
Ubuntu/Fedora/Arch/etc = Linux + lots of other stuff, without which the kernel is pretty useless (command shell/interpreter, GUI, command line tools, etc.)
Some more explanations that may help:
http://stackoverflow.com/questions/2013937/what-is-an-os-ker...
Think of it as if the Twitter Api was the kernel and all different clients like Twiterrific or Tweebot were the distributions (Ubuntu, Fedora, etc...). Distributions are implementations of the kernel with lots of extra features and improvements.
> Furthermore, the server should periodically change the encryption key used to generate the TFO cookies, so as to prevent attackers harvesting many cookies over time to use in a coordinated attack against the server.
What is going to do this? I hope this is built-in somehow.
EDIT: Looks like the key is chosen at kernel module "late init" time. I think this is before any init scripts have had the opportunity to add back any entropy persisted from previous boots. So the entropy in the kernel pool is minimal. It may be plausible for a remote attacker to guess the key for a bunch of servers.
Also, if the key is not rotated by cron, it provides a single-packet method for a remote attacker to observe that a server has been rebooted since he last checked. This will give a good indication of how often security patches have been applied.
http://git.kernel.org/linus/1046716368979dee857a2b8a91c4a883... http://git.kernel.org/linus/168a8f58059a22feb9e9a2dcc1b8053d... http://git.kernel.org/linus/8336886f786fdacbc19b719c1f7ea91e...
For an attacker to learn a cookie that's valid for a given victim "source IP", he only needs to be passive observer somewhere along the route. Even if we believe that's very hard in most cases, if it's possible at all, he has the mother-of-all anonymous reflected DoS amplifiers. http://tools.ietf.org/html/draft-ietf-tcpm-fastopen-02#secti...
So, yeah, using a key that's rotated after a short amount of time -or- number of uses (whichever comes first) seems like a good idea.