Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror
×

Comment Re:Sorry about being "reality based" (Score 1) 469

Okay, let's hope the following doesn't whooosh over your head:

So examples are worthless now are they?

Yes, examples are worthless. A few comments up, I saw someone use systemd as an example for sticking with the UNIX philosophy. You really can't deny examples aren't worthless in the light of that, now, can you?

Apart from that, I'm still curious about your statement that

"busybox" is in just about every little device with a CPU you can think of.

Because you seem to be massively underestimating the amount of "little devices with a CPU" in existance which couldn't even run a fragment of busybox, apart from not having a need for it in the first place.

Comment Re:Who says it succeeded? (Score 1) 469

For example program A, a 1 megabyte program using ten 100KB pages is running. Those 100KB pages are loaded from disk when you start program A and are then executed. They are read-only, in that the contents of those pages do not change during the execution of program A.

During a context switch when program A is not running, program B is started, which loads three 100kb pages from disk. The OS then loads program B into the first three pages of the memory used by program A (after all, program A is not running *at* *this* *moment*). When the scheduler switches back to program A, the OS then reloads the first three pages of program A from the disk before program A starts running again. Another context switch later program B needs to run so the OS loads program B back into the first three pages of program A....

Thanks for the explanation, I didn't know this is actually a thing. It sounds slightly^W insane, though, mostly because (as you note yourself) how much longer disk I/O tends to take compared with context switches, or the timeslots remaining at typical scheduling frequencies..

Comment Re:The GPL (Score 1) 469

If you need weird theories about what I "really" meant, when everything I said can be taken literally

That theory (which is not a theory, btw, please try and find out what a theory is) only stems from the fact that what you said, when taken literally, is complete and utter nonsense.

SysV init scripts are more monolithic than systemd.

Please try and find out what "monolithic" means.

Haters hate, and systemd haters hate for no reason. In fact, they are typically exactly 100% backwards in their complaints.

Pot, meet kettle.

And BTW kiddy, you might have noticed you weren't replying to an AC. Welcome to slashdot, brat.

Oh, indeed. I wonder why I assumed I was replying to AC... Probably it was the combination of demonstrating poor knowledge of the matter at hand in a loud and smug way, missing the point and the general crappiness of your comment. In fact, you'd probably be better of posting anonymously.

PS: Please learn how to use grep(1)

Comment Re:it's a C idiom (Score 1) 264

a chunk of code such as:


unsigned char inbyte;
read(fd,&inbyte,sizeof(inbyte));

should always read at most the same number of bytes (one byte would be nice, but let's pretend we're non-POSIX, here...).

I'm not sure I'm following. If we're non-POSIX, then what read(2) are we talking about? Also, that sizeof is by definition 1
 

And if you *change* that chunk of code to something like, say:


unsigned char inbyte;
assert(sizeof(inbyte)==1);
read(fd,&inbyte,sizeof(inbyte));

It should *still* read at most the same number of bytes as the first chunk of code.

Sure, although that assert is a no-op. It will never be wrong. If a no-op changes behavior of your program, then yes, it's either a compiler bug, or it's you having invoked undefined behaviour at some point and now the compiler doesn't need to hold on to its end of the deal anymore.
I've seen too many "obvious compiler bugs" turn out to be no compiler bugs at all, so I tend to be careful with my conclusion.
If that was indeed mid-late 90's MSVC++, then that makes it slightly easier to believe, yes ;)

Comment Re:it's a C idiom (Score 1) 264

"/* ugly hack to... */" is a modest expression of pride describing concise, functional, readable and elegant C code...

Speak for yourself.

I usually use the expression "ugly hack" to describe the stupid shit I need to do to get around the consequences of relying on unspecified or undefined behavior in my code.

FTFY

Comment Re:Who says it succeeded? (Score 1) 469

Did it actually evict all the page cache or did you hit the overcommit limit to trigger the OOM killer?

I don't know; I only used Linux here because the Android build system doesn't seem very portable. Not too familar with the implementation details of Linux' OOM killer.
Here's the log

The linker (gold) is responsible for the OOM-situation by having by far the largest amount of allocated memory, but it's the java compiler that actually triggers the OOM killer, causing gold to be killed. This somehow makes sense, but at the same time, meh. In my particular case, I'd have preferred the linking to succeed, at the cost of javac. But well, it's heuristic.

I have mixed feelings about the killing of processes; while I don't necessarily agree with the method, I can't argue with the results. Still, it'd be nice to try a SIGHUP and SIGTERM first.

Yeah. Actually in the logs i linked above, there's no indication of what signal was delivered; I think on the command line it gave something along the lines of ``terminated by signal 9''. I might have been mixing it up, with something else, too.
Then again thinking about it, the "more polite" signals are probably futile in a OOM situation.

Comment Re:The GPL (Score 1) 469

Ok, you have see it and I did not notice. Happy ?

I'd be happier if this statement wasn't followed by yet another blob of gibberish demonstrating that you're still in your old MO.

It just delicious how you can link completely unrelated things trying to prove your point.

Unrelated?

That certainly would explain a lot of your inability to show real facts about how systemd architecture should be improved.

Huh, facts?
It's so fundamentally flawed that the only way I see to "improve" systemd involves the rm(1) program. You see, the same thing you think about system V init.

Slashdot Top Deals

In any formula, constants (especially those obtained from handbooks) are to be treated as variables.

Working...