06-18-2013
Quote:
Originally Posted by
sixstrings
I had a query in this, what if the laptop had 8 GB memory instead of 4 GB, would Linux still attempt to utilize all the memory.
I hope, my query is clear that if the available memory is a very large number, would Linux still attempt to utilize all the memory.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I know that free command displays memory usages however I like to know how the option and the results when I use this command..
PLease respond ASAP
thanx... I am a newbie.. :D (1 Reply)
Discussion started by: LiTo
1 Replies
2. News, Links, Events and Announcements
CentOS 2 and 3 are a 100% compatible rebuild of the RHEL 2 and 3 versions, in full compliance with RedHat's redistribution requirements. It is for people who need an enterprise class OS without the cost of certification and support.
Read more here.
I've just installed it on a spare box and it... (0 Replies)
Discussion started by: zazzybob
0 Replies
3. Programming
HI
I'm a rookie in C programming and I'm working in Monta Vista Linux. I have to write a program that displays free memory. I have memtester(allready written by someone else) and now I have to type how much amount of memory tester will test and I want that memtester finds out himself how much of... (11 Replies)
Discussion started by: trancedeejay
11 Replies
4. Linux
Linux Kernels 2.6.16 and up provide a way to instruct the kernel to drop the page cache, inode and dentry caches on command. This tip can help free Linux memory without a reboot.
Note: This is a non-destructive operation. Dirty objects are not freeable, hence; you must run sync beforehand.
... (0 Replies)
Discussion started by: Neo
0 Replies
5. Linux
Hi All,
Please explain me the concept of link counts when you try to view the contents of any file or directory using ls command.
-sh-3.00$ ls -lrt
total 194
drwxr-xr-x 2 root root 4096 Aug 12 2004 srv
drwxr-xr-x 2 root root 4096 Aug 12 2004 mnt
drwxr-xr-x 2 root root ... (1 Reply)
Discussion started by: vaibhav.kanchan
1 Replies
6. Linux
Hi,
I am facing one problem, On our Linux server Free memory decreases gradually but my java process memory does not increase.
Please any one tell, why free memory decreases gradually (1MB in approx 15 minutes).
kernel details:-
Linux linux4 2.6.9-42.ELsmp #1 SMP Wed Jul 12 23:27:17 EDT... (13 Replies)
Discussion started by: Vaibhav Agarwal
13 Replies
7. UNIX for Dummies Questions & Answers
Hello, I am not sure where to post this questions...
I have Windows XP in my home computer. I need to install Linux on
my home computer for learning purpose. Can one please recommend
any free download link to download free linux...
Any help is appreciated...
Thank you... (1 Reply)
Discussion started by: govindts
1 Replies
8. UNIX for Advanced & Expert Users
hi- im running glassfish 3.1 on debian server and there are times where I need to start the domain when we cannot access the web application. I checked the memory and it's confusing me. Am i still ok? can you explain the below?
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME... (1 Reply)
Discussion started by: lhareigh890
1 Replies
9. UNIX for Beginners Questions & Answers
I have two questions on Linux's free command. Below, I have provided output from my home laptop (fedora 26 ) which has 16GB Physical RAM and a production server (RHEL 7.4) which has 24GB RAM.
Question1. What exactly does the buffer/cache column say in free command's output ? buffer/cache is... (9 Replies)
Discussion started by: omega3
9 Replies
LEARN ABOUT PHP
sybase_unbuffered_query
SYBASE_UNBUFFERED_QUERY(3) SYBASE_UNBUFFERED_QUERY(3)
sybase_unbuffered_query - Send a Sybase query and do not block
SYNOPSIS
resource sybase_unbuffered_query (string $query, resource $link_identifier, [bool $store_result])
DESCRIPTION
sybase_unbuffered_query(3) sends a query to the currently active database on the server that's associated with the specified link identi-
fier. If the link identifier isn't specified, the last opened link is assumed. If no link is open, the function tries to establish a link
as if sybase_connect(3) was called, and use it.
Unlike sybase_query(3), sybase_unbuffered_query(3) reads only the first row of the result set. sybase_fetch_array(3) and similar function
read more rows as needed. sybase_data_seek(3) reads up to the target row. The behavior may produce better performance for large result
sets.
sybase_num_rows(3) will only return the correct number of rows if all result sets have been read. To Sybase, the number of rows is not
known and is therefore computed by the client implementation.
Note
If you don't read all of the resultsets prior to executing the next query, PHP will raise a warning and cancel all of the pending
results. To get rid of this, use sybase_free_result(3) which will cancel pending results of an unbuffered query.
PARAMETERS
o $query
-
o $link_identifier
-
o $store_result
- The optional $store_result can be FALSE to indicate the resultsets shouldn't be fetched into memory, thus minimizing memory
usage which is particularly interesting with very large resultsets.
RETURN VALUES
Returns a positive Sybase result identifier on success, or FALSE on error.
EXAMPLES
Example #1
sybase_unbuffered_query(3) example
<?php
$dbh = sybase_connect('SYBASE', '', '');
$q = sybase_unbuffered_query('select firstname, lastname from huge_table', $dbh, false);
sybase_data_seek($q, 10000);
$i = 0;
while ($row = sybase_fetch_row($q)) {
echo $row[0], ' ', $row[1], '<br />';
if ($i++ > 40000) {
break;
}
}
sybase_free_result($q);
sybase_close($dbh);
?>
NOTES
Note
This function is only available when using the CT library interface to Sybase, and not with the DB library.
SEE ALSO
sybase_query(3).
PHP Documentation Group SYBASE_UNBUFFERED_QUERY(3)